handlestringจำเป็น
TikTok username without the leading @ (e.g. "shakira").
https://api.sandbase.ai/v1/api/tiktok/audience-demographicsGet the audience country breakdown (follower count and share per country) for a TikTok creator by handle.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | TikTok username without the leading @ (e.g. "shakira"). |
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
}
| Field | Meaning |
|---|---|
found | true 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[].country | Country name in English, for example United States. |
data.audienceLocations[].countryCode | Two-letter country code, for example US. |
data.audienceLocations[].count | Number of audience members counted for this country. |
data.audienceLocations[].percentage | Share of the audience in this country, returned as a string with a percent sign, for example 8.51%. |
handle without the leading @, for example shakira.percentage is a string, so strip the % sign before you do math on it.count.Billed at the actual cost of each call, about $0.018 for the request above. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
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"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
handlestringจำเป็นTikTok username without the leading @ (e.g. "shakira").
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
TikTok Audience DemographicsAPI นี้ TikTok | เริ่มต้นที่ $0.018 ต่อครั้ง | JSON |
TikTok | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
TikTok | เริ่มต้นที่ $0.0008 ต่อครั้ง | JSON |
TikTok | เริ่มต้นที่ $0.0008 ต่อครั้ง | JSON |
TikTok | $0.001 ต่อการเรียก | JSON |
TikTok | $0.001 ต่อการเรียก | JSON |
คู่มือ:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/tiktok/audience-demographics โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.018 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: handle (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น TikTok Audience Demographics ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง TikTok API แยกต่างหาก