pageviews and sessions — where each element is a {x, y} point with a date string and a count. Choose your bucket size with the unit parameter (minute, hour, day, month, or year) and optionally request a comparison series for trend overlays.
GET /api/websites/{websiteId}/pageviews
Request
Headers
Path Parameters
Query Parameters
Date Range & Grouping
Time bucket size for grouping data points. One of
minute, hour, day, month, or year. Defaults to day.Attach a comparison series to the response.
prev uses the immediately preceding period; yoy uses the same period one year ago.Filters
Response
200 – SuccessArray of
{x, y} data points representing session (visit) counts over time. Same structure as pageviews.Present when
compare is specified. Contains pageviews, sessions, startDate, and endDate for the comparison period, in the same format as the primary series.200 Response