Skip to content

Analytics API

The Analytics API enables programmatic access to multi-channel performance data, follower history, and post engagement metrics across your connected SNS accounts.


MethodPathDescriptionRequired Scope
GET/v1/brand/analyticsQuery detailed metrics by time range, platform, or connectionanalytics:read or *
GET/v1/brand/analytics/overviewQuick 30-day summary across all brand channelsanalytics:read or *

📊 Detailed Analytics (GET /v1/brand/analytics)

Section titled “📊 Detailed Analytics (GET /v1/brand/analytics)”

Query aggregated and channel-by-channel metrics based on filter criteria.

ParameterTypeRequiredDefaultDescription
rangestringOptional30dTime range (7d, 14d, 30d, 90d, or custom YYYY-MM-DD..YYYY-MM-DD)
sns_typestringOptional-Filter by platform (instagram, threads, bluesky, etc.)
connection_idstringOptional-Filter by specific connection ID
Terminal window
curl -X GET "https://api.ankk.app/v1/brand/analytics?range=30d&sns_type=instagram" \
-H "Authorization: Bearer spk_live_xxxxxxxx"
{
"range": {
"start": "2026-07-17T00:00:00Z",
"end": "2026-08-16T00:00:00Z",
"preset": "30d"
},
"totals": {
"followers": 12500,
"followers_change": 340,
"published_posts": 28,
"impressions": 84200,
"reach": 61500,
"engagement_rate": 4.8,
"likes": 3210,
"comments": 412,
"shares": 180,
"saves": 250
},
"by_channel": [
{
"connection_id": "conn_01jm8x9k2example",
"sns_type": "instagram",
"username": "acme_official",
"followers": 12500,
"posts_count": 28,
"metrics_status": "synced"
}
]
}

📈 Brand Overview (GET /v1/brand/analytics/overview)

Section titled “📈 Brand Overview (GET /v1/brand/analytics/overview)”

Quickly fetch high-level 30-day summaries suitable for dashboard widgets and daily digests.

Terminal window
curl -X GET "https://api.ankk.app/v1/brand/analytics/overview" \
-H "Authorization: Bearer spk_live_xxxxxxxx"
{
"brand_ref": "brand_01jm8v4k9example",
"active_connections": 4,
"summary_30d": {
"total_published": 54,
"total_failed": 1,
"total_followers": 28400,
"total_impressions": 195000
},
"synced_at": "2026-08-16T03:00:00Z"
}

  • Plan Limits: The Free plan supports metrics for the last 30 days. Growth plans and above enable extended retention (90d+).
  • Interpreting 0 vs null:
    • 0: Measured metric value is genuinely zero.
    • null / unsupported: Platform API does not support this metric or permission is unverified.