Trawl for Shops checks the products of your catalog that carry a crossed-out price against the brand's own site. Three calls give you everything: your sales, their matches, and a lookup for rows that are not in your catalog yet. A webhook tells you when fresh data is ready.
Every Shops route is a read: nothing here changes your data, and there is nothing to set up on your side.
Shops is reached by the API only: the MCP server has no Shops tool yet.
1. Make a read key
In the web app, open Developers → API Keys and click Create:
- Name: anything that tells you where the key lives (
shops-sync). - Expiry: required, at most 2 years ahead.
- Access: Shops data, read only (the scope
trawl:shops:read). It is preselected in a Shops organization. Full access with no scraps picked works too; Read only, or a key restricted to some scraps, gets403.
Copy the key: it starts with trawl_ and is shown once. The key's owner must be a member of your organization; each person who calls the API makes their own key. See API keys for the rest.
2. Send it as a header
Every call carries Authorization: Bearer <YOUR_API_KEY>. Every JSON answer has the shape { "type": "success", "message": "…", "data": … }. Dates are UTC (ISO 8601).
When to read. Trawl checks your catalog each morning and again during sale days; wait for shops.check.done before you read.
3. List your sales
GET /api/shops/sales lists your sales, each with its handle and its counts (kpi). A sale is listed once its products are checked, even when none of them is matched yet: kpi.products.onSale is how many products it has, kpi.products.matched how many found their brand product, possibly 0.
The answer: Trimmed.
curl "https://api.trawl.me/api/shops/sales" \
-H "Authorization: Bearer <YOUR_API_KEY>"{
"type": "success",
"message": "shop sales",
"data": [
{ "handle": "northfold-winter", "title": "Northfold", "startAt": "2026-11-19T07:00:00.000Z", "endAt": "2026-12-01T22:59:00.000Z", "…": "…" }
]
}4. Read the matches of a sale
GET /api/shops/matches?sale={handle} gives one row per variant of yours, a page at a time: what the Shops screen shows (your crossed-out price, the brand's full price, the gap, the verdicts). To get every field of a whole sale in one call, use the export.
The answer: Trimmed.
| Field | Meaning |
|---|---|
productId |
Your catalog product |
vendor |
The brand, as your catalog names it |
status |
The price verdict: too_high, ok, or why there is none (not_found, name_only, not_comparable) |
confidence |
How sure the match is: high, medium, low, or null with no match |
matchedBy |
What tied your variant to the brand's product (below) |
catalog.crossed |
Your crossed-out price |
brand.full |
The brand's full price (the one your crossed-out price is judged against) |
gap |
Your crossed-out price minus the brand's full price, in euros |
variantKey |
Export only: stable id of your variant, the key to load on |
catalog.price, brand.price |
Export only: your price, and the brand's current price |
brand.url, brand.sku, brand.barcode |
Export only: the brand's product page and its codes |
checkedAt |
Export only: the check that wrote the row |
When there is no verdict, reason explains why, in one of four words:
reason |
Means |
|---|---|
brand_not_read |
Trawl does not read this brand's site yet |
not_at_brand |
The brand does not sell this product, or no longer does |
no_match |
No brand product was found for sure |
not_comparable |
Found, but the prices cannot be compared |
listing says whose product page gives more: brand_better, same or shop_better. In the web app, a match's page also lists what to add to yours (toAdd: what the brand page has that yours lacks).
matchedBy is one of five kinds: barcode (your barcode), reference (your full reference), partial_reference (part of it), name (your product's name: low) or photo (your product's photos: low, never a price verdict). null: no brand product.
Paging. One sale at a time: sale is required, without it the answer is a 422. perPage goes up to 100 (default 50). Read page=0, page=1… and stop when (page + 1) * perPage >= total. Other filters, all optional: status, confidence, matchedBy, reason, vendor, search (a product id, SKU or barcode). You can make 200 reads a day: pages of this list, product pages and fixes together, your key and your web session counted as one.
Export a whole sale. GET /api/shops/export?sale={handle} gives every row of the sale in one JSON answer, with every field (your prices, the brand's, its page, its codes) and Pinch's suggestions for each row (fixes, as on the product page). 10 exports a day per organization, all your people and keys together. There is no CSV: format=csv answers a 422.
curl "https://api.trawl.me/api/shops/matches?sale=northfold-winter&perPage=100" \
-H "Authorization: Bearer <YOUR_API_KEY>"{
"type": "success",
"message": "shop match list",
"data": [
{
"id": "6741f0c2a1b2c3d4e5f60718", "productId": "8841203", "vendor": "Northfold",
"status": "too_high", "confidence": "high", "matchedBy": "barcode", "listing": "brand_better",
"catalog": { "title": "Merino crew sweater", "sku": "NF-CREW-M", "crossed": 150, "…": "…" },
"brand": { "full": 120, "currency": "EUR" },
"gap": 30, "gapPct": 25
}
],
"total": 48
}curl "https://api.trawl.me/api/shops/export?sale=northfold-winter" \
-H "Authorization: Bearer <YOUR_API_KEY>"5. The fixes
GET /api/shops/fixes?productId={productId} gives the text to add to one of your product pages, copied from the brand's: one entry per product page of yours (productId, brandUrl), each with its changes. productId is required; since keeps the entries made after your last read. Each read counts in your 200 a day.
kind |
Means |
|---|---|
conflict |
The two pages say different things about the same fact |
missing_info |
Only the brand says it |
longer_description |
The brand describes the product at more length |
missing_photo |
A photo only the brand shows (url) |
Each change has:
| Field | Meaning |
|---|---|
line |
The text to paste on your page |
source |
The brand's words it comes from |
current |
What your page says now: set for a conflict, null otherwise |
why |
Why the change is there, in a few words |
priority |
high (a conflict, or a missing fact about the composition, the dimensions, the weight, the origin or the care), medium (any other missing fact) or low (a longer description, a missing photo). Changes come most important first |
A missing_photo change has only kind, url and priority.
Paging and filters. Paged like the matches: page, perPage (up to 100, default 50) and total; stop when (page + 1) * perPage >= total. productId is required; other filters, all optional: since, sale (a handle), vendor, confidence. There is no CSV: format=csv answers a 422.
6. Look up rows
GET /api/shops/lookup says which brand product one of your rows is, even a row not in your catalog yet. vendor is required, with sku, modelRef, barcode or title; variant (or color and size) and rowId are optional. There is no price verdict here.
The answer: Trimmed.
product is the brand product, null when none is found; reason then explains why (the four reasons). A brand Trawl does not read answers brand.read: false and brand.reason: brand_not_read. For a brand Trawl does not cover at all, brand.noted is true when your request for it was recorded, false when it was not.
A lookup can be less sure than the matches. The lookup checks the row as you send it, not your catalog's product. A pair found on a reference whose titles share no word is low: send your title as your catalog writes it. A row with only a barcode matches only when the brand page shows that barcode. Send every id you have: sku, modelRef, barcode and title.
Many rows. POST /api/shops/lookup with { "rows": [...] }, each row as the GET takes it: up to 200 rows of 20 brands a call, 10 calls a day for your organization. Send your CSV rows as they are: a column the lookup does not read is named in that row's ignored. The answer is one entry per row, in the order sent. A row the lookup cannot take (no vendor, none of sku, modelRef, barcode, title, or a value too long) is refused alone: its entry has an error that names the field and why, product: null, and the other rows are still answered. Lookups have their own limit: 3 a minute per key owner, GET and POST together. A call refused with a 422 does not count in it.
curl "https://api.trawl.me/api/shops/lookup?vendor=Northfold&sku=NF-CREW-M&title=Crew%20Sweater&variant=M" \
-H "Authorization: Bearer <YOUR_API_KEY>"{
"type": "success",
"message": "shops lookup",
"data": {
"rowId": null, "vendor": "Northfold", "brand": { "name": "Northfold", "read": true, "reason": null },
"matchedBy": "reference", "confidence": "high", "reason": null,
"product": { "title": "Crew Sweater", "variantTitle": "M", "sku": "NF-CREW-M", "price": 120, "url": "https://northfold.example/crew", "…": "…" },
"ignored": []
}
}{ "rowId": "line-3", "vendor": null, "error": "vendor: Invalid input: expected string, received undefined", "brand": null, "matchedBy": null, "confidence": null, "reason": null, "product": null, "ignored": ["price"] }Know when a check is done: shops.check.done
It is sent each time a check of your catalog finishes; most days bring more than one. Fix lines and photo matches keep landing after it, so read the fixes of a product again (fixes?productId=) rather than relying on the event alone.
In the web app, open Developers → Webhooks and click Create: enter a public HTTPS URL and pick the event Shops Check Done. It covers your whole organization, so there is no scrap to pick. Copy the secret at once: it is shown only once. Any member can do it. In the list, the Test Ping button sends a test call to your URL, and Delete removes the webhook.
Webhooks are not managed with an API key: a key gets 401 on /api/developers/webhooks. Over the API, they are a call from your signed-in session (the TOKEN cookie of the web app), with no scrapIds (the API refuses both together, 422). See Webhooks.
The body:
The request carries the X-Webhook-Event: shops.check.done header and the X-Webhook-Signature of its body. Verify it, and answer within 10 s: see Verify signature.
curl -X POST https://api.trawl.me/api/developers/webhooks \
-H "Cookie: TOKEN=<YOUR_SESSION_TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "url": "https://example.com/trawl-hook", "events": ["shops.check.done"] }'{
"organizationId": "64a1f2e3b5c6d7e8f9a0b1c4",
"checkedAt": "2026-11-03T06:12:00.000Z",
"products": 1840,
"variants": { "checked": 2210, "matched": 1310, "tooHigh": 96, "brandBetter": 410, "unmatched": 900 },
"links": {
"matches": "https://api.trawl.me/api/shops/matches",
"fixes": "https://api.trawl.me/api/shops/fixes?since=2026-11-03T06%3A12%3A00.000Z"
}
}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.
When it goes wrong
Branch on the HTTP status of the answer. description says what is wrong. Most errors have the shape type, message, code, status, errorCode, description, where code and status repeat the HTTP status. Do not branch on errorCode: on these errors it says SERVER_ERROR even for a 4xx. A GET /api/shops/lookup?vendor=Northfold (no id, no title) answers:
A few answers are shorter. A POST lookup body that is not JSON (400), or too big (413, "message": "Payload Too Large"), has no code:
Past the 3 lookups a minute (429), the answer has no errorCode; past the 10 exports a day, description is Too many exports today, please try again tomorrow.; past the 200 reads a day, it is Too many product pages today, please try again tomorrow.:
Past the 120 requests a minute, the 429 is only { "message": "Too many requests, please try again later." }.
| Code | Means | What to do |
|---|---|---|
400 |
A POST lookup body that is not valid JSON |
Send the rows as JSON, with Content-Type: application/json |
401 |
No key, or a key that is wrong, expired or revoked | Check the header. Make a new key if this one expired |
403 |
The key has no trawl:shops:read scope, or is restricted to some scraps |
Make a key with the access Shops data, read only |
404 |
Your organization has no Shops | Write to us: Shops is set up per organization |
413 |
A lookup body over 480 kB | Send fewer rows a call |
422 |
The matches or the export without a sale, the fixes without a productId, format=csv, a value outside the list, a GET lookup with no vendor or with a parameter it does not take, or a POST lookup with no rows, over 200 rows, over 20 brands or a field other than rows. It does not count in the 3 lookups a minute |
Add the sale or the productId, or fix the value: description names the allowed ones. A bad row in a POST is no 422: see its error |
429 |
Past one of the rate limits | Wait for the RateLimit-Reset header (seconds), then go on |
The 120 requests a minute count per key owner, shared with that person's session in the web app.
{ "type": "error", "message": "Unprocessable Entity", "code": 422, "status": 422, "errorCode": "SERVER_ERROR", "description": "one of sku, modelRef, barcode or title is required" }{ "type": "error", "message": "Bad Request", "description": "The request body could not be read." }{ "type": "error", "message": "Too Many Requests", "code": 429, "status": 429, "description": "Too many lookups, please try again in a minute." }