Skip to content

apify/n8n-nodes-apify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

n8n Nodes - Apify Integration

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.

Table of Contents

Installation

⚙️ Prerequisites

  • Node.js (recommended: v18.10+)
  • pnpm installed globally

1. Initialize n8n locally

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

2. Clone & Build the Node Package

Install dependencies and build the node:

pnpm install
pnpm run build

3. Link the Custom Node to n8n

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.

4. Restart n8n

Now that your custom node is linked, start n8n again:

n8n start

🔁 Making Changes

If you make any changes to your custom node locally, remember to rebuild and restart:

pnpm run build
n8n start

Operations

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.

Credentials

To authenticate, the node uses an Apify API Key. You'll need to configure this in the n8n credentials section under apifyApi.

Compatibility

This node has been tested with n8n version 1.57.0.

Usage

  1. Create an Actor: Set up a new actor on Apify.
  2. Set up a Workflow: Create a new workflow in n8n.
  3. Add the Apify Node: Insert the Apify node into your workflow.
  4. Configure Credentials: Enter your Apify API key and actor ID.
  5. Select an Operation: Choose the desired operation for the node.
  6. Execute the Workflow: Run the workflow to execute the Apify operation.

Screenshots

Here are some screenshots showcasing the node in action:

Screenshot 1 Screenshot 2

Resources

Version History

Track changes and updates to the node here.

About

n8n node to interact with Apify APIs

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 97.6%
  • JavaScript 2.4%