11Stats API · Pro and up
Stats API: your numbers, from code
A read-only JSON API over the same numbers the dashboard shows: totals, a visitor series, top pages and any breakdown, with the same filters. Create a key on your account page and send it as a bearer token. Up to 120 requests a minute per key.
terminal
Keys belong to the account and reach every site on it. Only a hash of each key is stored, so a lost key cannot be shown again — revoke it and make another. A key stops working the moment the account leaves a plan that includes the API, and works again if it returns.
GET https://metryo.io/api/v1/stats…
| /sites | Every site on the account: site_id, name, domain, collecting |
|---|---|
| /overview | Visitors, pageviews, sessions, bounce rate, session length, new-visitor share — and the same for the period before |
| /timeseries | Visitors per hour (ranges up to two days) or per day |
| /pages | Top pages with visitors, pageviews and average time on page |
| /breakdown | Visitors by one dimension, set with dimension= |
Query parameters
| site_id | Required except on /sites |
|---|---|
| range | 24h, 7d, 30d (default) or 90d |
| from, to | A custom range as YYYY-MM-DD, with range=custom |
| f | Filters exactly as in the dashboard URL, repeatable: f=country:Germany |
| dimension | refType, refDomain, utmSource, utmMedium, utmCampaign, country, region, city, device, browser, os, screen, deviceModel, connection, isp, netSpeed, language |
| limit | Rows for pages and breakdown, 1–100 (default 10) |