File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -289,3 +289,59 @@ site | optional site ID, or a list of site IDs
289289start | optional start date and time, format ` YYY-MM-DDTHH ` or ` YYY-MM-DD `
290290end | 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+ ```
You can’t perform that action at this time.
0 commit comments