RelayAPI

Get post-level metrics from the platform API

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

API key (rlay_live_* or rlay_test_). Invite redemption also accepts a server-derived rlay_session_ bearer for a current user session.

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

limit?integer

Number of posts to return

Range1 <= value <= 100
Default20

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/analytics/platform/posts?account_id=string"
{  "data": [    {      "clicks": 0,      "comments": 0,      "content": "string",      "engagement_rate": 0,      "impressions": 0,      "likes": 0,      "media_type": "string",      "media_url": "string",      "platform_post_id": "string",      "platform_url": "string",      "published_at": "string",      "reach": 0,      "saves": 0,      "shares": 0    }  ]}

Found something wrong? Help us improve this page.