Available in Classic and VPC
Get the total number of plays via the player in chart format. The data interval varies depending on the time span between the start and end points of the query.
| Time span between start time and end time | Interval |
|---|---|
| 1 day or less | 5-minute interval |
| 2 days or more | 1-day interval |
Request
This section describes the request format. The method and URI are as follows:
| Method | URI |
|---|---|
| GET | /v1/charts/playCnt |
Request headers
For information about the headers common to all Video Player Enhancement APIs, see Video Player Enhancement request headers.
Request query parameters
You can use the following query parameters with your request:
| Field | Type | Required | Description |
|---|---|---|---|
device |
String | Optional | Player playback environment
|
videoType |
String | Optional | Playback source type
|
startDate |
Date | Optional | Query start date and time
|
endDate |
Date | Optional | Query end date and time
|
Request example
The request example is as follows:
curl --location --request GET 'https://ma-dashboard-api.vpe.naverncp.com/v1/charts/playCnt?device=PC,Mobile&videoType=VOD,LIVE' \
--header 'x-api-key: {API Key}' \
--header 'x-project-id: {Project id}'
Response
This section describes the response format.
Response body
The response body includes the following data:
| Field | Type | Required | Description |
|---|---|---|---|
code |
String | - | Response code |
message |
String | - | Response message |
result |
Object | - | Response result |
result.playSuccessCnt |
Integer | - | Number of successful plays |
result.logDate |
Date | - | Date and time |
Response status codes
For information about the HTTP status codes common to all Video Player Enhancement APIs, see Common Video Player Enhancement response status codes.
Response example
The response example is as follows:
{
"code": 200,
"message": "playCnt (1d)",
"result": [
{
"playSuccessCnt": 11,
"logDate": "2025-10-10 00:00:00"
},
{
"playSuccessCnt": 5,
"logDate": "2025-10-09 00:00:00"
},
{
"playSuccessCnt": 5,
"logDate": "2025-10-08 00:00:00"
},
{
"playSuccessCnt": 26,
"logDate": "2025-10-07 00:00:00"
},
{
"playSuccessCnt": 0,
"logDate": "2025-10-06 00:00:00"
},
{
"playSuccessCnt": 0,
"logDate": "2025-10-05 00:00:00"
},
{
"playSuccessCnt": 8,
"logDate": "2025-10-04 00:00:00"
},
{
"playSuccessCnt": 20,
"logDate": "2025-10-03 00:00:00"
},
{
"playSuccessCnt": 153,
"logDate": "2025-10-02 00:00:00"
},
{
"playSuccessCnt": 49,
"logDate": "2025-10-01 00:00:00"
}
]
}