/scraperapi:scraperapi-n8nfrom ScraperAPI
Generates n8n workflows using the official ScraperAPI community node for web scraping, including API, SDE, crawler, and AI Parser resources. Outputs importable workflow JSON or step-by-step build guides.
Ships in ScraperAPI. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill helps you assemble n8n workflows around the official ScraperAPI
community node (n8n-nodes-scraperapi-official). It supports two output
shapes, picked from the user's phrasing:
| User says … | Produce |
|---|---|
| "give me the workflow JSON", "export", "I want to import this", "scaffold a .json" | A complete, importable workflow JSON file |
| "walk me through it", "show me how to build", "in the n8n editor", "step by step" | A numbered build guide referencing exact resource / operation / parameter names |
| Ambiguous | Default to JSON. It's reversible — they can either import it or follow it as a recipe. |
When you produce JSON, write it to a file in the working directory (e.g.,
scraperapi-workflow.json) and tell the user to import it via Workflows
→ Import from File in the n8n UI. When you produce a build guide, format
the steps for the n8n editor (resource picker → operation picker → fields).
n8n-nodes-scraperapi-official. After install, "ScraperAPI" appears
in the node picker.https://dashboard.scraperapi.com/. They
create the credential once via Credentials → New → ScraperAPI API
and paste the key. The credential is named ScraperAPI API in the UI
and scraperApi-Api in the workflow JSON.If the user is on n8n Cloud and the workflow JSON references this node, importing will succeed only after the community node is installed in their instance. Mention this when handing over JSON.
The ScraperAPI node has one operation surface (resource) with four
branches. Choose based on the job:
| Job | Resource | Why |
|---|---|---|
| Scrape an arbitrary URL and get HTML/Markdown/Text/JSON | api | General-purpose proxy. Hand it any URL. |
| Get clean JSON from a supported site (Amazon, Google, eBay, Walmart, Redfin) | sde | Pre-parsed structured data. Saves a Set/Code node for HTML parsing and is more reliable across site changes. |
| Crawl multiple pages from one starting URL, streaming results to a webhook | crawler | Multi-page jobs that follow links. Returns a jobId; results arrive at your webhook, not as the node's output. |
| Extract custom structured JSON from many similarly-structured pages on a site with no SDE | aiparser | Build a reusable AI parser once from example URLs, then apply it to any similar page. Asynchronous: create → poll status → parse. |
A common pattern: use a structured endpoint when one exists for the site,
fall back to api (with apiRender: true or apiPremium: true) for
anything else, reach for aiparser when you need repeatable custom field
extraction from a site with no SDE, and use crawler only when
one-URL-at-a-time would need many sequential node executions.
This is the smallest possible workflow that uses ScraperAPI. Everything else in this skill is variations on this shape.
{
"name": "ScraperAPI minimal example",
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [240, 300],
"id": "trigger-1",
"name": "When clicking 'Test workflow'"
},
{
"parameters": {
"resource": "api",
"operation": "apiRequest",
"apiUrl": "https://example.com",
"apiOptionalParameters": {
"apiRender": true,
"apiCountryCode": "us"
}
},
"type": "n8n-nodes-scraperapi-official.scraperApi",
"typeVersion": 1,
"position": [480, 300],
"id": "scraperapi-1",
"name": "ScraperAPI",
"credentials": {
"scraperApi-Api": {
"id": "REPLACE_WITH_CREDENTIAL_ID",
"name": "ScraperAPI API"
}
}
}
],
"connections": {
"When clicking 'Test workflow'": {
"main": [
[{ "node": "ScraperAPI", "type": "main", "index": 0 }]
]
}
},
"settings": { "executionOrder": "v1" }
}
n8n-nodes-scraperapi-official.scraperApi — exact spelling,
case-sensitive. Wrong type = "Unrecognized node type" on import.scraperApi-Api (not scraperApiApi).
Leave id as a placeholder and tell the user to re-select the credential
in the imported node. n8n cannot look up credential IDs across instances.typeVersion: 1 for the ScraperAPI node.name, not id. If you rename a node, update
the connections map too.[x, y] pixels in the editor. Anything is fine on
import; n8n re-layouts on demand. Use ~240px spacing horizontally.executionOrder: "v1" under settings — this is current default.
Older "none"/"v0" are deprecated and behave differently with merges.= prefixn8n distinguishes a literal string from an expression by a leading =
character on the field's value. This applies to every field of every
node, including ScraperAPI's apiUrl, sdeAsin, sdeQuery, etc.
"apiUrl": "https://example.com" // literal — always this URL
"apiUrl": "={{ $json.url }}" // expression — URL from upstream item
"apiUrl": "{{ $json.url }}" // ⚠ literal "{{ $json.url }}" string
A few practical patterns that come up constantly:
"sdeAsin": "={{ $json.asin }}"
"sdeQuery": "={{ $json.body.search_term }}" // webhook payload
"sdeUrl": "=https://www.redfin.com/city/{{ $json.city_id }}"
When the value needs to be partly literal and partly dynamic, keep the
= only at the start of the string. Everything inside {{ }} is a JS
expression — $json, $node['Other'].json.x, JSON.stringify(...),
inline arithmetic, etc.
For webhook-triggered workflows, remember user data lives under body
(see "Common mistakes" below). The expression is ={{ $json.body.x }},
not ={{ $json.x }} — a single missing body. is the most frequent
silent failure in n8n.
The node's JSON parameter names are not the same as ScraperAPI's HTTP query parameter names. n8n uses camelCase with a resource prefix; the API uses snake_case. When generating JSON, use the n8n names.
| ScraperAPI HTTP param | n8n field (api resource) | n8n field (crawler resource) |
|---|---|---|
url | apiUrl | crawlerStartUrl |
render | apiOptionalParameters.apiRender | crawlerOptionalParameters.crawlerApiParameters.crawlerApiRender |
country_code | apiOptionalParameters.apiCountryCode | crawlerOptionalParameters.crawlerApiParameters.crawlerApiCountryCode |
premium | apiOptionalParameters.apiPremium | crawlerOptionalParameters.crawlerApiParameters.crawlerApiPremium |
ultra_premium | apiOptionalParameters.apiUltraPremium | crawlerOptionalParameters.crawlerApiParameters.crawlerApiUltraPremium |
autoparse | apiOptionalParameters.apiAutoparse | crawlerOptionalParameters.crawlerApiParameters.crawlerApiAutoparse |
output_format | apiOptionalParameters.apiOutputFormat | crawlerOptionalParameters.crawlerApiParameters.crawlerApiOutputFormat |
| device (desktop) | apiOptionalParameters.apiDesktopDevice (bool) | crawlerOptionalParameters.crawlerApiParameters.crawlerApiDesktopDevice |
| device (mobile) | apiOptionalParameters.apiMobileDevice (bool) | crawlerOptionalParameters.crawlerApiParameters.crawlerApiMobileDevice |
session_number | apiOptionalParameters.apiSessionNumber | crawlerOptionalParameters.crawlerApiParameters.crawlerApiSessionNumber |
keep_headers | apiOptionalParameters.apiKeepHeaders | crawlerOptionalParameters.crawlerApiParameters.crawlerApiKeepHeaders |
follow_redirect | apiOptionalParameters.apiFollowRedirect | crawlerOptionalParameters.crawlerApiParameters.crawlerApiFollowRedirect |
retry_404 | apiOptionalParameters.apiRetry404 | crawlerOptionalParameters.crawlerApiParameters.crawlerApiRetry404 |
zip | apiOptionalParameters.apiZipCode | (api only) |
custom_headers | apiOptionalParameters.apiCustomHeaders | (api only) |
wait_for_selector | apiOptionalParameters.apiWaitForSelector | (api only) |
x-sapi-instruction_set | apiOptionalParameters.apiInstructionSet | (api only) |
For SDE platforms, see references/node-reference.md — each platform/
operation has its own required field name (e.g., sdeAsin, sdeQuery,
sdeProductId, sdeUrl, sdeCategory) and its own optional-parameters
collection (e.g., sdeAmazonProductOptions, sdeGoogleSearchOptions).
AI Parser exception: the aiparser resource uses aiParser* camelCase
field names (aiParserName, aiParserUrls, aiParserId, aiParserUrl,
etc.), but the inner keys of its aiParserScraperParams collection are
plain snake_case (render, premium, country_code, session_number,
…) — no prefix, unlike every other resource. See references/node-reference.md.
If you're not sure of an exact field name, read the reference file before generating JSON. Mis-named fields are silently dropped on import.
Every operation returns one item per input item with this shape:
{
"resource": "api",
"response": {
"body": "...",
"headers": { },
"statusCode": 200,
"statusMessage": "OK"
}
}
For api and crawler, body is the raw text payload (HTML, Markdown,
JSON-as-string depending on apiOutputFormat). For sde, body is the
parsed JSON document from ScraperAPI as a string — downstream nodes need
to parse it. The simplest pattern is a Code node:
return $input.all().map((item, i) => ({
json: JSON.parse(item.json.response.body),
pairedItem: { item: i },
}));
The pairedItem field tells n8n which input item each output belongs
to. Skipping it works for linear flows, but the moment the workflow
fans out (Loop Over Items, Merge, IF that re-converges), missing
pairedItem causes downstream nodes to mismatch items — most often
seen as "wrong row paired with wrong scrape result" in batch
workflows. Always set it.
After this node, every field from the structured payload is accessible
directly as ={{ $json.<field> }} downstream.
The user usually has one of these shapes in mind. Don't invent a complex multi-node flow when one of these covers it.
Schedule Trigger → [Sheets/DB read] → Loop Over Items
↓
ScraperAPI (sde)
↓
Code (parse body)
↓
[Sheets/DB write history]
↓
IF (changed?)
↓
Email / Slack
When the user's request resembles a price-monitoring or daily-digest workflow (any combination of: scheduled trigger, list of products, ScraperAPI lookup, history table, email-on-change), don't hand-write the JSON from this shape. Fetch the canonical ScraperAPI template and adapt it:
GET https://api.n8n.io/api/templates/workflows/15609
The full importable workflow JSON is at response.workflow.workflow
(it has nodes and connections at the top level, ready to drop into
n8n's import dialog). The template has 29 nodes — Schedule Trigger, 3
ScraperAPI nodes (Amazon / Walmart / Google Shopping), Data Table for
history, Code nodes for diffing, an HTML digest, plus both Gmail and
SMTP send paths so the user can pick one.
Adapt rather than reproduce: change the product list, drop retailers the user doesn't need, swap the email path, simplify the digest. Cite the human-readable page so the user can preview before importing:
https://n8n.io/workflows/15609-send-daily-price-drop-digest-emails-for-amazon-walmart-and-google-via-scraperapi/
Before hand-writing any workflow, it's worth checking ScraperAPI's full
template collection at https://n8n.io/creators/scraperapi/ — if an
official template already fits the user's use case, adapt it instead.
If the fetch fails (offline, rate-limited, API change), fall back to
the shape diagrammed above and the simpler single-ASIN example in
references/example-workflows.md.
Webhook → ScraperAPI (sde or api) → Code (parse) → Respond to Webhook
Useful for lead enrichment, on-demand product lookups, or as an MCP-style tool exposed to an LLM. Set the Webhook's response to "Using 'Respond to Webhook' node" so you can return the parsed data.
[Trigger] → ScraperAPI (crawler / Initiate) → ... waits ...
↓
(results arrive at separate webhook workflow)
Webhook (the callbackUrl) → process each page → store / index
The Initiate operation returns a jobId immediately. Pages are POSTed to
crawlerCallbackUrl as they're scraped — this must be a different
workflow with a Webhook trigger, not the same workflow that initiated the
job. Always tell the user to copy the callback workflow's webhook URL into
crawlerCallbackUrl before activating.
[Read CSV / Sheet] → Loop Over Items (batch size 5–10) → ScraperAPI → Code → Merge → Output
Use Loop Over Items (a.k.a. Split In Batches) with a small batch size to stay under ScraperAPI's concurrency limit. The Free plan allows 5 concurrent requests; paid plans go higher. If the user knows their plan, size the batch accordingly; otherwise default to 5.
The ScraperAPI node declares usableAsTool: true, so it can be plugged
into an n8n AI Agent node as a callable tool. The agent decides when
to invoke it, with what URL/query, based on the user's prompt.
Chat Trigger → AI Agent ─┬─ Chat Model (OpenAI / Anthropic / etc.)
├─ Memory (optional)
└─ Tool: ScraperAPI
Wiring details:
sde / googleSearch for "let the
agent search the web", or api / apiRequest for "let the agent
fetch any URL").={{ $fromAI('parameter_name', 'description', 'string') }}.
$fromAI is the n8n helper that exposes a parameter to the agent's
tool schema; the agent picks the value at runtime.{
"resource": "sde",
"sdePlatform": "google",
"operation": "googleSearch",
"sdeQuery": "={{ $fromAI('query', 'The user search query', 'string') }}",
"sdeGoogleSearchOptions": {
"tld": "com",
"outputFormat": "json"
}
}
The agent receives the parsed JSON body as the tool result and reasons over it. For best results add a Code node between the ScraperAPI tool and the agent to slim the payload — raw SDE responses can be large enough to blow the agent's context budget.
ScraperAPI charges credits per successful request. Generated workflows that loop or schedule can burn credits silently. When the workflow scrapes more than ~50 URLs per run or runs more than hourly, add a note in your reply estimating the per-run and per-month cost.
| Setting | Credits per request |
|---|---|
api standard | 1 |
api + apiRender: true | 10 |
api + apiPremium: true | 10 |
api + apiPremium: true + apiRender: true | 25 |
api + apiUltraPremium: true | 30 |
api + apiUltraPremium: true + apiRender: true | 75 |
sde structured endpoint | the site's rate: 5 for Amazon/Walmart/eBay, 25 for Google |
aiparser generate (aiParserCreate, field-adding aiParserUpdate) | 30,000 per additional parser (first parser per account is free) |
aiparser parse (aiParserParse) | standard scraping cost: 1, plus any scraper-param surcharge (e.g. render 10) |
AI Parser is expensive to generate. Every account gets one free parser;
each additional parser costs 30,000 credits to generate — never create
parsers in a loop. The recurring per-URL aiParserParse cost is small
(standard scraping rate), so reuse one parser across many pages.
Those are normal-site costs. Some sites cost more per request: Amazon, Walmart
and eBay 5, Google and Bing 25, LinkedIn 30, sites behind Cloudflare/DataDome/
PerimeterX/Akamai 10. 200 and 404 responses are charged; failed (500)
requests are not.
For full and current pricing, link to
https://docs.scraperapi.com/ from the response.
= prefix turns the expression into literal text❌ "apiUrl": "{{ $json.url }}" // n8n scrapes the literal string "{{ $json.url }}"
✅ "apiUrl": "={{ $json.url }}" // resolved to the current item's url field
body, not the root❌ "sdeQuery": "={{ $json.search_term }}" // undefined
✅ "sdeQuery": "={{ $json.body.search_term }}" // works
The Webhook node wraps incoming data as { headers, params, query, body }.
The user's payload is $json.body. Same applies to a Chat Trigger that
receives a JSON body.
❌ return JSON.parse($json.response.body);
❌ return { data: parsed };
✅ return [{ json: JSON.parse($json.response.body), pairedItem: { item: 0 } }];
n8n expects an array of { json: {...}, pairedItem?: {...} }. Returning
a raw object yields "Cannot read properties of undefined" downstream.
apiPremium and apiUltraPremium set together❌ { "apiPremium": true, "apiUltraPremium": true }
✅ { "apiUltraPremium": true } // pick one; ultra implies premium
They are mutually exclusive in the node UI and have undefined behavior together.
❌ ScraperAPI (crawlerJobCreate) ───loops to itself───> processing nodes
✅ Workflow A: Trigger → ScraperAPI (crawlerJobCreate, callbackUrl = "<webhook in Workflow B>")
Workflow B: Webhook trigger → process page → store
Crawler results arrive at the callbackUrl as HTTP POSTs from
ScraperAPI's infrastructure. Only a workflow with a Webhook trigger can
receive them — never the same workflow that initiated the job.
❌ "credentials": { "scraperApi-Api": { "id": "abc123", "name": "ScraperAPI API" } }
✅ "credentials": { "scraperApi-Api": { "id": "REPLACE", "name": "ScraperAPI API" } }
Credential IDs are local to one n8n instance. An imported workflow with a real ID from another instance will fail with a "credential not found" error. Use a placeholder and ask the user to re-select the credential once after import.
sdePlatform without a matching operation❌ { "sdePlatform": "amazon", "operation": "googleSearch" } // mismatched
✅ { "sdePlatform": "amazon", "operation": "amazonProduct" }
The operation field is platform-scoped. For sdePlatform: "amazon",
valid operations are amazonProduct, amazonSearch, amazonOffers.
For Amazon Reviews and Prices (available via the underlying API but not
yet surfaced as separate node operations), fall back to api +
apiAutoparse: true against the Amazon URL.
sdeThe structured response is a JSON string inside response.body.
Downstream nodes referencing ={{ $json.pricing }} see undefined until
a Code (or Set) node parses the body. See the parse snippet above.
The API key belongs in the credential record, never in node parameters or expressions. Putting it in JSON exposes it in workflow exports, version history, and audit logs.
| If you need … | Read |
|---|---|
| The exact field name for an SDE operation | references/node-reference.md |
| A larger worked example (price monitor, lead enricher) | references/example-workflows.md |
| What a valid n8n workflow JSON looks like end-to-end | references/workflow-json-anatomy.md |
After producing a workflow JSON, sanity-check it:
node.type is exactly n8n-nodes-scraperapi-official.scraperApiconnections exists in nodesapi* / sde* / crawler* /
aiParser*) — except inside aiParserScraperParams, whose inner keys
are plain snake_case (render, country_code, …)credentials block uses key scraperApi-Apiscraperapi-mcp (sibling skill in this plugin) — use when the
user wants Claude itself to call ScraperAPI as a tool, instead of
wiring it into an n8n workflow. Different output: live answers vs.
reusable JSON.n8n-mcp MCP server (https://github.com/czlonkowski/n8n-mcp) —
third-party MCP server that exposes n8n's full node catalog,
validation, and workflow CRUD to Claude. If the user has it installed,
recommend validating the generated JSON via validate_workflow and
deploying with n8n_create_workflow instead of having them import
manually. The two skills compose: this one teaches the ScraperAPI
node's shape; n8n-mcp teaches the surrounding n8n surface.https://n8n.io/integrations/scraperapi/https://n8n.io/creators/scraperapi/https://n8n.io/workflows/15609-send-daily-price-drop-digest-emails-for-amazon-walmart-and-google-via-scraperapi/https://api.n8n.io/api/templates/workflows/15609https://www.npmjs.com/package/n8n-nodes-scraperapi-officialhttps://docs.scraperapi.com/https://dashboard.scraperapi.com/What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub scraperapi/scraperapi-skills --plugin scraperapi20 skills in this plugin
/scraperapi-agent-onboardingEntry point for agents and developers new to ScraperAPI. Read first when integrating ScraperAPI into an agent or app, setting up the MCP server for Claude Code or other LLM tools, choosing the right ScraperAPI product, or getting an API key. Trigger on: "how do I use ScraperAPI", "set up ScraperAPI", "connect ScraperAPI to Claude", "which ScraperAPI product should I use", "get web data for my agent", "add web scraping to my project", "ScraperAPI getting started". After reading, route to the narrower skill that owns the chosen path. If the user already named a language or SDK, n8n, Zapier, or the sapi CLI, use that skill directly instead.
Note: Transmits user-supplied queries, URLs, and content to ScraperAPI.
/scraperapi-asyncReference for ScraperAPI's Async Jobs REST API: submit scraping jobs in the background and get results by polling or webhook, including batch jobs. Consult when the user is scraping many URLs, needs non-blocking requests, or wants webhook delivery. Use when user asks: "how do I scrape 1000 URLs with ScraperAPI", "ScraperAPI async jobs", "batch scraping with ScraperAPI", "submit a scraping job and poll for results", "ScraperAPI webhook callback", "ScraperAPI batchjobs endpoint". Covers single and batch jobs, webhook callbacks, apiParams, async-only parameters, binary responses, retention, and error handling. It is language-agnostic: for SDK client code, use the language's SDK skill; to crawl a whole site by following links, use scraperapi-crawler.
Note: Transmits user-supplied queries, URLs, and content to ScraperAPI.
Other plugins' skills for the same job