Get started
Quickstart
Five steps from nothing to a list of stores in your terminal. It takes about five minutes and one API key.
1. Create a key
API keys come with paid plans, from Starter. Create an account, open the Integrations page in the app and create a key. It looks like esc_... and is shown once, so store it right away.
export ECOMSCOUT_API_KEY="esc_your_key"Keep the key on your server. Send it in a header, never in the address of a request and never from a browser.
2. Make the first call
Search for a store by brand name or website:
curl -H "Authorization: Bearer $ECOMSCOUT_API_KEY" \
"https://api.ecomscout.com/v1/stores?q=grunt%20style&limit=5"No key yet? These addresses answer without one: /v1/health, /v1/examples and /v1/openapi.json.
3. Read the answer
Every list comes back in the same shape: the rows in data and the paging in page.
{
"data": [
{
"domain": "gruntstyle.com",
"name": "Grunt Style",
"country": "US",
"vertical": "Apparel",
"monthlyVisits": 1100000,
"monthlyRevenueUsd": {
"low": 370000,
"high": 802000
},
"ecomScoutGrade": "S",
"productCount": 927
}
],
"page": {
"limit": 5,
"offset": 0,
"hasMore": true
}
}The domain is the id of a store. Every other store call takes it, as a bare host name or as a full URL.
4. Open a store
curl -H "Authorization: Bearer $ECOMSCOUT_API_KEY" \
"https://api.ecomscout.com/v1/stores/gruntstyle.com"The profile holds monthly visits, an estimated monthly revenue range, the catalog size, installed apps and company details. Revenue is an estimate with a low and a high end. An empty or missing value means nothing was observed, not zero.
5. Call it from code
The same search with filters, in Node and in Python:
const res = await fetch(
"https://api.ecomscout.com/v1/stores?vertical=Skincare&country=US&minVisits=50000&limit=20",
{ headers: { Authorization: `Bearer ${process.env.ECOMSCOUT_API_KEY}` } },
);
if (!res.ok) {
const { error } = await res.json();
throw new Error(`${error.code}: ${error.message}`);
}
const { data, page } = await res.json();
console.log(page.total, "stores match");
for (const store of data) console.log(store.domain);import os, requests
res = requests.get(
"https://api.ecomscout.com/v1/stores",
params={"vertical": "Skincare", "country": "US", "minVisits": 50000, "limit": 20},
headers={"Authorization": f"Bearer {os.environ['ECOMSCOUT_API_KEY']}"},
timeout=30,
)
res.raise_for_status()
body = res.json()
print(body["page"]["total"], "stores match")
for store in body["data"]:
print(store["domain"])To read more than one page, raise offset by limit while page.hasMore is true. Errors, limits and credits are on the basics page.
Where to go next
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.