{ "opencollection": "1.0.0", "info": { "name": "PeerTube Abuses Video Stats API", "version": "8.1.0" }, "items": [ { "info": { "name": "Video Stats", "type": "folder" }, "items": [ { "info": { "name": "Get overall stats of a video", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/videos/:id/stats/overall", "params": [ { "name": "id", "value": "", "type": "path", "description": "The object id, uuid or short uuid" }, { "name": "startDate", "value": "", "type": "query", "description": "Filter stats by start date" }, { "name": "endDate", "value": "", "type": "query", "description": "Filter stats by end date" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get overall stats of a video" }, { "info": { "name": "Get user agent stats of a video", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/videos/:id/stats/user-agent", "params": [ { "name": "id", "value": "", "type": "path", "description": "The object id, uuid or short uuid" }, { "name": "startDate", "value": "", "type": "query", "description": "Filter stats by start date" }, { "name": "endDate", "value": "", "type": "query", "description": "Filter stats by end date" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get user agent stats of a video" }, { "info": { "name": "Get retention stats of a video", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/videos/:id/stats/retention", "params": [ { "name": "id", "value": "", "type": "path", "description": "The object id, uuid or short uuid" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get retention stats of a video" }, { "info": { "name": "Get timeserie stats of a video", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/videos/:id/stats/timeseries/:metric", "params": [ { "name": "id", "value": "", "type": "path", "description": "The object id, uuid or short uuid" }, { "name": "metric", "value": "", "type": "path", "description": "The metric to get" }, { "name": "startDate", "value": "", "type": "query", "description": "Filter stats by start date" }, { "name": "endDate", "value": "", "type": "query", "description": "Filter stats by end date" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get timeserie stats of a video" } ] } ], "bundled": true }