get
https://data.pandavideo.com/general/
Retrieve the plays rate metrics for a specific variant video of an A/B test.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
GET /general/{video_id}
{video_id}Returns per‑video view / play counts within a date range. Used by the A/B Testing UI to render the Plays Rate chart for each variant in a comparison — but the endpoint itself is generic and works for any video.
Different host:data.pandavideo.comAnalytics endpoints (this one and A/B Test Retention) live on
https://data.pandavideo.com, not onapi-v2.pandavideo.com.br. Keep this distinct when configuring environments.
AuthorizationRequires a valid API Key in the
Authorizationheader. Send the key directly — noBearerprefix.
HTTP Method & Path
GET /general/{video_id}?type=video&start_date=<YYYY-MM-DD>&end_date=<YYYY-MM-DD>
Base URL: https://data.pandavideo.com
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
video_id | string (uuid) | yes | Video to fetch analytics for. |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
type | string | yes | Must be video for video‑scoped metrics. |
start_date | string (YYYY‑MM‑DD) | yes | Inclusive start. |
end_date | string (YYYY‑MM‑DD) | yes | Inclusive end. |
Response
Success Response (200)
{
"total": {
"view": 1240,
"unique_view": 980,
"unique_play": 720,
"play": 1310
},
"views_data": {
"2025-01-15": { "play": 100, "unique_view": 80, "view": 110 },
"2025-01-16": { "play": 130, "unique_view": 105, "view": 140 }
}
}Response Schema
| Field | Type | Description |
|---|---|---|
total.view | integer | Total views across the period. |
total.unique_view | integer | Distinct viewers. |
total.unique_play | integer | Distinct viewers that pressed Play. |
total.play | integer | Total plays. |
views_data | object | Map of "YYYY-MM-DD" → { play, unique_view, view }. Missing days are simply absent — treat as zeros. |
Plays Rate computation. The dashboard derives the variant's plays‑rate asunique_play / unique_viewover the same window. Apply the same ratio perviews_dataentry for a daily series.
Error Responses
- 400 — invalid
start_date/end_date/type. - 401 — missing/invalid API Key.
- 404 — video not found.
- 500 — internal error.
Example Usage
cURL
curl --request GET \
--url 'https://data.pandavideo.com/general/f1f2f3f4-aaaa-bbbb-cccc-d1d2d3d4d5d6?type=video&start_date=2025-01-15&end_date=2025-01-22' \
--header 'Authorization: <your-api-key>'