end_datestringจำเป็น
End date YYYYMMDD, must align with period
https://api.sandbase.ai/v1/api/douyin/index/content-author-portraitReturns demographic profiles of creators posting within a specific category, including gender, age, region, and activity times based on category ID and selected period.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Query creator audience demographics for a specific category using tag_id, end_date, and period.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-author-portrait" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"end_date": "1735660799", "tag_id": "2027"}'
| Name | Type | Required | Description |
|---|---|---|---|
tag_id | string | Yes | Category ID (required, does NOT support 0=all, must pass a specific category ID) |
end_date | string | Yes | End date YYYYMMDD, must align with period |
period | string | No | "week" (end_date must be a Sunday) or "month" (end_date must be month-end, e.g. 20260331) |
tag_id requires a specific category ID and does not accept 0 for all categories.period accepts either "week" or "month".end_date must align with period (a Sunday for weekly intervals or the last day of the month for monthly intervals).Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-author-portrait" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tag_id": "2027",
"end_date": "1735660799"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
end_datestringจำเป็นEnd date YYYYMMDD, must align with period
tag_idstringจำเป็นCategory ID (**required, does NOT support 0=all**, must pass a specific category ID)
periodstring"week" (end_date must be a Sunday) or "month" (end_date must be month-end, e.g. 20260331)
ค่าที่เป็นไปได้: week, month
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Douyin | $0.001 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
Douyin | $0.001 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/douyin/index/content-author-portrait โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: end_date (string) และ tag_id (string). ตัวเลือก: period (หนึ่งใน week, month). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส)
ไม่จำเป็น Douyin Content Author Portrait ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก