Players AnalyticsAnalytics Data

Analytics Data

curl -X POST "https://api.5centscdn.com/v2/players/5centscdn/analytics/data" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "r": "2026-01-01 00:00:00 - 2026-01-31 23:59:59",
  "type": "play",
  "data_type": "country"
}'
[
  {
    "data": "India",
    "count": 15
  },
  {
    "data": "Chrome",
    "count": 10
  },
  {
    "data": "Windows",
    "count": 6
  },
  {
    "data": "sample-video.mp4",
    "count": 5
  }
]
POST
/players/5centscdn/analytics/data
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

Content-Typestring
Required

The media type of the request body

Options: application/json
rstring

Date range string in UTC format: "YYYY-MM-DD HH:mm:ss - YYYY-MM-DD HH:mm:ss". Defines the reporting window.

typestring

Event type to aggregate. One of: play (view started), unique (unique viewer), impression (player visible).

Options: play, unique, impression
data_typestring

Dimension to break down the data by. One of: country, browser, os, device, title.

Options: country, browser, os, device, title
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Body

application/json
rstring

Date range string in UTC format: "YYYY-MM-DD HH:mm:ss - YYYY-MM-DD HH:mm:ss". Defines the reporting window.

Example:
2026-01-01 00:00:00 - 2026-01-31 23:59:59
typestring

Event type to aggregate. One of: play (view started), unique (unique viewer), impression (player visible).

Allowed values:playuniqueimpression
data_typestring

Dimension to break down the data by. One of: country, browser, os, device, title.

Allowed values:countrybrowserosdevicetitle

Responses

datastring

Dimension value label such as a country name, browser name, OS name, device type, or title identifier.

countinteger

Number of events recorded for this dimension value within the requested date range.