Rest API
Get pageviews per day
GET /api/v1/insights/pageviews/per-day
The same pageview split as the totals endpoint, but one entry per day in the range. Days with no traffic are returned with zeroes rather than omitted.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Your API key from account settings.
The email address of your user.
The ID of your account. You can find this in the account settings.
The ID of the workspace you want to use.
Query Parameters
Section titled “Query Parameters ”First day of the range, inclusive, as YYYY-MM-DD.
Last day of the range, inclusive, as YYYY-MM-DD.
Recompute instead of reading the query cache. Slow - only worth it when you know the cache is stale.
Responses
Section titled “ Responses ”One entry per day in the range.
object
Pageview counts split by new versus returning visitors. day is set only in the per-day variant.
object
Whether the cached numbers are ready.
Unix timestamp (ms) when the numbers were computed.
object
object
Unauthorized - invalid API key.
StartTime or endTime was missing.