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

TikTok Audience Demographics

Tài liệu API
https://api.sandbase.ai/v1/api/tiktok/audience-demographics

Get the audience country breakdown (follower count and share per country) for a TikTok creator by handle.

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

Phòng thử nghiệm

Đầu vào
TikTok username without the leading @ (e.g. "shakira").
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

TikTok Audience Demographics API

Returns the country breakdown of a TikTok creator's audience. Each row gives a country, its follower count and its share of the audience. The only input is the creator's handle.

Use cases

  • Check whether a creator's audience sits in the countries a campaign targets.
  • Compare the top audience countries of several creators before picking partners.
  • Flag creators whose audience is concentrated in markets that do not match their stated niche.
  • Add audience location data to an influencer report or database.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/audience-demographics" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"handle": "shakira"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
handlestringYesTikTok username without the leading @ (e.g. "shakira").

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "audienceLocations": [
      {
        "count": 101,
        "country": "United States",
        "countryCode": "US",
        "percentage": "8.51%"
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
foundtrue when the creator was found and audience data was returned. A lookup that finds nothing returns false.
data.audienceLocations[]List of countries in the creator's audience. Each item is one country.
data.audienceLocations[].countryCountry name in English, for example United States.
data.audienceLocations[].countryCodeTwo-letter country code, for example US.
data.audienceLocations[].countNumber of audience members counted for this country.
data.audienceLocations[].percentageShare of the audience in this country, returned as a string with a percent sign, for example 8.51%.

Notes

  • Pass handle without the leading @, for example shakira.
  • percentage is a string, so strip the % sign before you do math on it.
  • The response shows the countries in descending order of count.

Pricing

Billed at the actual cost of each call, about $0.018 for the request above. Failed calls are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
TikTokTừ $0.018 mỗi lần gọiJSON
TikTokTừ $0.0012 mỗi lần gọiJSON
TikTokTừ $0.0008 mỗi lần gọiJSON
TikTokTừ $0.0008 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 Audience Demographics?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/tiktok/audience-demographics 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 Audience Demographics có giá bao nhiêu?

Từ $0.018 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 Audience Demographics chấp nhận những tham số nào?

Bắt buộc: handle (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API TikTok Audience Demographics 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 Audience Demographics 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.