Trawl

n8n

The Trawl node for n8n lets a workflow list your scraps, run one and read the rows of its last run. It needs only an API key.

To have Trawl push each finished run to n8n instead, you need a webhook: Growth or Pro (or a Shops client organization) only. The node can also be a tool of the n8n AI Agent.

Install

On self-hosted n8n, open Settings > Community Nodes, select Install, enter @trawlme/n8n-nodes-trawl and confirm (Owner or Admin only; see Install community nodes). n8n Cloud installs community nodes only once n8n has verified them. An installed node never updates by itself: update it from the same screen, then test your workflows.

Credential

Create a Trawl API credential in n8n:

Field Value
API Key A Trawl API key, starting with trawl_. Create one under Developers → API Keys in the Trawl app.
Base URL https://api.trawl.me (default). Change it only to target another Trawl instance.

n8n tests the key with a one-item scrap list. The scopes the key needs depend on the operation:

Operation Scope
Credential test and the "From List" scrap picker trawl:scraps:read
Get Many trawl:scraps:read
Run trawl:scraps:run
Get Latest Result trawl:scraps:read and trawl:history:read

Operations

The node has one resource, Scrap, with three operations:

Operation What it does
Get Many Lists your scraps, with an optional text search.
Run Runs a scrap. With Wait for Result on (default), the node waits for the run to finish (it can take a few minutes) and outputs one item per scraped row. With it off, the run is queued and the node outputs { status: "queued", scrapId } at once.
Get Latest Result Outputs the rows of the scrap's last run, one item per row. It never starts a run and uses no run quota.

Pick the scrap from a searchable list, or paste its ID (24 hex characters).

Get Latest Result fails with a clear message when the scrap has never run, when a run is still in progress, when the last run failed, or when the stored data of the last run has aged out.

Run parameters

Parameters (optional JSON, default {}) lets one scrap serve many inputs. Give a JSON object, or an expression that returns one:

The object follows the same rules as a run call from your code: the exact keys of the scrap's stored parameters, all of them, each with its stored type (Run with your own values). A mismatch, such as a bare city when the scrap stores TRAWL.city, fails the run with a 422 (with Full Response on, you get it as statusCode 422). With Wait for Result off, the 422 comes at once and nothing is queued. A scrap with no stored parameters ignores the object. Invalid JSON, or a value that is not an object, fails the node with an error naming the field.

JSON
{ "TRAWL.city": "Paris", "TRAWL.limit": 20 }

Output

The Output option of Run has two modes:

  • Rows (default): one item per scraped row.
  • Full Response: one item per call, { statusCode, body }, where body is the raw API JSON { type, message, data }. An HTTP error status (for example a 429 when a run is already in progress) is output, not thrown, so the workflow can branch on statusCode. A network error or a timeout still fails the node.

Empty runs and errors

A successful run with zero rows outputs nothing, and n8n ends the branch there. For scheduled workflows, turn on the node setting Always Output Data so the next nodes still run. Turn on Continue On Fail to get an error as an item instead of stopping the workflow.

Example workflow

Every morning, run a scrap and send its rows on:

  1. Schedule Trigger: every day at 08:00.
  2. Trawl: Resource Scrap, Operation Run, pick your scrap, Wait for Result on.
  3. Any next node (Google Sheets, Slack, a database) receives one item per scraped row.

To read data that a Trawl schedule already collected, use Get Latest Result instead of Run. It costs no run.

To let an LLM client find and call Trawl tools itself, use the MCP server instead of this node.

See also: API Keys · MCP Server · Webhooks

Next step → Webhooks