RelayAPI

Get daily aggregated metrics

GET
/v1/analytics/daily-metrics
AuthorizationBearer <token>

API key (rlay_live_* or rlay_test_*)

In: header

Query Parameters

platform?string

Filter by platform

Value in

  • "twitter"
  • "instagram"
  • "facebook"
  • "linkedin"
  • "tiktok"
  • "youtube"
  • "pinterest"
  • "reddit"
  • "bluesky"
  • "threads"
  • "telegram"
  • "snapchat"
  • "googlebusiness"
  • "whatsapp"
  • "mastodon"
  • "discord"
  • "sms"
  • "beehiiv"
  • "convertkit"
  • "mailchimp"
  • "listmonk"
account_id?string

Filter by 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/daily-metrics"
{  "data": [    {      "date": "string",      "post_count": 0,      "platforms": {        "property1": 0,        "property2": 0      },      "impressions": 0,      "likes": 0,      "comments": 0,      "shares": 0,      "clicks": 0,      "views": 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