Start free

REST API

Statistics API

Defensible numbers for an article, newsletter or market report: which verticals, countries, categories or size tiers grew between two months, how many stores the figure rests on, and the stores behind it. One call per table, no per-store loop.

Overview

Numbers you can print in a market report, newsletter or article: which verticals, countries, product categories or size tiers grew between two months, how many stores each figure rests on, and the stores behind it. One call returns a whole table. You never loop over stores, and every row tells you its cohort size so the sentence can be honest: "median visits for 4,200 US skincare stores with readings in both months rose 9%". A journalist uses this for a "state of Shopify" piece. A SaaS marketing team uses it for a quarterly benchmark. An analyst uses it to check a thesis ("DACH beauty is up") before pulling names.

Endpoints of the Statistics API
EndpointWhat it returns
GET/v1/analytics/trends/coverageHow many stores have traffic history per month.
GET/v1/analytics/trendsMonth-over-month traffic growth by vertical, country, category, size tier or month.
GET/v1/analytics/trends/storesName the stores that moved.

How it works

Check coverage before you quote

Traffic history starts in April 2025 and is thin before October 2025. Call Trend coverage first: it says how many stores have readings per month for your cohort. Pick months with thousands of stores, and say "stores with traffic readings in both months", not "all Shopify stores".

Median growth, not total growth

medianGrowthPct is the median of each store's own growth and is robust to one giant merchant. totalGrowthPct is the cohort sum and moves with the biggest names. risingSharePct is the share of stores that grew at all. Quote the median with the store count; use total when the story is about market volume.

floorOn and cohort knobs

minVisits with floorOn=avg (default) keeps stores that are meaningful on average across the window. floorOn=from selects stores for being big in the first month, which makes the whole market look like it shrank (regression to the mean). cohort=edges pairs the two edge months; cohort=all keeps only stores present in every month, which gives a like-for-like monthly line with a smaller cohort.

Same cohort filters as store search

vertical, category, industry, country or region, countryCode, appSlug / includeApps / excludeApps, product filters, dropshipper flag. Compare two slices by running the call twice, for example appSlug=klaviyo against excludeApps=klaviyo.

Seasonality

January is the post-holiday peak for most retail, so January to June will look negative for almost everyone. Compare groups against each other inside the same window, or use a like-for-like window (June to June) for absolute growth.

What you get back

Group row

group label, storeCount, medianVisitsFrom, medianVisitsTo, medianGrowthPct, totalVisitsFrom, totalVisitsTo, totalGrowthPct, risingSharePct. With groupBy=month: one row per month for the cohort.

Store row

domain, name, vertical, countryCode, visitsFrom, visitsTo, delta, growthPct. Biggest move first, with page.total for the whole cohort.

Coverage row

month, storeCount, storesAboveFloor.

Worked examples

"Which Shopify verticals grew most in H1 2026?"

Trends by group with groupBy=vertical, from=2026-01, to=2026-06, sort=growth. Print medianGrowthPct next to storeCount. Then groupBy=category with vertical=Apparel for the drill-down paragraph.

Call: GET/v1/analytics/trends

"Give me five German skincare stores that gained the most traffic since March"

Stores behind a trend with countryCode=DE, vertical=Skincare, direction=up, sort=delta. Open each under Stores for the quote (category, revenue band, apps).

Call: GET/v1/analytics/trends/stores

"Do Klaviyo stores grow faster?"

Run Trends by group twice for the same window: once with appSlug=klaviyo, once with excludeApps=klaviyo. Compare medianGrowthPct per vertical and report both cohort sizes.

Call: GET/v1/analytics/trends

Endpoints

Every call below runs as written once $ECOMSCOUT_API_KEY holds your key. To try a call without code, open the API playground in the app.

Trend coverage

GET/v1/analytics/trends/coverage

Per month: storeCount (stores with a traffic reading) and storesAboveFloor (above minVisits), optionally scoped by the same cohort filters as store search. History starts 2025-04 and is thin before 2025-10.

Use it to: Call this before quoting any growth number so you can say "based on 4,200 US skincare stores with readings in both months".

Parameters of GET /v1/analytics/trends/coverage
NameTypeWhat it does
minVisitsnumberFloor for storesAboveFloor.Default: 10000Example: 10000
verticalstringExample: Skincare
countryCodestringExample: US
industrystringExample: Beauty & Personal Care
categorystringExample: Skincare Products
appSlugstringExample: klaviyo
Example request
curl -H "Authorization: Bearer $ECOMSCOUT_API_KEY" \
  "https://api.ecomscout.com/v1/analytics/trends/coverage"
Example response
JSON
{
  "data": [
    {
      "month": "2026-01",
      "storeCount": 48210,
      "storesAboveFloor": 9120
    },
    {
      "month": "2026-06",
      "storeCount": 61540,
      "storesAboveFloor": 11870
    }
  ]
}

Trends by group

GET/v1/analytics/trends

Rolls monthly visit history up by groupBy. Each row: storeCount, medianVisitsFrom/To, medianGrowthPct (median of per-store growth), totalVisitsFrom/To, totalGrowthPct, risingSharePct. groupBy=month returns a series for the cohort instead. floorOn=avg (default) avoids regression-to-the-mean bias; cohort=all keeps only stores present in every month.

Use it to: Article table: "Which Shopify verticals grew Jan to Jun 2026" in one call. Then drill with groupBy=category&vertical=Apparel, or compare appSlug=klaviyo against excludeApps=klaviyo.

Parameters of GET /v1/analytics/trends
NameTypeWhat it does
groupByrequiredstringOne of: vertical, country, industry, category, sizeTier, monthDefault: vertical
fromrequiredstringYYYY-MM, first month.Example: 2026-01
torequiredstringYYYY-MM, last month (after from).Example: 2026-06
minVisitsnumberVisits floor; see floorOn.Default: 10000Example: 10000
floorOnstringWhich month(s) the floor applies to.One of: avg, from, to, bothDefault: avg
cohortstringedges: reading in from and to. all: reading in every month.One of: edges, allDefault: edges
minStoresnumberHide groups with fewer cohort stores.Default: 20Example: 20
verticalstringExample: Skincare
countrystringNames, ISO codes or regions, comma list.Example: Europe
countryCodestringExample: US
categorystringExample: Clothing
appSlugstringSlug as in store.apps[].slug.Example: klaviyo
excludeAppsstringExample: klaviyo
isDropshipperstringOne of: true, false
sortstringOne of: stores, growth, visitsDefault: stores
limitnumberMax 200.Default: 50Example: 50
Example request
curl -H "Authorization: Bearer $ECOMSCOUT_API_KEY" \
  "https://api.ecomscout.com/v1/analytics/trends?groupBy=vertical&from=2026-01&to=2026-06&sort=growth&limit=25"
Example response
JSON
{
  "data": [
    {
      "group": "Skincare",
      "storeCount": 1180,
      "medianVisitsFrom": 24100,
      "medianVisitsTo": 26300,
      "medianGrowthPct": 9.1,
      "totalVisitsFrom": 118400000,
      "totalVisitsTo": 124900000,
      "totalGrowthPct": 5.5,
      "risingSharePct": 56.2
    },
    {
      "group": "Apparel",
      "storeCount": 4320,
      "medianVisitsFrom": 21800,
      "medianVisitsTo": 20100,
      "medianGrowthPct": -7.8,
      "totalVisitsFrom": 402000000,
      "totalVisitsTo": 388000000,
      "totalGrowthPct": -3.5,
      "risingSharePct": 41
    }
  ],
  "meta": {
    "from": "2026-01",
    "to": "2026-06",
    "groupBy": "vertical",
    "cohort": {
      "storeCount": 18240,
      "mode": "edges",
      "floorOn": "avg",
      "minVisits": 10000
    }
  }
}

Stores behind a trend

GET/v1/analytics/trends/stores

Stores in the same cohort with visits in the from and to month, delta and growthPct, biggest move first. page.total lets you walk the whole cohort.

Use it to: The editor wants three examples: "German skincare stores that gained the most traffic since March".

Parameters of GET /v1/analytics/trends/stores
NameTypeWhat it does
fromrequiredstringExample: 2026-03
torequiredstringExample: 2026-06
directionstringOne of: up, down, anyDefault: any
sortstringOne of: pct, delta, visitsDefault: pct
minVisitsnumberDefault: 10000Example: 10000
floorOnstringOne of: avg, from, to, bothDefault: avg
verticalstringExample: Skincare
countryCodestringExample: DE
categorystringExample: Skincare Products
appSlugstringExample: klaviyo
limitnumberMax 100.Default: 20Example: 20
offsetnumberExample: 0
Example request
curl -H "Authorization: Bearer $ECOMSCOUT_API_KEY" \
  "https://api.ecomscout.com/v1/analytics/trends/stores?from=2026-03&to=2026-06&direction=up&sort=delta&vertical=Skincare&countryCode=DE&limit=10"
Example response
JSON
{
  "data": [
    {
      "domain": "example-skin.de",
      "vertical": "Skincare",
      "countryCode": "DE",
      "visitsFrom": 41200,
      "visitsTo": 96800,
      "delta": 55600,
      "growthPct": 135
    }
  ],
  "page": {
    "limit": 10,
    "offset": 0,
    "count": 10,
    "total": 312
  }
}

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.