Pages in API reference

Analytics

Post analytics

GET/api/analytics/posts

Metrics of your published posts, newest first: one platformPosts entry per account the post went to, with views, reach, likes, comments, shares and saves (null when the platform does not report one).

  • Pass postId for one post.
  • analyticsStatus says why an entry has no metrics.
  • Use it for per-post numbers; for totals per account over a date range use analytics_overview, for follower counts over time analytics_followers, and for a post's publish status posts_get.
  • Filter by postId, platform, platformSetId or accountId; paginated with limit and offset. 404 POST_NOT_FOUND or ACCOUNT_NOT_FOUND for an id that is not yours.
Key scope
analytics:read
MCP tool
analytics_posts

Headers

  • Authorizationstringrequired

    Bearer <API key>. Create a key in the dashboard under API keys.

Query parameters

  • postIdstring

    Only this post (id from posts_list). Default: every published post.

  • platforminstagram | facebook | linkedin | tiktok | threads | twitter | discord | telegram | bluesky | youtube | pinterest

    Only accounts on this platform. Default: every platform with analytics.

  • platformSetIdstring

    Only accounts in this platform set (id from platform_sets_list). Default: every set the key can see.

  • accountIdstring

    Only this account (id from accounts_list). Default: every matching account.

  • limitinteger

    Page size, 1-100. Default 20.

  • offsetinteger

    Number of items to skip. Default 0.

Errors return { error: { code, message } }; every code is in Error codes.