Pages in API reference

Analytics

Follower history

GET/api/analytics/followers

Follower count per account with one daily snapshot per day between from and to (UTC days, default the last 30).

  • History starts when Ampost first read the account; a day without a snapshot is missing.
  • Use it to chart follower growth; for the start, end and change of a range in one number per account use analytics_overview, and for post metrics analytics_posts.
  • Filter by platform, platformSetId or accountId; paginated by account with limit and offset.
  • A range longer than 90 days or with from after to is 400 VALIDATION_FAILED.
Key scope
analytics:read
MCP tool
analytics_followers

Headers

  • Authorizationstringrequired

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

Query parameters

  • fromstring

    First day (UTC), YYYY-MM-DD. Default: 29 days before to. At most 90 days with to.

  • tostring

    Last day (UTC), YYYY-MM-DD, included. Default: today.

  • 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.