TikTok Ads Location List
https://api.sandbase.ai/v1/api/tiktok/ads/location-listReturns the list of supported locations available for advertising targeting on TikTok. Access standard geographical targets to configure ad campaigns.
- Prezzo
- $0.001USD / chiamata
- Metodo
- POST
- Risposta
- JSON
- Parametri
- 0 obbligatori · 0 opzionali
Playground
[
{
"data": {
"code": 0,
"data": {
"country": [
{
"id": "AR",
"label": "AR",
"value": "Argentina"
},
{
"id": "AU",
"label": "AU",
"value": "Australia"
},
{
"id": "AT",
"label": "AT",
"value": "Austria"
},
"… 70 more items in the full response"
]
},
"msg": "OK"
}
}
]Esempi
Seleziona un esempio per caricare i suoi input e il risultato nel playground.
README API
TikTok Ads Location List API
Returns the list of countries that TikTok Ads supports as geographic targets. The request takes no input. Each entry gives a country code and a country name.
Use cases
- Fill a country dropdown in a campaign planning tool with TikTok-supported targets.
- Check whether a country appears in the TikTok Ads targeting list before building a campaign.
- Map two-letter country codes to country names in a marketing database.
Request
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/ads/location-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"country": [
{
"id": "AR",
"label": "AR",
"value": "Argentina"
}
]
},
"msg": "OK"
}
Response fields
| Field | Meaning |
|---|---|
code | Status code of the response. 0 means the call succeeded. |
msg | Status message. OK appears on success. |
data.country[] | List of countries available as ad targeting locations. |
data.country[].id / data.country[].label | Two-letter country code, such as AR or AU. Both fields hold the same code in the sample. |
data.country[].value | Country name in English, such as Argentina. |
Notes
- Send an empty JSON object
{}. The API has no request parameters. - Use
idas the code to store or match against. Usevaluewhen you need a display name. - To look up places by name on TikTok, call TikTok Location Search.
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Inizia a costruire
Invia la tua prima richiesta
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/ads/location-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Autenticazione
Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
3. Parametri
Non è stato pubblicato alcuno schema dei parametri per questa API.
4. Risposta
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
[
{
"data": {
"code": 0,
"data": {
"country": [
{
"id": "AR",
"label": "AR",
"value": "Argentina"
},
{
"id": "AU",
"label": "AU",
"value": "Australia"
},
{
"id": "AT",
"label": "AT",
"value": "Austria"
},
"… 70 more items in the full response"
]
},
"msg": "OK"
}
}
]Esplora altro
API correlate
| API | Prezzo | Risposta |
|---|---|---|
TikTok Ads Location ListQuesta API TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
TikTok | $0.001 per chiamata | JSON |
Guide:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Domande
FAQ
Come uso l'API TikTok Ads Location List?
Invia una richiesta POST a https://api.sandbase.ai/v1/api/tiktok/ads/location-list con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
Quanto costa l'API TikTok Ads Location List?
$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Quali parametri accetta l'API TikTok Ads Location List?
TikTok Ads Location List non accetta parametri di input; invia un body JSON vuoto.
Cosa restituisce l'API TikTok Ads Location List?
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
Mi serve un account sviluppatore o una chiave API TikTok?
No. TikTok Ads Location List funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API TikTok.
