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.
- Preis
- $0.001USD / Aufruf
- Methode
- POST
- Antwort
- JSON
- Parameter
- 0 erforderlich · 0 optional
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"
}
}
]Beispiele
Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
API-README
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.
Jetzt loslegen
Senden Sie Ihre erste Anfrage
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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. Authentifizierung
Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
3. Parameter
Für diese API wurde kein Parameterschema veröffentlicht.
4. Antwort
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"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"
}
}
]Mehr entdecken
Verwandte APIs
| API | Preis | Antwort |
|---|---|---|
TikTok Ads Location ListDiese API TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
Anleitungen:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Fragen
FAQ
Wie verwende ich die TikTok Ads Location List API?
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/tiktok/ads/location-list mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
Was kostet die TikTok Ads Location List API?
$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Welche Parameter akzeptiert die TikTok Ads Location List API?
TikTok Ads Location List benötigt keine Eingabeparameter; senden Sie einen leeren JSON-Body.
Was gibt die TikTok Ads Location List API zurück?
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Benötige ich ein TikTok-Entwicklerkonto oder einen API-Schlüssel?
Nein. TikTok Ads Location List läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für TikTok API beantragen.
