Analytics API Docs
Technical Developer Documentation
For API route specifications please refer to our technical API documentation. ⚙️
General Details
Rate Limit
This API limits the number of requests to 1 request per second but allows a temporary burst rate of up to 30 requests per second to be processed immediately without delay. If the rate limit is exceeded, you will receive a 502 (Bad Gateway) or 504 (Gateway Timeout) HTTP error code from Nginx.
API Categories
Usage Metrics
These routes provide a detailed overview of your organisation's traffic volume in a specified time frame.
H5Live Metrics
H5Live metrics routes offer a wide spectrum of information about everything connected to the H5Live player.
Webcaster Metrics
To get more information about the nanoStream Webcaster usage in practice and it's benefits regarding additional meta data for ingest metrics, consider taking a look at these routes.
Viewer Metrics
Viewer metrics let you analyze the experience of your audiences.
Monitoring
Being able to monitor your live streams is a great idea to observe live performances and be always up-to-date about your streaming .
Alerting
The alerting routes provide an overview of either your current and historical alerts, recommended actions and their potential causes. For more details about Alerting, please refer to our Stream Health Monitoring Guide.
Successful Playback Start Ratio
This ratio determines the relation between all occuring playback initializations that DO NOT terminate with an error within the first 30 seconds after the playback starts and the total number of playback initializations. Terminations after pausing or subsequently restarting the playback are not taken into account.
- SPSR = "Successful Playback Start Ratio"
- PSE = "Playback Start Error"
How To Use
General Details
The services of nanoStream Analytics determine the SPSR and PSE based on the player metrics data for every minute with a 5 minute delay to the current minute. Either the calculated ratios and errors are based on your organisation, stream, tag or country of choice and offer different breakdown terms:
- Stream & Country (depends on the route)
- Browser
- Browser Version
- Referrer
- OS
- OS Version
- Player Version
- City
- IP
- Initial ABR Profile
- Media Playback API
- Fast Start
API Details
Basically the API routes are divided in 2 groups:
SPSR returns 3 metric values:
- Total count of errors
- Total count of playback starts
- Proportion in percent of playback starts to sum of playback starts from all buckets
PSE returns a break down of:
- The found error codes & error messages (usually error code and message is 1:1 linked) occurred at playback start (refers to total count of errors of the SPSR metric)
Example Use Case
Problem:A high number of errors can be observed since yesterday morning.
The assumption is made that this was caused by the h5live player version upgrade.
Problem is particularly present in brazil and needs validation whether this affects a large number of clients.
The SPSR & PSE API routes can possibly reveal more insights about this incident.
- Get an overview of the SPSR with a timeseries with selected time interval 'hour':
/api/v2/playback/start/success/ratio/timeseries?from=2024-04-09T00%3A00&to=2024-04-11T00%3A00&interval=hour
- The response shows a slight SPSR drop for 2 consecutive hours
- Take this time range and check if a certain country is responsible for the drop:
/api/v2/playback/start/success/ratio/world?from=2024-04-10T19%3A00&to=2024-04-10T21%3A00
- Found some countries with quite low SPSR but for the most, the playback start count / proportion is not quite high, compared to the playback start count of all countries, so they affect the average SPSR not significantly
- To get a better view of the data repeat the request with the added URL parameter
&format=csv
- The generated .csv file can be used in Excel to obtain a compact table which offers the option of quick sorting of the countries (for example for playback starts)
- In this case Brazil shows an inconspicuous SPSR, means the customer assertion can't be confirmed, maybe they refer rather to errors after the 30 seconds after playback start, which is not considered in the SPSR metrics
- To get an idea why the SPSR is low for the selected time range, breakdown the data for a country with both qualities low SPSR and a fairly high count of playback starts / proportion: as an example Armenia would fulfill both criteria
- Get the IP breakdown of the error codes for Armenia:
/api/v2/playback/start/errors/countries/ip?from=2024-04-10T19%3A00&to=2024-04-10T21%3A00&countries=AM
- The response exhibits that almost all errors were generated by one IP, which means it is not a general problem
Filtering
The filtering section lets you discover your available filter options to refine your requests, so you can get the information that is needed.