Schemas

Audience

Where an account's followers are: the countries of a sample of its followers, ranked, with each country's share, and the sample itself.

On this page
  1. Schema
  2. Item errors
  3. Endpoints

Schema

Every endpoint below returns this object as data. The standard meta comes with every response.

platformstring

Platform ID (tiktok, …).

idstring

Platform-native ID of the account whose audience this is (equals account.id).

urlstring uri

Canonical profile URL of the account (equals account.url).

accountobject

The account whose audience this is.

ShowHide 6 child fields
idstringnullable

Platform-native account ID; null when only the handle is known.

usernamestringnullable

Handle without the @; null when the account has none.

display_namestringnullable

Display name shown on the profile.

urlstring urinullable

Canonical profile URL.

avatar_urlstring urinullable

Profile picture URL. Platform CDN URLs can expire within hours.

is_verifiedbooleannullable

Platform verification badge; null where the platform has no badge.

basisstring

What the sample is drawn from: recent_followers, the account's newest followers in the order the platform lists them. New values may be added.

One ofrecent_followers

countriesobject[]

Countries of the sampled accounts with a known country, most first (ties by code), counted over metrics.located_account_count accounts: the estimate of where the audience is. [] when none is known.

ShowHide 3 child fields
country_codestring

ISO 3166-1 alpha-2 country code, upper case.

sharenumber

Share of the located accounts in this country, as a fraction (0.25 = 25%): the estimate of this country's share of the audience.

metricsobject

The country's count in the sample.

ShowHide 1 child field
account_countinteger

Sampled accounts located in this country.

sampleobject[]

The sampled accounts, in the order the platform lists them, each with its country where known.

ShowHide 2 child fields
accountobject

The sampled account.

ShowHide 6 child fields
idstringnullable

Platform-native account ID; null when only the handle is known.

usernamestringnullable

Handle without the @; null when the account has none.

display_namestringnullable

Display name shown on the profile.

urlstring urinullable

Canonical profile URL.

avatar_urlstring urinullable

Profile picture URL. Platform CDN URLs can expire within hours.

is_verifiedbooleannullable

Platform verification badge; null where the platform has no badge.

country_codestringnullable

ISO 3166-1 alpha-2 country the platform attributes to the account. Null for a private account, one with no public post, or a read that failed (meta.warnings has partial_data).

metricsobject

The sample's size and the account's audience size.

ShowHide 3 child fields
follower_countintegernullable

The account's followers, the audience the sample is drawn from; null when the platform does not state it.

sampled_account_countinteger

Accounts in the sample (sample[]).

located_account_countinteger

Sampled accounts whose country is known: the size of the sample countries[] is computed from.

platform_specificobject

Fields only this platform has, under its ID (platform_specific.<platform>); each null when unknown.

approximate_fieldsstring[]

JSON paths of estimates: countries when the sample is smaller than the audience (its shares estimate the whole audience's from the sample). [] when the sample is every follower.

unknown_fieldsstring[]

JSON paths of lists whose [] means unknown, not none; countries and sample are always known, so always [].

Item errors

Besides the request-level errors every endpoint can return, audience endpoints return:

CodeHTTPRetryMeaningWhat to do
not_found404NoThe item does not exist or was deleted. On GET /v1/requests/{id}/response: the response was not kept (details.reason says why).Check the link or ID. Do not retry.
private_or_unavailable403NoThe item exists but isn't public: it is private, age- or region-restricted, or needs a login. It shares 403 with forbidden, which is about the key: branch on the code.Only public items can be fetched. Do not retry.

Endpoints

1 endpoint returns audiences on TikTok.

Last updated