Schema
Every endpoint below returns this object as data. The standard meta comes with every response.
platformstringPlatform ID (tiktok, …).
idstringPlatform-native ID of the account whose audience this is (equals account.id).
urlstring uriCanonical profile URL of the account (equals account.url).
accountobjectThe account whose audience this is.
ShowHide 6 child fields
idstringnullablePlatform-native account ID; null when only the handle is known.
usernamestringnullableHandle without the @; null when the account has none.
display_namestringnullableDisplay name shown on the profile.
urlstring urinullableCanonical profile URL.
avatar_urlstring urinullableProfile picture URL. Platform CDN URLs can expire within hours.
is_verifiedbooleannullablePlatform verification badge; null where the platform has no badge.
basisstringWhat 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_codestringISO 3166-1 alpha-2 country code, upper case.
sharenumberShare of the located accounts in this country, as a fraction (0.25 = 25%): the estimate of this country's share of the audience.
metricsobjectThe country's count in the sample.
ShowHide 1 child field
account_countintegerSampled 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
accountobjectThe sampled account.
ShowHide 6 child fields
idstringnullablePlatform-native account ID; null when only the handle is known.
usernamestringnullableHandle without the @; null when the account has none.
display_namestringnullableDisplay name shown on the profile.
urlstring urinullableCanonical profile URL.
avatar_urlstring urinullableProfile picture URL. Platform CDN URLs can expire within hours.
is_verifiedbooleannullablePlatform verification badge; null where the platform has no badge.
country_codestringnullableISO 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).
metricsobjectThe sample's size and the account's audience size.
ShowHide 3 child fields
follower_countintegernullableThe account's followers, the audience the sample is drawn from; null when the platform does not state it.
sampled_account_countintegerAccounts in the sample (sample[]).
located_account_countintegerSampled accounts whose country is known: the size of the sample countries[] is computed from.
platform_specificobjectFields 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:
| Code | HTTP | Retry | Meaning | What to do |
|---|---|---|---|---|
not_found | 404 | No | The 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_unavailable | 403 | No | The 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.