Get Analytics via API

This article explains how you can get the video analytics using the DynTube API.

The first step is to make sure that you use Bearer authentication in your API request as explained here.

In order to get the analytics, you need to make a HTTP POST request to following URL.


https://stats.dyntube.com/v1/logs/data

The body of the request should be having following fields. The Content-Type of HTTP request should be 'application/json'.


{
    "from":"2021-08-01T00:00:00",
    "to":"2021-09-30T23:59:59",
    "page":1,
    "size":100
}


Description of fields:

from: The start date of analytics
to: The end date of analytics
page: The current page number
size: Total number of results per page. The maximum allowed is 200.