Data format

Attribute

Attributes in json are in lowercase using underscore between words

Data Events
media id play pause ended recommendation_load recommendation_display page_view
type audio / video / page
playback_position <float>      
recommendation id <id>
items List<Item>
items_index <int>      

"recommendation_load" contains all items returned by recsys whereas "recommendation_display" contains only items that were displayed

Item format

Attribute name Attribute type
id
type audio / video / page

Sample:

{  
   "data":{  
      "event":"play",
      "media":{  
         "id":"1234567890abcef",
         "type":"video",
         "playback_position":1234
      },
      "recommendation":{  
         "id":"1234567890abcef",
         "items":[  
            {  
               "id":"0987654321abcdef",
               "type":"video"
            },
            {  
               "id":"0987654321aaaaaa",
               "type":"video"
            }
         ],
         "items_index":3
      }
   }
}