Skip to content

Analytics

2 endpoints: retrieve an account's analytics summary, retrieve a post's metrics.

Retrieve an account's analytics summary

GET /v1/accounts/{account_id}/analytics

Reads the account's current counters from the network. YouTube and Instagram answer for the chosen range; TikTok and Facebook answer lifetime counters.

Permission: analytics:read · Counts 5 requests

Path parameters

NameDescription
account_idThe account's id.

Query parameters

FieldTypeRequiredDescription
range7, 28, 90NoDays, for networks that report a range. (default "28")

Response

FieldTypeRequiredDescription
object"account_analytics"Yes
account_idstringYes(up to 128 characters)
networkyoutube, tiktok, instagram, facebook, threads, bluesky, mastodon, pinterest, telegram, twitch, x, discordYes
range_daysinteger or nullYes
dataobjectYes
curl https://api.nowscale.com/v1/accounts/ACCOUNT_ID/analytics \
  -H "Authorization: Bearer $NOWSCALE_API_KEY"

Retrieve a post's metrics

GET /v1/posts/{post_id}/metrics

Reads lifetime views, likes, comments and shares of each published copy from its network. A copy the network cannot report returns nulls.

Permission: analytics:read · Counts 5 requests

Path parameters

NameDescription
post_idThe post's id.

Response

FieldTypeRequiredDescription
object"list"Yes
dataarray of objectYes
data[].object"post_metrics"Yes
data[].target_idstringYes(up to 128 characters)
data[].account_idstringYes(up to 128 characters)
data[].networkyoutube, tiktok, instagram, facebook, threads, bluesky, mastodon, pinterest, telegram, twitch, x, discordYes
data[].external_idstringYes
data[].viewsnumber or nullYes
data[].likesnumber or nullYes
data[].commentsnumber or nullYes
data[].sharesnumber or nullYes
data[].urlstring or nullYes
curl https://api.nowscale.com/v1/posts/POST_ID/metrics \
  -H "Authorization: Bearer $NOWSCALE_API_KEY"