Skip to main content

Integrate Apify with Langflow

Apify is a web scraping and data extraction platform. It provides an Actor Store with more than 3,000 ready-made cloud tools called Actors.

Apify components in Langflow run Actors to accomplish tasks like data extraction, content analysis, and SQL operations.

Prerequisites

Use the Apify Actors component in a flow

To use an Apify Actor in your flow:

  1. Click and drag the Apify Actors component to your workspace.
  2. In the Apify Actor component's Apify Token field, add your Apify API token.
  3. In the Apify Actor component's Actor field, add your Actor ID. You can find the Actor ID in the Apify Actor Store. For example, the Website Content Crawler has Actor ID apify/website-content-crawler.
  4. The component can now be used as a Tool to be connected to an Agent component, or configured to run manually. For more information on running the component manually, see the JSON Example in the Apify documentation.

Example flows

Here are some example flows that use the Apify Actors component.

Extract website text content in Markdown

Use the Website Content Crawler Actor to extract text content in Markdown format from a website and process it in your flow.

Apify Flow - Website Content Crawler

Process web content with an agent

Extract website content using the Website Content Crawler Actor, and then process it with an agent.

The agent takes the extracted data and transforms it into summaries, insights, or structured responses to make the information more actionable.

Apify Agent Flow - Simple

Analyze social media profiles with multiple actors

Perform comprehensive social media research with multiple Apify Actors.

Add the Google Search Results Scraper Actor to find relevant social media profiles, and then add the TikTok Data Extractor Actor to gather data and videos.

The agent collects the links from Google and content from TikTok and analyzes the data to provide insights about a person, brand, or topic. Apify Agent Flow

Inputs

NameDisplay NameInfo
apify_tokenApify TokenYour Apify API key.
actorActorThe Apify Actor to run, for example apify/website-content-crawler.
run_inputRun InputThe JSON input for configuring the Actor run. For more information, see the Apify documentation.

Outputs

NameDisplay NameInfo
outputActor Run ResultThe JSON response containing the output of the Actor run.
Search