Read a scrap's settings, list its runs, then read one run to get its results and its digest. The MCP tools (trawl_get_scrap, trawl_get_scrap_runs) return the same shapes.
Read a scrap
GET /api/scraps/:id returns one scrap, never its account passwords or session cookies: only the worker reads those. :id is the id of a scrap in GET /api/scraps.
The answer:
| Field | Notes |
|---|---|
url |
The target URL, TRAWL.url in the script |
params |
Scenarios: one set of TRAWL.<name> values is picked at random on each run |
history |
The ids of the last 50 runs, most recent first: read one with GET /api/runs/:historyId |
cron / cronTimezone |
The schedule (null = none) and its IANA timezone, UTC by default (Schedule) |
emailNotif / emailNotifRecipient / emailNotifFormat |
Results email after scheduled runs: on, to whom, json or csv |
digest |
AI Digest settings, always complete: enabled, mode (latest, changes, changes_only), prompt, recipient (AI Features) |
curl https://api.trawl.me/api/scraps/<SCRAP_ID> -H "Authorization: Bearer <YOUR_API_KEY>"Response
{
"type": "success", "message": "scrap get",
"data": {
"id": "507f1f77bcf86cd799439011", "title": "Hacker News — AI search", "url": "https://news.ycombinator.com/search",
"params": [{ "TRAWL.query": "AI tools 2026" }], "cron": "0 9 * * 1", "cronTimezone": "Europe/Paris",
"alert": "me@example.com", "autoFix": true, "proxyTier": "tier1", "emailNotif": true, "emailNotifFormat": "csv",
"digest": { "enabled": true, "mode": "changes", "prompt": "Summarize the new posts", "recipient": "me@example.com" },
"history": ["65a1f2e3b5c6d7e8f9a0b1c3", "65a1f2e3b5c6d7e8f9a0b1c2"]
}
}curl https://api.trawl.me/api/runs -H "Authorization: Bearer <YOUR_API_KEY>"Response
{
"type": "success", "message": "history list",
"data": [
{ "id": "65a1f2e3b5c6d7e8f9a0b1c3", "scrap": { "id": "507f1f77bcf86cd799439011", "title": "Hacker News — AI search" },
"status": true, "statusDetail": "success", "length": 30, "time": 4210, "triggeredBy": "cron", "createdAt": "2026-04-17T09:00:00.000Z" }
]
}Read one run
GET /api/runs/:historyId returns one run with its results. :historyId is a run id from the list above, from the scrap's history, or the historyId a webhook sends.
The answer:
| Field | Notes |
|---|---|
status |
true = success, false = failure, null = still running |
statusDetail |
success, error (the script threw), empty (0 items) or regression (far fewer items than usual) |
data |
A JSON string: parse it, the rows are its data array. null when the rows are no longer kept (for example an older run whose rows a newer run replaced) |
digest |
null, or { text, structured }: text is the digest in markdown, structured its sections ({ summary, stats, sections }) or null. "What changed" mode writes "No change since the last run" when nothing changed; "Only when changed" mode leaves it null |
fixVersionId / fixedAt |
Set when an Auto-fix re-run produced this run |
meter.units |
What the run cost you, in units. No other cost field is ever sent |
nav |
The previous and next runs of the same scrap |
See also: API Keys · MCP Server · Webhooks · Data Quality
Next step → API keys
curl https://api.trawl.me/api/runs/<HISTORY_ID> -H "Authorization: Bearer <YOUR_API_KEY>"Response
{
"type": "success", "message": "history get",
"data": {
"id": "65a1f2e3b5c6d7e8f9a0b1c3", "scrap": { "id": "507f1f77bcf86cd799439011", "title": "Hacker News — AI search" },
"status": true, "statusDetail": "success", "length": 2, "time": 4210, "triggeredBy": "cron", "createdAt": "2026-04-17T09:00:00.000Z",
"data": "{\"type\":\"success\",\"data\":[{\"title\":\"Post A\"},{\"title\":\"Post B\"}]}",
"digest": { "text": "2 new posts today…", "structured": null },
"meter": { "units": 12 }, "nav": { "prevId": "65a1f2e3b5c6d7e8f9a0b1c2", "nextId": null, "nextResult": null }
}
}