handlestringwymagane
TikTok username without the leading @ (e.g. "shakira").
https://api.sandbase.ai/v1/api/tiktok/audience-demographicsGet the audience country breakdown (follower count and share per country) for a TikTok creator by handle.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Returns the country breakdown of a TikTok creator's audience. Each row gives a country, its follower count and its share of the audience. The only input is the creator's handle.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/audience-demographics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle": "shakira"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | TikTok username without the leading @ (e.g. "shakira"). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"audienceLocations": [
{
"count": 101,
"country": "United States",
"countryCode": "US",
"percentage": "8.51%"
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
found | true when the creator was found and audience data was returned. A lookup that finds nothing returns false. |
data.audienceLocations[] | List of countries in the creator's audience. Each item is one country. |
data.audienceLocations[].country | Country name in English, for example United States. |
data.audienceLocations[].countryCode | Two-letter country code, for example US. |
data.audienceLocations[].count | Number of audience members counted for this country. |
data.audienceLocations[].percentage | Share of the audience in this country, returned as a string with a percent sign, for example 8.51%. |
handle without the leading @, for example shakira.percentage is a string, so strip the % sign before you do math on it.count.Billed at the actual cost of each call, about $0.018 for the request above. Failed calls are not charged.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/audience-demographics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"handle": "shakira"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
handlestringwymaganeTikTok username without the leading @ (e.g. "shakira").
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
TikTok | Od $0.018 za wywołanie | JSON |
TikTok | Od $0.0012 za wywołanie | JSON |
TikTok | Od $0.0008 za wywołanie | JSON |
TikTok | Od $0.0008 za wywołanie | JSON |
TikTok | $0.001 za wywołanie | JSON |
TikTok | $0.001 za wywołanie | JSON |
Przewodniki:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/tiktok/audience-demographics z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
Od $0.018 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: handle (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. TikTok Audience Demographics działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API TikTok.