Analytics API (ENG)

Analytics API (ENG)

INTRODUCTION

This API stores video access/usage statistics for the linear channels and vod items.

API PATH

/api/analytics

API METHODS

ADDING NEW RECORD

Adds a new analytics record of either on-demand video usage or linear channel viewing statistics

REQUEST

Parameters:

Name
Value
Requirement
Info
action
addVideoAccess
Mandatory
Identifies a request type
companyId
number
Mandatory
Identifies Icareus Suite company
groupId
number
Mandatory
Identifies Icareus Suite group
itemType
number
Mandatory
Specifies video item type. The type ids can be configured in Icareus Suite properties. Default values: 1 - VOD, 2 - linear channel
itemId
number
Mandatory
It could be either assetId or linear channelId depending on the item type
deviceUdid
sting
Mandatory
A unique device identifier to report statistics. The device should be registered in the system
presetId
number
Optional
A video preset to report statistics
startTime
number
Mandatory
UTC timestamp

It is possible to use organizationId instead of companyId and groupId.

organizationId
number
Optional
Identifies Icareus Suite organization

RESPONSE

JSON response parameters

Name
Info
status
request status code ("ok", "error")
message
request status message
videoAccessId
report access id that should be stored to update statistics data

Example:
http://127.0.0.1/api/analytics?action=addVideoAccess&companyId=10154&groupId=10180&itemType=1&deviceUdid=1&presetId=1&temId=1&startTime=1408454880000

Response:

{"message":"","status":"ok","videoAccessId":371745}

UPDATING RECORD

The response from addVideoAccess contains videoAccessId which should be used to update video duration.

REQUEST

Name
Value
Requirement
Info
action
updateVideoAccess
Mandatory
Identifies a request type
videoAccessId
number
Mandatory
access id parameter to update statistics (it should be obtained from addVideoAccess API call)
duration
number
Mandatory
access duration (seconds)

Example:
http://127.0.0.1/api/analytics?action=updateVideoAccess&videoAccessId=118313&duration=30

RESPONSE

{"message":"Duration updated","status":"ok"}




    • Related Articles

    • Video-On-Demand Analytics

      Introduction In contrast to the analytics of live streams and events, real-time is not as important in the analytics of streaming or on-demand videos. It can be used in OVP, OTT and Event uses cases, but also with HbbTV and Smart TV environments when ...
    • OEMBED API (ENG)

      INTRODUCTION This API is used to query for oEmbed objects for video page URL(s) on Icareus Suite sites. Note Suite oEmbed API only supports JSON responses for now API PATH /api/oembed API GET OEMBED OBJECT REQUEST /api/oembed Parameters: Name Value ...
    • Devices API (ENG)

      INTRODUCTION Devices API is used to register devices to the server and get device specific information/configurations from the server. API PATH /api/devices It is recommended to use POST request. Latest version: 02 API METHODS REGISTER A DEVICE ...
    • Archive API (ENG)

      INTRODUCTION This API is used to manage the content within the Archive, actions like add asset, edit asset and delete asset. All calls must be made by supplying the unique token for your organization. API PATH /api/archive API CALLS ADD ASSET V.2 ...
    • Account Management API (ENG)

      INTRODUCTION The API is used to manage Icareus Suite users and organisations. USE CASES Adding sub organization API Calls flow to add sub organization: Create an organization Add User Assign User Assign User role API PATH /delegate/account API ...