Analytics API
The Analytics API enables programmatic access to multi-channel performance data, follower history, and post engagement metrics across your connected SNS accounts.
📌 Endpoints
Section titled “📌 Endpoints”| Method | Path | Description | Required Scope |
|---|---|---|---|
GET | /v1/brand/analytics | Query detailed metrics by time range, platform, or connection | analytics:read or * |
GET | /v1/brand/analytics/overview | Quick 30-day summary across all brand channels | analytics: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.
Query Parameters
Section titled “Query Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
range | string | Optional | 30d | Time range (7d, 14d, 30d, 90d, or custom YYYY-MM-DD..YYYY-MM-DD) |
sns_type | string | Optional | - | Filter by platform (instagram, threads, bluesky, etc.) |
connection_id | string | Optional | - | Filter by specific connection ID |
Request Example
Section titled “Request Example”curl -X GET "https://api.ankk.app/v1/brand/analytics?range=30d&sns_type=instagram" \ -H "Authorization: Bearer spk_live_xxxxxxxx"Response Example (200 OK)
Section titled “Response Example (200 OK)”{ "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.
Request Example
Section titled “Request Example”curl -X GET "https://api.ankk.app/v1/brand/analytics/overview" \ -H "Authorization: Bearer spk_live_xxxxxxxx"Response Example (200 OK)
Section titled “Response Example (200 OK)”{ "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"}⚠️ Notes on Metrics & Limits
Section titled “⚠️ Notes on Metrics & Limits”- Plan Limits: The Free plan supports metrics for the last 30 days. Growth plans and above enable extended retention (90d+).
- Interpreting
0vsnull:0: Measured metric value is genuinely zero.null/unsupported: Platform API does not support this metric or permission is unverified.