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:
- Click and drag the Apify Actors component to your workspace.
- In the Apify Actor component's Apify Token field, add your Apify API token.
- 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
. - 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.
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.
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.
Inputs
Name | Display Name | Info |
---|---|---|
apify_token | Apify Token | Your Apify API key. |
actor | Actor | The Apify Actor to run, for example apify/website-content-crawler . |
run_input | Run Input | The JSON input for configuring the Actor run. For more information, see the Apify documentation. |
Outputs
Name | Display Name | Info |
---|---|---|
output | Actor Run Result | The JSON response containing the output of the Actor run. |