Skip to content

Analytics API

Query collected SNS metrics with analytics:read. Use days for a recent period, or provide both from and to for an explicit range. Filter with sns_type or connection_id when needed.

Terminal window
curl --fail-with-body --get 'https://api.ankk.app/v1/brand/analytics' \
--data-urlencode 'days=30' \
--data-urlencode 'sns_type=instagram' \
-H "Authorization: Bearer $ANKK_API_KEY"

Read scope, totals, accounts, bySnsType, dailyTrend, and topPosts from the response. Available metrics and date ranges depend on the SNS service, collected data, and plan. A missing value is not zero.

The overview endpoint returns comment_count and reply_count. It accepts from and to; do not treat it as a follower or publishing summary.

Terminal window
curl --fail-with-body 'https://api.ankk.app/v1/brand/analytics/overview' \
-H "Authorization: Bearer $ANKK_API_KEY"