Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

TikTok Ads Location List

Tài liệu 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.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
0 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
Không có schema đầu vào
Đầu raVí dụ
Phản hồioutputs · 496 B · 28 dòng
[
  {
    "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"
    }
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào 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

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON

Hướng dẫn:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API TikTok Ads Location List?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/tiktok/ads/location-list với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API TikTok Ads Location List có giá bao nhiêu?

$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API TikTok Ads Location List chấp nhận những tham số nào?

TikTok Ads Location List không nhận tham số đầu vào; hãy gửi một phần thân JSON rỗng.

API TikTok Ads Location List trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của TikTok không?

Không. TikTok Ads Location List chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của TikTok.