v1

latestOpenAPI 3.0.12026-07-2210997354.2 KB
Analytics

Content analytics

Retrieve analytics for some specific content.

get/projects/{project_id}/content/{id}/analytics

Query parameters

aggregation'all' | 'hour' | 'day' | 'week' | 'month' | 'year'
      The way to aggregate the analytics. Possible values are all (aggregate all data together),
      year (aggregate data on a yearly basis), month (aggregate data on a yearly basis),
      week (aggregate data on a yearly basis), day (aggregate data on a yearly basis), or hour
      (aggregate data on an hourly basis, limited to a time_range 7 days or less).
time_range[start]string

The start date of the aggregation period. The value of this property should be a string in the format yyyy-mm-dd according to ISO 8601.

time_range[end]string

The end date of the aggregation period. The value of this property should be a string in the format yyyy-mm-dd according to ISO 8601. If this is set to today, the current day is still in progress and therefore only partial analytics data is returned until the day ends.

metrics[]string[]

The metrics that you want to fetch data for

media_variants[]string[]

The media variants to fetch data for

media_formats[]string[]

The media formats to fetch data for

access_tiers[]string[]

The access tiers to fetch data for

Response

OK

startstring date-time

The start date of the aggregation period (ISO 8601).