Get play events for video
GET {{baseUrl}}/analytics/videos/plays?from=<date>&to=<date>&dimension=operatingSystem&filter=<string>¤tPage=1&pageSize=25
Retrieve filtered analytics about the number of plays for your videos in a project.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
from | string | (Required) Use this query parameter to set the start date for the time period that you want analytics for. |
- The API returns analytics data including the day you set in
from. - The date you set must be within the last 30 days.
- The value you provide must follow the
YYYY-MM-DDformat. | |to| string | | Use this optional query parameter to set the end date for the time period that you want analytics for. - If you do not specify a
todate, the API returns analytics data starting from thefromdate up until today, and excluding today. - The date you set must be within the last 30 days.
- The value you provide must follow the
YYYY-MM-DDformat. | |dimension| string | | (Required) Use this query parameter to define the dimension that you want analytics for. videoId: Returns analytics based on the public video identifiers.emittedAt: Returns analytics based on the times of the play events. The API returns data in specific interval groups. When the date period you set infromandtois less than or equals to 2 days, the response for this dimension is grouped in hourly intervals. Otherwise, it is grouped in daily intervals.country: Returns analytics based on the viewers' country. The list of supported country names are based on the GeoNames public database.deviceType: Returns analytics based on the type of device used by the viewers during the play event.operatingSystem: Returns analytics based on the operating system used by the viewers during the play event.browser: Returns analytics based on the browser used by the viewers during the play event. | |filter| string | | Use this query parameter to filter your results to a specific video in a project that you want analytics for. You must use thevideoId:prefix when specifying a video ID. | |currentPage| number | | Choose the number of search results to return per page. Minimum value: 1 | |pageSize| number | | Results per page. Allowed values 1-100, default is 25. |
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"data":[{"value":"\u003cstring\u003e","plays":"\u003cinteger\u003e"},{"value":"\u003cstring\u003e","plays":"\u003cinteger\u003e"}],"pagination":{"links":[{"rel":"\u003cstring\u003e","uri":"\u003curi\u003e"},{"rel":"\u003cstring\u003e","uri":"\u003curi\u003e"}],"itemsTotal":"\u003cinteger\u003e","pagesTotal":"\u003cinteger\u003e","pageSize":"\u003cinteger\u003e","currentPage":"\u003cinteger\u003e","currentPageItems":"\u003cinteger\u003e"}}