Trawl

API reference

Every endpoint, grouped by resource. Generated from the live OpenAPI spec.

OpenAPI spec · v1.0.0

Your products checked against the brand's own site. Every route is a read. Start with the Shops quick start.

Rate limits

Calls Limit
Every call 120 a minute per person (a key counts for its owner, with that person's web session)
Shops reads: the matches, a product page, the fixes, the export, a one-product lookup (GET /api/shops/lookup) 30 a minute per person, all together
The matches, a product page, the fixes, a one-product lookup 200 a day per person, all together
The export (GET /api/shops/export) 10 a day per organization, all its people and keys together
Lookup batches (POST /api/shops/lookup) 10 a day per organization, 200 rows of 20 brands each
Lookups (GET and POST /api/shops/lookup together) 3 a minute per person

A brand we do not read yet is noted: the brands asked most are added to the next day's brand scraps, at most 5 a day.

Scrap CRUD, execution triggers, banner upload, and account credentials.

ScrapVersions

Atomic versioning of scrap scripts (Git-like history in MongoDB).

Paginated run history, status, exec time, and per-run digest. The pre-rename paths /api/historys/* still work as aliases of /api/runs/*.

Invitations

Admin-managed signup invitations + access control (cap / invite-only)

Scoped API keys, webhooks, and the MCP server endpoint.

Ai

AI-assisted scrap authoring — the guided wizard (generate → create → run) and related AI operations.

Activities

Real-time SSE event stream per scrap.