API referenceAnalytics

GET /analytics/dashboard

One call for a dashboard: window totals (engagement received each day, so totals are the sum of daily), follower growth, a per-day series, top posts by engagement and recent posts with lifetime metrics; compare=previous_period adds the same figures for the previous window. UTC days, at most 366

GET
/analytics/dashboard

Authorization

BearerAuth
headerAuthorizationBearer <token>

API key sk_...

Query Parameters

fromDate*string

First day (YYYY-MM-DD)

toDate*string

Last day (YYYY-MM-DD)

profileId?string

Only this profile

platform?string

Only this platform

accountId?string

Only this account

source?string

Posts published through Postgale (late is Zernio's name) or imported from the platform

Value in"postgale""late""external"
compare?"previous_period"

Also the previous period

Value in"previous_period"
topPosts?integer

How many top posts (default 5)

Range0 <= value <= 50
recentPosts?integer

How many recent posts (default 5)

Range0 <= value <= 50

Response Body

Dashboard

application/json
  1. response
dateRange?
totals?
previousTotals?
followers?
previousFollowers?
daily?array<>
topPosts?array<>
recentPosts?array<>
dataAsOf?string|null
Example Request
curl -X GET 'https://example.com/api/v1/analytics/dashboard?fromDate=string&toDate=string'
Example Response
{  "dateRange": {    "fromDate": "string",    "toDate": "string"  },  "totals": {},  "previousTotals": {},  "followers": {    "total": 0,    "start": 0,    "gained": 0  },  "previousFollowers": {},  "daily": [    {}  ],  "topPosts": [    {}  ],  "recentPosts": [    {}  ],  "dataAsOf": "string"}