EpisodeStatistics
Viewership statistics for an episode
Example Request
curl https://api.planningcenteronline.com/publishing/v2/channels/{channel_id}/statistics
View in API Explorer →
Example Object
{
"type": "EpisodeStatistics",
"id": "1",
"attributes": {
"library_watch_count": true,
"live_watch_count": true,
"published_live_at": "2000-01-01T12:00:00Z",
"published_to_library_at": "2000-01-01T12:00:00Z",
"times": [],
"title": "string"
},
"relationships": {}
}
Attributes
| Name |
Type |
Description |
id |
primary_key |
|
library_watch_count |
boolean |
|
live_watch_count |
boolean |
|
published_live_at |
date_time |
|
published_to_library_at |
date_time |
|
times |
array |
`watch_count` per EpisodeTime |
title |
string |
|
Pagination
| Name |
Parameter |
Type |
Description |
| per_page |
per_page |
integer |
how many records to return per page (min=1, max=100, default=25) |
| offset |
offset |
integer |
get results from given offset |
Endpoints
Listing
| HTTP Method |
Endpoint |
| GET |
/publishing/v2/channels/{channel_id}/statistics |
Reading
| HTTP Method |
Endpoint |
| GET |
/publishing/v2/channels/{channel_id}/statistics/{id} |
Belongs To
| HTTP Method |
Endpoint |
Association |
Details |
Filter By |
| GET |
https://api.planningcenteronline.com/publishing/v2/channels/{channel_id}/statistics |
Channel
|
|
|