tv4-popularity.a2d-stage.tv Open in urlscan Pro
99.80.41.212  Public Scan

Submitted URL: http://tv4-popularity.a2d-stage.tv/
Effective URL: https://tv4-popularity.a2d-stage.tv/docs/
Submission: On December 18 via api from US — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

POPULARITY

POPULARITY SERVICE FOR TV4.

 * Popularity


POPULARITY

Endpoints used by backends to fetch popularity for videos.


CLIENT HEADER

All endpoints require a Client header with the name of the client using this
service.

GET /popularity

Returns the popularities for the given query.

 * Parameters

 * Name Description Required Type Example site
   
   Select which site to get search popularities for, valid options are:
   (tv4play.se)
   
   Required string tv4play.se ids
   
   A comma-separated list of video ids
   
   Required string 12345,23456

 * Response 200 SHOW
 * < Content-Type: application/json; charset=utf-8
   
   
   {
   "12345": {
   "a": 3,
   "b": 7
   },
   "23456": {
   "a": 7,
   "b": 3
   }
   }
   

 * Response 400 SHOW
 * < Content-Type: text/plain; charset=utf-8
   
   
   {
   "errorCode": 4123,
   "errorMessage": "unknown error caused bad request"
   }
   

 * Response 500 SHOW
 * < Content-Type: text/plain; charset=utf-8
   
   
   {
   "errorCode": 5123,
   "errorMessage": "something went wrong but we don't want you to know why"
   }