Get your free beta license ↗
API operation · domains group
GET

/domains/{name}/stats

First published 3 Oct 20260.1.0Unchanged since publication

Get a domain's traffic statistics for a period

Who may call it
AdministratorResellerCustomer
Token scope, any of
domainsreadall
Answers200 OK

Human traffic figures appear at the top level and robot traffic figures appear under robots. When human traffic statistics are available but separate robot statistics are absent, robots.available is 0. The response includes apart_since when UrbeStack has a recorded start date for counting robots separately.

The months array lists months with recorded data, newest first. Each entry gives the first and last recorded days, the number of recorded days, and totals for visitors, requests and bytes for people and robots. For a monthly period, days gives that month's daily figures. When the preceding month has data, previous gives its month and daily figures.

The enabled field is 1 when statistics collection is enabled for both the server and the domain. When statistics are available, updated gives the time of the last statistics run and utc_offset gives the server's UTC offset for interpreting hourly visit times. A request for all-time statistics returns available set to 0 if no statistics are available.

An invalid period returns 400. An unknown domain or a month for which no statistics are kept returns 404. Access to an existing domain is limited to administrators, the domain owner and the owner's reseller. Other callers receive 403.

Parameters

namepath ·DomainNameRequired
periodquery ·string, matching ^(all|latest|[0-9]{4}-(0[1-9]|1[0-2]))$
Statistics period as all (the default) for data since collection began, YYYY-MM for a calendar month, or latest for the newest available month with all as the fallback. The response's period field gives the period used.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/domains/example.com/stats?period=text" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "apart_since": "text",
  "available": true,
  "days": [
    {}
  ],
  "domain": "example.com",
  "enabled": true,
  "general": {},
  "months": [
    {
      "days": 1,
      "first": "text",
      "last": "text",
      "month": "text",
      "people": {},
      "robots": {}
    }
  ],
  "period": "text",
  "previous": {},
  "robots": {},
  "updated": "text",
  "utc_offset": "text"
}

Errors

8 errors, each a status and a sentence
400A period is all, latest, or a month as YYYY-MM
400Domain name required
400Domain name too long
400Invalid domain name
401Authentication required
403Insufficient privileges
404Domain '<name>' not found
404No statistics are kept for <month>
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/get-domains-name-stats/