Health
GET/v1/healthno key needed
Whether the API can serve data. Returns authRequired so agents know if they need a key.
Use it to: Ping before a batch job. If ok is false, skip data calls.
curl \
"https://api.ecomscout.com/v1/health"REST API
The API is plain HTTPS and JSON. One base address, one key in a header, the same answer shape on every list. This page covers what every endpoint shares.
https://api.ecomscout.comEvery path starts with /v1. The current version is 0.7.0. New fields can appear in answers at any time, so read the fields you need and ignore the rest. A machine-readable description is at /v1/openapi.json.
Create a key on the Integrations page in the app. Keys come with paid plans, from Starter, and look like esc_.... Send the key in one of two headers:
Authorization: Bearer <API_KEY>
X-Api-Key: <API_KEY>A single record comes back under data. A list comes back as rows under data with a page block:
{
"data": [ ... ],
"page": { "limit": 20, "offset": 0, "count": 20, "hasMore": true, "total": 1840 }
}limit is the number of rows in one answer. Most lists take up to 100; each endpoint lists its own default and ceiling.offset is the number of rows to skip, up to 10,000. Raise it by the limit while page.hasMore is true.Past 10,000 rows, narrow the filters or use an audience export. Exports page with a cursor instead: take page.nextCursor (also sent as the x-next-cursor header) and pass it to the next call. A cursor works for 24 hours, with the same filters and the same key.
Some calls answer 202 with data.status set to preparing. Nothing failed and nothing was charged: repeat the same call a few seconds later.
Every error has the same shape. Branch on the code, show the message.
{
"error": {
"code": "not_found",
"message": "...",
"details": null
}
}| Status | Code | What it means |
|---|---|---|
| 400 | bad_request | A parameter is missing or has a value the endpoint does not take. The message names it. |
| 401 | unauthorized | No key, or a key that does not exist or was revoked. |
| 403 | forbidden | The key may not read this, for example an export cursor made by another key. |
| 404 | not_found | Unknown store, product, app or address. For a store, search first or request it. |
| 409 | already_tracked | You already track this store. Use the Signal that exists. |
| 422 | segment_too_broad | An audience filter matches too much to export. Narrow it. |
| 429 | rate_limited | Too many calls in a minute, or the day's calls are used. Wait Retry-After seconds. |
| 429 | usage_limit_reached | The plan's credits for contacts or exports are used up. |
| 429 | signal_limit_reached | Every tracked-store slot of the plan is in use. |
| 429 | verify_queue_full | Too many contact checks are running. Nothing was charged, retry later. |
| 503 | query_timeout | The question was too wide to answer in time. Add a filter or lower the limit. |
| 502 | upstream_error | A service behind the API did not answer. Retry once. |
| 500 | internal | Something failed on our side. Retry once, then stop. |
X-RateLimit-* headers. On a 429, wait the seconds in Retry-After and try again.What each plan includes is on the pricing page.
gruntstyle.com and a full URL both work.low and a high end. Visits are monthly estimates. Label both as estimates.{id} takes the id of the Signal or the store domain.These answer without a key and do not count toward any limit.
GET/v1/healthno key needed
Whether the API can serve data. Returns authRequired so agents know if they need a key.
Use it to: Ping before a batch job. If ok is false, skip data calls.
curl \
"https://api.ecomscout.com/v1/health"GET/v1/examplesno key needed
Machine recipes: persona, when to use, and the exact call sequence (GET/POST).
Use it to: Agents: read this after /v1/llms.txt, then copy a recipe instead of inventing SQL.
curl \
"https://api.ecomscout.com/v1/examples"Try it on real data. The free plan has 10 credits a day and works with the MCP connector. API keys come with paid plans.