RelayAPI

Get YouTube daily views and watch time

GET
/v1/analytics/youtube/daily-views
AuthorizationBearer <token>

API key (rlay_live_* or rlay_test_*)

In: header

Query Parameters

account_id*string

YouTube account ID

from_date?string

Start date (ISO 8601)

to_date?string

End date (ISO 8601)

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/analytics/youtube/daily-views?account_id=string"
{  "data": [    {      "date": "string",      "views": 0,      "watch_time_minutes": 0,      "subscribers_gained": 0    }  ]}
{  "error": {    "code": "string",    "message": "string",    "details": {      "property1": null,      "property2": null    }  }}

Found something wrong? Help us improve this page.

Submit an Issue
Requires a GitHub account.View repo