handlestringwymagane
TikTok username without the leading @ (e.g. "stoolpresidente").
https://api.sandbase.ai/v1/api/tiktok/profile-regionResolve the home region (country) of a TikTok creator by handle.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Returns the home region of a TikTok creator as a two-letter country code. It needs one input, the creator's handle without the leading @.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/profile-region" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle": "stoolpresidente"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | TikTok username without the leading @ (e.g. "stoolpresidente"). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"handle": "stoolpresidente",
"profileUrl": "https://www.tiktok.com/@stoolpresidente",
"region": "US"
},
"found": true
}
| Field | Meaning |
|---|---|
found | true when the handle matched a TikTok profile. A lookup that finds nothing returns found: false. |
data.region | Two-letter country code for the creator's home region, for example US. |
data.handle | The TikTok username that was looked up, without the @. |
data.profileUrl | Direct link to the creator's TikTok profile page. |
handle without the leading @, for example stoolpresidente.found before you read data.region.Billed at the actual cost of each call, about $0.0012 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/profile-region" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"handle": "stoolpresidente"
}'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. "stoolpresidente").
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 Profile RegionTo API TikTok | Od $0.0012 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/profile-region 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.0012 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 Profile Region 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.