This is an n8n community node that integrates Apify with your n8n workflows, enabling seamless web scraping, data extraction, and automation.
Apify is a platform for developers to build, deploy, and publish web automation tools, while n8n is a fair-code licensed workflow automation tool that allows you to connect various services.
- Node.js (recommended: v18.10+)
- pnpm installed globally
Begin by installing and running n8n to create the necessary configuration directory (~/.n8n
):
npm install -g n8n # Skip this step if you already have n8n installed globally
n8n start # This will generate the ~/.n8n directory
Install dependencies and build the node:
pnpm install
pnpm run build
Create the custom
directory inside ~/.n8n
(if it doesn't exist), then symlink your local node package:
mkdir -p ~/.n8n/custom
ln -s /full/path/to/n8n-nodes-apify ~/.n8n/custom/n8n-nodes-apify # replace full/path/to with the path to your n8n-nodes-apify directory
Note: Use the absolute path in the symlink for compatibility.
Now that your custom node is linked, start n8n again:
n8n start
If you make any changes to your custom node locally, remember to rebuild and restart:
pnpm run build
n8n start
This node supports a wide range of Apify operations, including:
- Actors: Manage actors and their runs.
- Fetch actor collections and objects
- Run actors synchronously
- Abort, metamorph, or resurrect runs
- Retrieve the last run object and its storages
- Actor Tasks: Automate tasks associated with actors.
- Manage task collections and objects
- Run tasks synchronously and retrieve dataset items
- Fetch the last run object and its storages
- Datasets: Work with Apify datasets.
- Retrieve dataset collections and specific datasets
- Fetch dataset items
- Key-value Store: Retrieve a key-value store record by a given record key.
To authenticate, the node uses an Apify API Key. You'll need to configure this in the n8n credentials section under apifyApi
.
This node has been tested with n8n version 1.57.0.
- Create an Actor: Set up a new actor on Apify.
- Set up a Workflow: Create a new workflow in n8n.
- Add the Apify Node: Insert the Apify node into your workflow.
- Configure Credentials: Enter your Apify API key and actor ID.
- Select an Operation: Choose the desired operation for the node.
- Execute the Workflow: Run the workflow to execute the Apify operation.
Here are some screenshots showcasing the node in action:
Track changes and updates to the node here.