API Overview
This page describes the steps to access SmartSight Analytics API.
MediaMelon provides REST APIs that lets you read data from the SmartSight dashboard using APIs. You can use these APIs to fetch data and process it as per your need. The SmartSight APIs are protected using OAuth2.
Prerequisites
Username - Your SmartSight username
Password - Your SmartSight password
Contact your MediaMelon representative in case you're not aware of the above mentioned prerequisites
Fetch OAuth Token
Retrieve an OAuth token for authentication.
API Request
POST
https://smartsight2.mediamelon.com/generateOAuthToken
Headers
Name | Type | Description |
---|---|---|
Content-Type* | String |
|
Request Body
Name | Type | Description |
---|---|---|
grant_type* | String | password |
username | String | <SmartSight Username> |
password | String | <SmartSight Password> |
Sample Curl Request
Request Body ( For refresh_token based grant)
Endpoint to fetch metrics
Use the OAuth access token in the request header when accessing any of the SmartSight APIs.
API Request
GET
https://smartsight2.mediamelon.com/mm-apis/qbrData/vod/{customer-id}
Path Parameters
Name | Type | Description |
---|---|---|
{customer-id}* | String | The unique identifier for the Video On Demand content |
Query Parameters
Name | Type | Description |
---|---|---|
planlevel | String | The plan level ID. (e.g., |
metrics* | String | Comma-separated list of metrics to retrieve. (e.g. playdur,bufferingratio,latency,subscriberid,errors,viewercount,subscribertag,ipaddress,timestamp,starttime,endtime) |
orderas | String | Order in which results are returned. (e.g., |
offset | String | Starting index for the returned data. (e.g., |
limit* | String | Maximum number of records to return. (e.g., |
filter | String | Filter criteria (e.g., |
period* | String | Comma-separated Start date and end date (eg: start=1696357800,end=1696361400) |
dimension* | String | The target level for data (eg: microscope) |
agg* | String | Flag for enabling or disabling aggregation (values: 1 or 2) |
aggby | String | If aggregation is enabled, please provide aggregation by (eg.: subscriberid) |
orderby | String | Field to order data by. (eg.: viewercount) |
Sample Curl Request
Last updated