Tutorial 14 min read

Apify + n8n Integration: Automate Web Scraping into Any Workflow (2026)

n8n and Apify are the two halves of a self-hosted data-automation stack. n8n is the workflow engine — connecting apps, transforming data, running logic. Apify is the data source — scraping the web into structured datasets. Connect them and you can build automations that used to require a data vendor plus an integration platform: scrape leads → enrich → push to CRM, monitor prices → update a sheet, watch reviews → alert Slack.

The fit is natural because both are API-first and both are affordable. n8n is free to self-host (or cheap cloud); Apify Pro is $49/mo. Together they undercut the Zapier-plus-data-vendor stacks that run hundreds a month. And because this site runs on n8n automation itself, this pairing is the one I actually use daily.

This guide covers the two connection patterns, the API calls, the dataset flow, five production workflows, the AI-processing layer, and scheduling. Related: [Apify webhooks](/blog/apify-webhooks-automation), [Apify cron scheduling](/blog/apify-cron-scheduling), [Apify MCP server](/blog/apify-mcp-server).

Quick Answer

Apify + n8n: n8n triggers actors via the Apify API (or Apify webhooks into n8n), datasets flow into workflows, then enrich/alert/AI-process. Builds a scraping-powered automation stack for under $60/mo.

Apify + n8n: n8n triggers actors via the Apify API (or Apify webhooks into n8n), datasets flow into workflows, then enrich/alert/AI-process. Builds a scraping-powered automation stack for under $60/mo.

  • n8n + Apify is a power combo: n8n orchestrates the workflow, Apify supplies the web data — together they replace expensive automation + data stacks.
  • Two connection patterns: n8n triggers an Apify actor run (then pulls the dataset), or Apify finishes a run and webhooks into n8n.
  • The Apify node/HTTP request in n8n calls the Apify API: run actor → poll run status → fetch dataset items → process.
  • Killer workflows: daily lead scrape → enrich → CRM; review monitor → alert; price watch → Sheet update; content scrape → AI summarization.
  • n8n is self-hostable and free at small scale — pairing it with Apify ($49/mo) builds a data-automation stack for under $60/mo.
  • The AI angle: chain Apify scrape → n8n → an LLM node for summarize/classify/enrich — scraped data becomes AI-processed intelligence.

1. Why n8n + Apify is the power combo

The two halves of a data-automation stack:

  • n8n: the workflow engine — triggers, logic, transformations, 400+ integrations, self-hostable.
  • Apify: the web-data source — 4,000+ actors producing structured datasets.
  • Together: scrape the web → route it anywhere. Leads to CRM, prices to Sheets, reviews to Slack, content to an AI node.
  • The economics: n8n self-hosted ~free + Apify $49/mo = a stack that replaces $300+/mo of Zapier + data-vendor spend.

n8n orchestrates, Apify supplies web data. Together under $60/mo they replace automation platforms + data vendors costing hundreds.

2. Connection pattern A — n8n triggers the scrape

The pull pattern:

  • Flow: n8n workflow → call Apify API to run an actor → poll the run status → fetch the dataset → process results.
  • The Apify node: n8n has native Apify nodes (or use HTTP Request) — run actor, get run, get dataset items.
  • Auth: your Apify API token in n8n credentials.
  • When to use: you want n8n in control of WHEN scraping happens (schedule, form submission, another trigger).

Pattern A: n8n calls "run actor" → polls status → fetches dataset. n8n controls the timing — ideal for scheduled or event-triggered scrapes.

🤖

Apify

4.7Verified partner

Web scraping and automation platform — Free / $49/mo Starter

3. Connection pattern B — Apify webhooks into n8n

The push pattern:

  • Flow: Apify actor finishes a run → Apify webhook fires → hits an n8n webhook node → n8n processes the fresh data.
  • Setup: configure a webhook on the Apify actor/run pointing at your n8n webhook URL.
  • When to use: scraping runs on Apify's own schedule and n8n should react to completion.
  • Advantage: n8n does not poll — it acts the moment data is ready.

Pattern B: Apify webhooks into n8n on run completion — n8n reacts instantly instead of polling. Best when Apify schedules the scrape itself.

4. The dataset flow — getting data into n8n

How the scraped records move:

  • Actor output → Apify dataset: every run produces a dataset of structured items.
  • Fetch into n8n: "Get dataset items" returns JSON — paginate for large sets.
  • Transform: n8n's Set/Function/Code nodes reshape the records (dedupe, filter, map fields).
  • Route: push to Sheets, Airtable, CRM, Postgres, or an AI node — whatever the workflow needs.

Dataset items flow as JSON into n8n → dedupe/filter/map in a Code node → route to Sheets/CRM/DB/AI. The transform layer is where the real workflow value lives.

5. Five production workflows

Automations worth building today:

  • Lead pipeline: daily Maps/LinkedIn scrape → enrich emails → dedupe → push to CRM/Sheet.
  • Review monitor: scrape your + competitor reviews → new-review filter → Slack/email alert.
  • Price watcher: daily competitor price scrape → compare vs yesterday → flag changes → update Sheet.
  • Content intel: scrape competitor blogs → LLM node summarizes new posts → weekly digest email.
  • SEO monitor: SERP scrape → track positions → alert on drops → log to a dashboard.

Five production workflows: lead pipeline, review monitor, price watcher, content intel digest, SEO rank alerts. Each is scrape → transform → route/act.

🤖

Apify

4.7Verified partner

Web scraping and automation platform — Free / $49/mo Starter

6. The AI-processing layer

Where it gets genuinely powerful:

  • Chain scrape → LLM node: n8n has native OpenAI/Anthropic nodes — scraped data becomes AI-processed intelligence.
  • Use cases: summarize scraped reviews, classify scraped leads by fit, extract entities from scraped pages, draft outreach from prospect data.
  • The agent angle: n8n AI-agent nodes + Apify tool calls = an agent that fetches fresh web data mid-reasoning.
  • The compounding effect: scraping gives the AI fresh, real data it cannot hallucinate — grounding beats generation.

Scrape → LLM node is the multiplier: summarize reviews, classify leads, draft outreach from prospect data. Fresh scraped data grounds the AI in reality.

7. Scheduling and reliability

Making it run itself:

  • n8n Schedule Trigger: run the whole scrape→process flow on a cron — daily leads, hourly price checks.
  • Apify-native scheduling: alternatively let Apify schedule the actor and webhook into n8n — whichever side owns timing.
  • Error handling: add n8n error workflows — a failed scrape or empty dataset should alert, not silently break.
  • Idempotency: dedupe on a stable ID (URL, ASIN, place_id) so re-runs do not duplicate records.

Dedupe on a stable ID and add an error workflow — a silently failing scrape feeding stale data is worse than no automation.

8. Apify vs doing it all in n8n

Where the boundary sits:

  • n8n alone: HTTP Request nodes CAN scrape simple pages — for trivial single-page fetches, skip Apify.
  • The wall: real scraping (anti-bot, JS rendering, pagination, proxies, scale) is what Apify exists for — do not rebuild it in n8n.
  • The boundary: use n8n HTTP for simple fetches; use Apify for anything a real scraper must survive.
  • The honest division: Apify = hard data collection; n8n = everything after.

Use n8n HTTP nodes for trivial fetches. The moment you need anti-bot, JS rendering, proxies, or scale — that is Apify's job. Apify collects; n8n orchestrates.

🤖

Apify

4.7Verified partner

Web scraping and automation platform — Free / $49/mo Starter

Apify + n8n is the self-hosted data-automation stack: Apify scrapes the web into datasets, n8n orchestrates where that data goes — CRM, Sheets, alerts, or an AI node. Together under $60/mo they replace stacks costing hundreds.

Start with pattern A — an n8n scheduled trigger that runs an actor and pulls the dataset into a Sheet. Once that works, add the LLM node to process the data. Apify free tier covers the scrape side. Related: Apify webhooks, Apify cron scheduling, Apify MCP server.

Ready to get started?

Try the tools from this article risk-free. Free trials available.

FAQ

How do I connect Apify to n8n?

Two ways: n8n calls the Apify API to run an actor and fetch the dataset (pull), or an Apify webhook fires into an n8n webhook node on run completion (push). Auth via your Apify API token.

Does n8n have an Apify node?

Yes — n8n supports Apify operations natively (run actor, get run, get dataset items), or use the HTTP Request node against the Apify API for full control.

What can I automate with Apify + n8n?

Lead pipelines (scrape→enrich→CRM), review monitoring→alerts, price watching→Sheets, content intel→digests, SEO rank tracking→dashboards, and scrape→AI-processing workflows.

Is n8n + Apify free?

n8n is free to self-host (cloud plans available). Apify free tier covers testing; Pro is $49/mo. The combo runs a serious data-automation stack under $60/mo.

Apify vs scraping directly in n8n?

Use n8n HTTP nodes for trivial single-page fetches. For anti-bot, JS rendering, proxies, pagination, and scale — use Apify. Apify collects; n8n orchestrates.

Can I run scraped data through AI in n8n?

Yes — n8n has native OpenAI/Anthropic nodes. Chain Apify scrape → LLM node to summarize reviews, classify leads, extract entities, or draft outreach.

Should Apify or n8n own the schedule?

Either works — n8n Schedule Trigger runs the full flow on a cron, or Apify schedules the actor and webhooks into n8n. Pick based on which side should control timing.

Tools mentioned in this article

Affiliate links — we may earn a commission at no cost to you.

🤖

Apify

4.7Verified partner

Web scraping and automation platform — Free / $49/mo Starter

AM

Alex Mercer

AI Marketing Strategist · 8+ years

Alex has tested 200+ AI marketing tools on real campaigns with $50,000+ in ad spend. He writes hands-on reviews based on actual usage data, not press kits. His work has helped 10,000+ marketers build AI automation stacks that generate real ROI.

Keep reading