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.
- 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
[
{
"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
| 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.
Bắt đầu xây dựng
Gửi request đầu tiên của bạn
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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. Xác thực
Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
3. Tham số
Chưa có schema tham số nào được công bố cho API này.
4. Phản hồi
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"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"
}
}
]Khám phá thêm
APIs liên quan
| API | Giá | Phản hồi |
|---|---|---|
TikTok Ads Location ListAPI này TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
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.
