OverviewPlatformsAPI ReferenceResources
Posting Analytics

Get follower stats

GEThttps://zernio.com/api/v1/accounts/follower-stats

Returns follower count history and growth metrics for connected accounts. Requires analytics add-on subscription. Follower counts are refreshed once per day.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Query parameters

Optional
accountIdsstring

Comma-separated list of account IDs (optional, defaults to all user's accounts)

profileIdstring

Filter by profile ID

fromDatestring (date)

Start date in YYYY-MM-DD format (defaults to 30 days ago)

toDatestring (date)

End date in YYYY-MM-DD format (defaults to today)

granularitystringDefault dailyOne of daily | weekly | monthly

Data aggregation level

limitinteger

Accounts per page, ordered by account id. Send it to page through accounts; the response then carries pagination.nextCursor. Without limit or cursor every matching account is returned.

cursorstring

Opaque cursor from a previous response's pagination.nextCursor; returns the next page of limit accounts (25 when limit is omitted). A cursor we cannot parse returns 400.

Responses

Success· the request worked

Errors· the request failed

GET/v1/accounts/follower-stats
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.accounts.getFollowerStats();console.log(data);
{  "accounts": [    {      "_id": "64e1...",      "platform": "twitter",      "username": "@acme",      "currentFollowers": 1250,      "growth": 50,      "growthPercentage": 4.17,      "dataPoints": 30    }  ],  "stats": {    "64e1...": [      {        "date": "2024-01-01",        "followers": 1200      },      {        "date": "2024-01-02",        "followers": 1250      }    ]  },  "dateRange": {    "from": "2024-01-01T00:00:00.000Z",    "to": "2024-01-31T23:59:59.999Z"  },  "granularity": "daily"}
OpenAPI specification
Was this page helpful?