Statistics methods by: Projects | Video | Live | Playlist | Session
Getting statistics by project.
Input parameters
Required parameters:
Optional parameters:
Sample query:
https://boomstream.com/api/stats?apikey=[API_KEY]&start=2019-01-01&end=2020-05-01&group=day
Sample response:
<Response> <Period>01.01.2019 - 10.05.2020</Period> <Start>01.01.2019</Start> <End>10.05.2020</End> <GroupBy>day</GroupBy> <SourceType>project</SourceType> <Page>1</Page> <PageLimit>1000</PageLimit> <PageCount>1</PageCount> <ItemCount>1</ItemCount> <ItemFormat> <date>Date</date> <time>Time</time> <time_dim>Time (hours)</time_dim> </ItemFormat> <Items> <Item> <date>23.12.2019</date> <time>965600</time> <time_dim>0.27 hours</time_dim> </Item> </Items> <Status>Success</Status> </Response>
Getting statistics by Video, Live and Playlist.
Input parameters
Required parameters:
Optional parameters:
Sample query:
https://boomstream.com/api/stats?apikey=[API_KEY]&start=2019-01-01&end=2020-05-01&code=XXXXXXXX&group=day
Sample response:
<Response> <Period>01.01.2019 - 10.05.2020</Period> <Start>01.01.2019</Start> <End>10.05.2020</End> <GroupBy>day</GroupBy> <SourceType>media</SourceType> <Page>1</Page> <PageLimit>1000</PageLimit> <PageCount>1</PageCount> <ItemCount>1</ItemCount> <ItemFormat> <date>Date</date> <time>Time</time> <time_dim>Time (hours)</time_dim> </ItemFormat> <Items> <Item> <date>23.12.2019</date> <time>965600</time> <time_dim>0.27 hours</time_dim> </Item> </Items> <Status>Success</Status> </Response>
Getting statistics about customer’s session by password.
Input parameters
Required parameters:
Optional parameters:
Output parameters
Sample query:
https://boomstream.com/api/ppv/sessions?apikey=[API_KEY]&code=[media_code]&hash=[customer_password]&start=2019-01-01&end=2020-05-01&order=desc
Sample response:
<Response> <Item> <Place>Media name</Place> <ip>192.168.0.1</ip> <Country>Russia</Country> <UserAgent>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36</UserAgent> <Start>2020-09-09 11:35:28</Start> <LeftActivations>1</LeftActivations> </Item> </Response>