Skip to content

Commit a572557

Browse files
committed
Started with GET /views endpoint docs.
1 parent f90be09 commit a572557

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

source/includes/_analytics.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,3 +289,59 @@ site | optional site ID, or a list of site IDs
289289
start | optional start date and time, format `YYY-MM-DDTHH` or `YYY-MM-DD`
290290
end | optional end date and time, format `YYY-MM-DDTHH` or `YYY-MM-DD`
291291

292+
293+
## Popular videos
294+
295+
This endpoint returns videos having the largest amount of views.
296+
297+
> Get data for today, with a comparison to yesterday.
298+
299+
```shell
300+
curl "https://api.flowplayer.com/views"
301+
```
302+
303+
> Returns the IDs and view counts of the 10 most popular videos
304+
305+
```json
306+
[
307+
{
308+
"id": "360b8f49-3c98-4020-ac72-83f958405239",
309+
"views": 252863
310+
},
311+
{
312+
"id": "3de6843f-2a65-46bd-a899-753d813f22c7",
313+
"views": 227743
314+
},
315+
{
316+
"id": "9242781d-149e-468c-bc80-b383bc6fd73d",
317+
"views": 210430
318+
},
319+
{
320+
"id": "8ed589c1-9b88-4040-81f7-c063fcf139a2",
321+
"views": 198156
322+
},
323+
{
324+
"id": "666f6532-8b6e-4ccf-84a0-0916ab827a24",
325+
"views": 192380
326+
},
327+
{
328+
"id": "075d123a-8e58-4b05-b505-5f5ca8244a5d",
329+
"views": 191079
330+
},
331+
{
332+
"id": "0548e44c-253a-4bb0-bf89-4f3d83b95dde",
333+
"views": 189647
334+
},
335+
{
336+
"id": "6ebeec02-1f6c-45ef-a50e-eeaae4370da5",
337+
"views": 184121
338+
},
339+
{
340+
"id": "89a371e5-da85-4160-a913-b82b9a0e6b4c",
341+
"views": 181421
342+
},
343+
{
344+
"id": "bba4d3d9-ea9c-452f-83c3-e577c26a1784",
345+
"views": 180103
346+
}
347+
```

0 commit comments

Comments
 (0)