scraperapi-n8n — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited scraperapi-n8n (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
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).
community nodes. On self-hosted instances, an instance owner must enable community nodes first.
n8n-nodes-scraperapi-official**. After install, "ScraperAPI" appears in the node picker.
https://dashboard.scraperapi.com/. Theycreate 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 three 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. |
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, and reach for 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.
id. If you rename a node, updatethe connections map too.
[x, y] pixels in the editor. Anything is fine onimport; n8n re-layouts on demand. Use ~240px spacing horizontally.
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 }}" stringA 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 |
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).
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 / SlackWhen 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/15609The 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/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 WebhookUseful 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 / indexThe 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 → OutputUse 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: ScraperAPIWiring details:
as the tool's signature — the agent fills in dynamic parameters from context. Pick the operation that matches the job you want the agent to be able to do (e.g., 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.
input (not the main input).
"Scrape any URL") — the agent uses the node name as part of the tool description it sees.
{
"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 |
sde structured endpoint | 1–10 (per vertical; see public docs) |
Failed requests (non-200) are generally not charged, but retries on transient errors still consume credits if they eventually succeed.
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 fieldbody, not the root❌ "sdeQuery": "={{ $json.search_term }}" // undefined
✅ "sdeQuery": "={{ $json.body.search_term }}" // worksThe 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 premiumThey 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 → storeCrawler 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*)credentials block uses key scraperApi-Apiuser wants Claude itself to call ScraperAPI as a tool, instead of wiring it into an n8n workflow. Different output: live answers vs. reusable JSON.
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/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/~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.