Trawl

Read your Shops data each day

Your data changes every day: a sale opens, a brand changes a price, a product page is read. This guide says when each thing is refreshed, how to read everything once a day, and how to know a check is done. Field by field, see the Shops reference.

When your data is refreshed

All hours are Paris time. They are the times a read starts: a large catalog takes a while, so go by checkedAt or the shops.check.done webhook, never by the clock.

  • Your catalog, each morning from 05:00. Trawl reads your catalog and checks every product with a crossed-out price against its brand. This is the main check of the day.
  • The brands on sale, about every 5 days. During the morning read, Trawl reads again each brand on sale whose last read is more than 5 days old, then checks your catalog again on the fresh prices. A brand read that failed is tried once more, the next morning. A brand that is not on sale is read about once a month.
  • Coming sales, read before they open. Trawl reads the sales listed as coming on your site, up to 2 days ahead, at 05:00, 13:00 and 19:00, and reads their brands then. A sale's matches appear at the first check of your catalog after the sale opens: the morning one, or at 13:00 or 19:00 for a sale that was listed as coming in the morning and opened later that day. A sale that opens after 19:00, or that was first listed after the morning read, comes the next morning.
  • A new brand, tried as soon as we see it. Trawl tries to set up a brand it does not read yet the first time it shows: before its sale opens for a coming sale, during the morning read for a sale that was not listed ahead, and on Monday, Wednesday and Friday from 10:00 for the rest. When its products are already in your catalog, your catalog is then checked again, so its first price verdicts come the same day; for a coming sale they come at the first check after the sale opens. A brand whose site cannot be read, or that Trawl does not set up, stays in notCovered, its products with the reason brand_not_covered.
  • Product pages and fixes, hours after the check. The product pages are read after the check, a batch at a time. The page verdicts and the fix lines land during the next minutes, and again hours later when the day's page reads end. Read them with GET /api/shops/fixes?since= (below).
  • Price history from 2026-11-06. brandHistory counts the brand's prices from that date; its lowest price looks back 30 days at most.

What you get:

  • Only what can be compared. A variant with no crossed-out price, or no vendor, has no row.
  • While the sale runs. A product that leaves your catalog leaves your matches at the next check, its fix lines with it. Keep your own history if you need one.
  • Each row says how old it is. catalog.seenAt: the last read of your catalog. brand.seenAt: the brand read its price comes from (for a product gone from the brand, or with no usable brand catalog read, the last time we saw it). checkedAt: the check that wrote the row.
  • Photo matches. A row with matchedBy photo_a or photo_b was found by its photos: low, never a price verdict (see How a match is made).
  • Brand content. Photos and texts come as the brand publishes them. You must have the brands' authorization before you reuse them.

Read everything, each day

  1. Read GET /api/shops/summary. Go on when checkedAt is today and at least 10 minutes old: a check writes in batches, and checkedAt moves before it ends. Or wait for the webhook.
  2. Read GET /api/shops/sales.
  3. For each sale, read GET /api/shops/matches?sale={handle}&perPage=200, page=0, page=1…, and stop when (page + 1) * perPage >= total (Paging): one row per variant. Never read the whole organization at once: it is slower for you, and format=csv is unpaged.
  4. For each sale's brand pages, read GET /api/shops/matches?sale={handle}&group=product&include=pages&perPage=200 the same way: one row per product. Its variants carry no price or verdict: those are in step 3.
  5. Read GET /api/shops/fixes?since={your last read}: the fix lines made since then.
  6. Read summary again. If checkedAt moved, start over.

Load the variants by variantKey, the brand pages by productId, and the fixes by productId and brandUrl. What you no longer read has left its sale: drop it, or keep your own history. A match with no catalog.sale is under no handle: a list without sale is the one read that reaches it, the one case for reading the whole organization.

pages.brand is the same page as on GET /api/shops/matches/:id, with gallery, description, factList, sectionTexts and text among its fields. null: no page read for this row's match. Check readable before you use a page. A product with several brand pages (rare) shows the page of its row's match: to read the others, list the product without group (search= its product id) and open each match by its id. A brand page exists for part of a catalog: read summary.kpi.

A full read after each shops.check.done (without a webhook: each morning, once checkedAt has stood still for 10 minutes, and again after 13:00 and 19:00 when a sale listed as coming that morning opened later in the day), and a read of fixes?since= later in the day, keep you up to date.

A worked example

The daily read on one sale, call by call. The answers below have the API's fields and shapes; the values are an example, trimmed where a list repeats.

Example: your sales

GET /api/shops/sales: your sales in your home page's order (position, 0 = first), then the ones off the home, latest start first. A sale is listed once it has matches: a sale with none yet, as a coming sale often is, is not listed. Take each sale's handle for the next calls.

The answer:

Example: a sale's matches

GET /api/shops/matches?sale=northfold-winter&perPage=200: one row per variant. This one is too_high: your crossed-out price (150) is 30 € above the brand's full price (120).

The answer:

Example: its brand pages

GET /api/shops/matches?sale=northfold-winter&group=product&include=pages&perPage=200: one row per product, with its variants and the brand page. The product's confidence is the lowest of its variants. pages.brand is null until the brand page is read.

The answer: One row of data.

Example: the fixes

GET /api/shops/fixes?since=2026-11-21T00:00:00.000Z: the text to add to your own product pages, copied from the brand's pages, made since your last read. One entry per product page of yours, oldest list first; in each entry, the most important change first (priority). The entry's confidence is its least sure variant's.

The answer:

Take only the entries you trust: GET /api/shops/fixes?confidence=high lists the entries whose least sure variant is high, with all their variants.

Example: one match in full

GET /api/shops/matches/6b016da5d4c1b956208bcc84, the id of a matches row, adds both product pages side by side (pages), why the page verdict (listingPoints), the pair's fix list with each line's priority (fixes), and the brand's price history (brandHistory).

The answer: Trimmed; field by field in One match in full.

curl "https://api.trawl.me/api/shops/sales" \
  -H "Authorization: Bearer <YOUR_API_KEY>"
Response
{
  "type": "success",
  "message": "shop sales",
  "data": [
    {
      "handle": "northfold-winter",
      "title": "Northfold",
      "image": "https://your-shop.example/cdn/northfold.jpg",
      "startAt": "2026-11-19T07:00:00.000Z",
      "endAt": "2026-12-01T22:59:00.000Z",
      "discountLabel": "Up to -50%",
      "position": 0,
      "kpi": { "brands": { "…": "…" }, "products": { "…": "…" }, "price": { "…": "…" }, "listing": { "…": "…" } }
    }
  ]
}
curl "https://api.trawl.me/api/shops/matches?sale=northfold-winter&perPage=200" \
  -H "Authorization: Bearer <YOUR_API_KEY>"
Response
{
  "type": "success",
  "message": "shop match list",
  "data": [
    {
      "_id": "6b016da5d4c1b956208bcc84",
      "id": "6b016da5d4c1b956208bcc84",
      "organizationId": "64a1f2e3b5c6d7e8f9a0b1c4",
      "variantKey": "[\"8841203\"]|4410",
      "productId": "8841203",
      "vendor": "Northfold",
      "status": "too_high",
      "reason": null,
      "matchedBy": "barcode",
      "confidence": "high",
      "catalog": {
        "title": "Merino crew sweater",
        "variantTitle": "M",
        "sku": "NF-CREW-M",
        "barcode": "3700000000013",
        "url": "https://your-shop.example/products/merino-crew-sweater",
        "price": 69,
        "crossed": 150,
        "currency": "EUR",
        "seenAt": "2026-11-21T05:20:00.000Z",
        "sale": { "handle": "northfold-winter", "title": "Northfold", "startAt": "2026-11-19T07:00:00.000Z", "endAt": "2026-12-01T22:59:00.000Z", "image": "https://your-shop.example/cdn/northfold.jpg", "discountLabel": "Up to -50%", "position": 0 },
        "image": "https://your-shop.example/cdn/crew.jpg",
        "listing": { "readable": true, "photos": 2, "photoSide": 800, "chars": 240, "facts": 1, "sections": [], "hasText": true }
      },
      "brand": {
        "name": "Northfold",
        "title": "Crew sweater, merino",
        "variantTitle": "M",
        "sku": "NF-CREW-M",
        "barcode": "3700000000013",
        "url": "https://northfold.example/crew",
        "image": "https://northfold.example/crew.jpg",
        "price": 120,
        "compareAt": null,
        "full": 120,
        "currency": "EUR",
        "seenAt": "2026-11-18T04:10:00.000Z",
        "gone": false,
        "available": true,
        "listing": { "readable": true, "photos": 5, "photoSide": 1200, "chars": 900, "facts": 4, "sections": ["composition", "care"], "hasText": true }
      },
      "brandCheaper": null,
      "gap": 30,
      "gapPct": 25,
      "listing": "brand_better",
      "firstTooHighAt": "2026-11-19T12:10:00.000Z",
      "sameCheck": null,
      "checkedAt": "2026-11-21T05:42:00.000Z"
    }
  ]
}
curl "https://api.trawl.me/api/shops/matches?sale=northfold-winter&group=product&include=pages&perPage=200" \
  -H "Authorization: Bearer <YOUR_API_KEY>"
Response
{
  "productId": "8841203",
  "confidence": "medium",
  "brandCheaper": { "gapEur": 9, "gapPct": 13, "seenAt": "2026-11-18T04:10:00.000Z" },
  "variants": [
    { "id": "4410", "variantTitle": "M", "sku": "NF-CREW-M", "barcode": "3700000000013", "confidence": "high" },
    { "id": "4411", "variantTitle": "L", "sku": "NF-CREW-L-2", "barcode": null, "confidence": "medium" }
  ],
  "pages": { "brand": null },
  "catalog": { "…": "…" },
  "brand": { "…": "…" }
}
curl "https://api.trawl.me/api/shops/fixes?since=2026-11-21T00:00:00.000Z" \
  -H "Authorization: Bearer <YOUR_API_KEY>"
Response
{
  "type": "success",
  "message": "shop fixes",
  "data": [
    {
      "productId": "8841203",
      "handle": "merino-crew-sweater",
      "url": "https://your-shop.example/products/merino-crew-sweater",
      "title": "Merino crew sweater",
      "vendor": "Northfold",
      "brandUrl": "https://northfold.example/crew",
      "at": "2026-11-21T09:12:00.000Z",
      "confidence": "medium",
      "variants": [
        { "variantId": "4410", "sku": "NF-CREW-M", "barcode": "3700000000013", "confidence": "high" },
        { "variantId": "4411", "sku": "NF-CREW-L-2", "barcode": null, "confidence": "medium" }
      ],
      "changes": [
        { "kind": "missing_info", "section": "Care", "line": "Hand wash cold, dry flat.", "source": "Hand wash cold. Dry flat.", "current": null, "why": "Care is only on the brand page", "priority": "high" },
        { "kind": "conflict", "section": "Composition", "line": "Composition: 100% merino wool.", "source": "100% merino wool", "current": "80% wool, 20% polyamide", "why": "The two pages give another composition", "priority": "high" },
        { "kind": "missing_info", "section": "Description", "line": "Ribbed collar and cuffs.", "source": "Ribbed collar and cuffs", "current": null, "why": "A detail only the brand gives", "priority": "medium" },
        { "kind": "missing_photo", "url": "https://northfold.example/crew-back.jpg", "priority": "low" }
      ]
    }
  ]
}
curl "https://api.trawl.me/api/shops/matches/6b016da5d4c1b956208bcc84" \
  -H "Authorization: Bearer <YOUR_API_KEY>"
Response
{
  "type": "success",
  "message": "shop match",
  "data": {
    "id": "6b016da5d4c1b956208bcc84", "productId": "8841203", "status": "too_high", "listing": "brand_better", "…": "…",
    "pages": { "catalog": { "readable": true, "…": "…" }, "brand": { "readable": true, "…": "…" } },
    "listingPoints": { "sections": 1, "photos": 2, "resolution": 1, "facts": 1, "fixes": 3, "keyFacts": 2, "total": 8 },
    "fixes": { "items": [ "…" ], "photos": [ "https://northfold.example/crew-back.jpg" ] },
    "brandHistory": { "since": "2026-11-06T04:10:00.000Z", "full": false, "lowest": { "price": 120, "at": "2026-11-06T04:10:00.000Z" }, "change": null }
  }
}

Know when a check is done: shops.check.done

Instead of reading summary until checkedAt moves, subscribe a webhook to shops.check.done. It is sent each time a check of your catalog finishes, after the matches are stored: the morning check, the check again after a brand refresh or a new brand, and the check at 13:00 or 19:00 when a sale listed as coming that morning opened later in the day. Most days bring more than one. Only organization-wide webhooks (scrapIds: []) receive it: the API refuses a webhook that sets both this event and scrapIds (422). Webhooks need a Growth or Pro plan; they are included with Shops.

The body is a summary; read the lists from the links. A client with several catalogs gets one event per catalog check; each counts that catalog's variants only. The counts are a snapshot taken when the event is sent. The matches and the fix lists keep changing after it, and no event announces that: fix lists land during the next minutes, and again hours later when the day's product page reads end. links.fixes fills up as they land, so read GET /api/shops/fixes?since=<your last read> rather than relying only on the date of the latest event.

Field Type Description
organizationId string Your organization.
checkedAt ISO-8601 string When the check ran: summary.checkedAt when the event is sent. A later read of the product pages can move summary.checkedAt again, with no event.
products integer Catalog products read.
variants.checked integer Variants on sale the check looked at.
variants.matched integer Variants priced against the brand (ok or too_high).
variants.tooHigh integer Variants priced above the brand.
variants.brandBetter integer Variants whose brand page says more than yours.
variants.unmatched integer checked - matched.
links.matches URL The current matches (GET /api/shops/matches), this check's and any page read since.
links.fixes URL The fix lists made since this check, later ones included (GET /api/shops/fixes).

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 and the retry policy there.

Next step → Shops reference

JSON
{
  "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"
  }
}