Rest API
Get audience sessions per day
GET /api/v1/insights/audiences/per-day
How many sessions one audience matched per day on one domain, split by new and returning visitors. Both audienceId and domainName are required - there is no unfiltered variant.
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.
The audience to count sessions for.
The domain to count sessions for.
Responses
Section titled “ Responses ”One entry per day in the range.
object
object
object
Name of the audience the sessions matched.
object
Name of the audience the sessions matched.
Unauthorized - invalid API key.
StartTime or endTime was missing.