startAt/endAt) or ISO 8601 strings (startDate/endDate). Add the compare parameter to get a parallel set of numbers for the previous period or the same period last year, making it easy to calculate percentage changes in your own dashboards.
GET /api/websites/{websiteId}/stats
Request
Headers
Path Parameters
Query Parameters
Date Range
Start of the date range as an ISO 8601 date or datetime, e.g.
2024-01-01 or 2024-01-01T00:00:00Z. Use this or startAt.Time interval used to group results when computing statistics:
minute, hour, day, month, or year.Include a comparison period in the response.
prev compares against the immediately preceding period of the same length; yoy compares against the same period one year ago.Filters
Controls how multiple filters combine.
all requires every filter to match (AND logic); any requires at least one to match (OR logic). Defaults to all.Response
200 – SuccessPresent when
compare is supplied. Contains the same five metrics for the comparison period.200 Response