Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Douyin Content Consumer Portrait

เอกสาร API
https://api.sandbase.ai/v1/api/douyin/index/content-consumer-portrait

Returns consumer viewer portrait data for audience members watching videos in a specified Douyin category over a given week or month.

ราคา
$0.001USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
2 จำเป็น · 1 ไม่บังคับ

Playground

อินพุต
End date YYYYMMDD, must align with period
Category ID (**required, does NOT support 0=all**, must pass a specific category ID)
"week" (end_date must be a Sunday) or "month" (end_date must be month-end, e.g. 20260331)
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 130 B · 10 บรรทัด
[
  {
    "data": {
      "BaseResp": {
        "StatusCode": -1,
        "StatusMessage": "end_date非当前周期最后一天"
      }
    }
  }
]

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

API README

Douyin Content Consumer Portrait API

Returns viewer portrait data for the audience watching videos in one Douyin category over a week or a month. You send a specific tag_id and an end_date, and you can set period to week or month.

Use cases

  • Check who watches a single Douyin video category before you plan content for it.
  • Compare the viewer portrait of one category across weekly or monthly periods.
  • Pull the audience profile of a category to support a brand or ad targeting brief.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-consumer-portrait" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"end_date": "1735660799", "tag_id": "2027"}'

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

Parameters

NameTypeRequiredDescription
end_datestringYesEnd date YYYYMMDD, must align with period
tag_idstringYesCategory ID (required, does NOT support 0=all, must pass a specific category ID)
periodstringNo"week" (end_date must be a Sunday) or "month" (end_date must be month-end, e.g. 20260331)

Example response

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

{
  "BaseResp": {
    "StatusCode": -1,
    "StatusMessage": "end_date非当前周期最后一天"
  }
}

Response fields

FieldMeaning
BaseRespStatus block returned with the request result.
BaseResp.StatusCodeResult code. The sample call returned -1, which marks a failed request.
BaseResp.StatusMessageText reason for the result. The sample call returned a message saying end_date is not the last day of the current period.

Notes

  • The sample call failed because end_date was 1735660799, which is not a YYYYMMDD date. Send a value such as 20260331.
  • With period set to week, end_date must be a Sunday. With period set to month, end_date must be the last day of the month.
  • tag_id must be a specific category ID. The value 0 for all categories is not accepted.
  • To find dates that have data, call Douyin Index Valid Dates.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
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

คู่มือ:Best Douyin API in 2026: Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Douyin Content Consumer Portrait API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/douyin/index/content-consumer-portrait โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Douyin Content Consumer Portrait API ราคาเท่าไร?

$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Douyin Content Consumer Portrait API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: end_date (string) และ tag_id (string). ตัวเลือก: period (หนึ่งใน week, month). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Douyin Content Consumer Portrait API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Douyin ไหม?

ไม่จำเป็น Douyin Content Consumer Portrait ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Douyin API แยกต่างหาก