mercredi 11 novembre 2015

CREACAST STATS-API to get your realtime audience and daily logs

A STATS-API is proposed by Creacast to enable third parties utilities to analyse your program's audience.
Our STATS-API you can get daily logs of your programs or realtime audience

DAILY LOGS :

The generic http request format is:

http://stats.creacast.com/api/v1/logs?
k=
your_user_private_key&p=program_name&d=day_date&f=output_format

your_user_key : your private key provided by CreaCast. You can get this key on your Creacast account.
program_name : the corresponding program name, as it is displayed in your Creacast account.
day_date : the corresponding date given as « YYYY-MM-DD »
output_format : csv or json if not specified

The CSV format outputs as follow : Stream ID (as displayed in your Creacast account), date, time, client IP, duration of the listening session (seconds), bytes sent, and User-Agent.

Sessions greater than 30 seconds are recorded. Sessions lower than 30 seconds are not recorded.



REALTIME AUDIENCE :

Our STATS-API enables you to retrieve your realtime audience. It can be used in exemple with ajax to display your audience in your intranet or web site.

http://stats.creacast.com/api/v1/programs?k=your_user_private_key&pretty



Aucun commentaire: