Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

TikTok Ads Location List

Dokumentacja API
https://api.sandbase.ai/v1/api/tiktok/ads/location-list

Returns the list of supported locations available for advertising targeting on TikTok. Access standard geographical targets to configure ad campaigns.

Cena
$0.001USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
0 wymaganych · 0 opcjonalnych

Playground

Wejście
Brak dostępnego schematu wejścia
WyjściePrzykład
Odpowiedźoutputs · 496 B · 28 wierszy
[
  {
    "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"
    }
  }
]

Przykłady

Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.

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

FieldMeaning
codeStatus code of the response. 0 means the call succeeded.
msgStatus message. OK appears on success.
data.country[]List of countries available as ad targeting locations.
data.country[].id / data.country[].labelTwo-letter country code, such as AR or AU. Both fields hold the same code in the sample.
data.country[].valueCountry name in English, such as Argentina.

Notes

  • Send an empty JSON object {}. The API has no request parameters.
  • Use id as the code to store or match against. Use value when 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.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON

Przewodniki:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API TikTok Ads Location List?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/tiktok/ads/location-list 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.

Ile kosztuje API TikTok Ads Location List?

$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API TikTok Ads Location List?

TikTok Ads Location List nie przyjmuje żadnych parametrów wejściowych; wyślij pustą treść JSON.

Co zwraca API TikTok Ads Location List?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego TikTok lub klucza API?

Nie. TikTok Ads Location List 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.