OverviewProductsPlatformsAPI ReferenceResources
Posting Analytics

Get TikTok follower demographics

GEThttps://zernio.com/api/v1/analytics/tiktok/demographics

Returns the share of a TikTok account's followers by age, gender, country and city. Without breakdown it returns all four.

  • Each value is a share of followers from 0 to 1, and each list is sorted largest first. It is not a follower count.
  • Age, gender and country lists add up to 1. The city list can add up to less, because TikTok does not place every follower in a listed city.
  • These are followers of the account, not the viewers of its videos. Viewer countries per video are on GET /v1/analytics?postId=...
  • TikTok updates this data every 24-48 hours.

Authentication

AuthorizationBearer tokenRequired

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

Query parameters

accountIdstringRequired

The Zernio SocialAccount ID for the TikTok account.

breakdownstring

Comma-separated list of demographic dimensions: age, gender, country, city. Defaults to all four.

Responses

Success· the request worked

Errors· the request failed

How it behaves

Requirements

  • The account needs at least 100 followers (400 tiktok_insufficient_followers otherwise).
  • The account owner must turn on Analytics in the TikTok app and have published at least one video. Until then an account with enough followers gets empty lists.
  • Requires the user.insights scope, which an account gets by connecting through the TikTok for Business app (412 tiktok_insights_scope_missing otherwise). Accounts on the original TikTok integration must reconnect.
  • Requires the Analytics add-on.
GET/v1/analytics/tiktok/demographics
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.analytics.getTikTokDemographics({  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "success": true,  "accountId": "64e1a2b3c4d5e6f7a8b9c0d1",  "platform": "tiktok",  "metric": "follower_demographics",  "demographics": {    "age": [      {        "dimension": "25-34",        "value": 0.5      },      {        "dimension": "35-44",        "value": 0.25      },      {        "dimension": "18-24",        "value": 0.25      }    ],    "gender": [      {        "dimension": "Female",        "value": 0.6      },      {        "dimension": "Male",        "value": 0.38      },      {        "dimension": "Other",        "value": 0.02      }    ],    "country": [      {        "dimension": "US",        "value": 0.7      },      {        "dimension": "other",        "value": 0.3      }    ],    "city": [      {        "dimension": "New York",        "value": 0.2      }    ]  },  "note": "Each value is a share of followers from 0 to 1. TikTok updates this data every 24-48 hours. Empty lists mean TikTok has no data for the account yet: the owner must turn on Analytics in the TikTok app and have published at least one video."}
OpenAPI specification
Was this page helpful?