Zernio
APIFor you
Zernio
APIFor you
API Reference

Accounts

List accountsGETList partner businesses of the PageGETList trending commercial musicGETSearch TikTok location tagsGETCheck account healthGETList posts published on the platformGETCheck accounts healthGETGet Bluesky account settingsGETGet follower statsGETGet HubSpot account settingsGETCheck whether an Instagram user follows the accountGETGet Slack account settingsGETGet TikTok creator infoGETUpdate accountPUTUpdate Bluesky account settingsPATCHUpdate HubSpot account settingsPATCHUpdate Slack account settingsPATCHDisconnect accountDELETEShare the Page with a partner businessPOSTMove account to another profilePATCHRevoke a partner business from the PageDELETE
Dashboard
OverviewPlatformsAPI ReferenceResources
Accounts

Get follower stats

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


GET
/v1/accounts/follower-stats

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Query Parameters

accountIds?string

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

profileId?string

Filter by profile ID

fromDate?string

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

Formatdate
toDate?string

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

Formatdate
granularity?string

Data aggregation level

Default"daily"

Value in

  • "daily"
  • "weekly"
  • "monthly"
limit?integer

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.

Range1 <= value <= 25
cursor?string

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.

Response Body

application/json

application/json

application/json

application/json

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"}
Was this page helpful?

Get Bluesky account settings

Returns the account's default post languages (defaultLangs), applied at publish time whenever a post's platformSpecificData.langs is absent. Null when no default is set.

Get HubSpot account settings

Read a connected HubSpot portal and what Zernio syncs to it.