Start free

REST API

REST API basics

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.

Base address

Base
https://api.ecomscout.com

Every 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.

Keys

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:

Headers
Authorization: Bearer <API_KEY>
X-Api-Key: <API_KEY>
  • Never put the key in the address of a request.
  • Call the API from your server, not from a browser or an app a user can open.
  • A key uses the credits of its plan, shared with the app.
  • Tracked stores (Signals) and saved audiences belong to the owner of the key.

Responses and paging

A single record comes back under data. A list comes back as rows under data with a page block:

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

Errors

Every error has the same shape. Branch on the code, show the message.

JSON
{
  "error": {
    "code": "not_found",
    "message": "...",
    "details": null
  }
}
Error codes of the EcomScout API
StatusCodeWhat it means
400bad_requestA parameter is missing or has a value the endpoint does not take. The message names it.
401unauthorizedNo key, or a key that does not exist or was revoked.
403forbiddenThe key may not read this, for example an export cursor made by another key.
404not_foundUnknown store, product, app or address. For a store, search first or request it.
409already_trackedYou already track this store. Use the Signal that exists.
422segment_too_broadAn audience filter matches too much to export. Narrow it.
429rate_limitedToo many calls in a minute, or the day's calls are used. Wait Retry-After seconds.
429usage_limit_reachedThe plan's credits for contacts or exports are used up.
429signal_limit_reachedEvery tracked-store slot of the plan is in use.
429verify_queue_fullToo many contact checks are running. Nothing was charged, retry later.
503query_timeoutThe question was too wide to answer in time. Add a filter or lower the limit.
502upstream_errorA service behind the API did not answer. Retry once.
500internalSomething failed on our side. Retry once, then stop.

Limits and credits

  • There is a limit per minute. Every answer carries X-RateLimit-* headers. On a 429, wait the seconds in Retry-After and try again.
  • Only answers with a 2xx status count toward your plan. A 4xx or a 5xx costs nothing.
  • Searches and lookups use the same daily credits as the app, so a key cannot read more than its plan can in the app.
  • The contacts of one store cost 1 credit, with every email and phone included. A store you already opened or exported is free for the rest of the billing period.
  • An audience export costs 1 credit per store, contacts included, once per billing period.

What each plan includes is on the pricing page.

Reading the data

  • A store is addressed by its domain. gruntstyle.com and a full URL both work.
  • Revenue is an estimated monthly range in US dollars with a low and a high end. Visits are monthly estimates. Label both as estimates.
  • An empty, zero or null value means nothing was observed. It does not mean the answer is zero.
  • For a tracked store, {id} takes the id of the Signal or the store domain.
  • Timestamps are ISO 8601 in UTC. Month filters are written as YYYY-MM.

Resources

Open endpoints

These answer without a key and do not count toward any limit.

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.

Example request
curl \
  "https://api.ecomscout.com/v1/health"

Examples

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.

Example request
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.