RelayAPI

Get daily time series metrics from the platform API

GET
/v1/analytics/platform/daily
AuthorizationBearer <token>

API key (rlay_live_* or rlay_test_*)

In: header

Query Parameters

account_id*string

Social account ID

from_date?string

Start date (YYYY-MM-DD). Defaults to 30 days ago

to_date?string

End date (YYYY-MM-DD). Defaults to today

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/analytics/platform/daily?account_id=string"
{  "data": [    {      "date": "string",      "impressions": 0,      "engagement": 0,      "reach": 0,      "followers": 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