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

Douyin Content Creative Duration

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

Returns the video duration distribution for a specified Douyin category. Breaks down content duration patterns across weekly or monthly periods.

ราคา
$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)
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 130 B · 10 บรรทัด
[
  {
    "data": {
      "BaseResp": {
        "StatusCode": -1,
        "StatusMessage": "end_date非当前周期最后一天"
      }
    }
  }
]

ตัวอย่าง

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

API README

Douyin Content Creative Duration API

Returns the video duration distribution for one Douyin category over a week or a month. You send a category tag_id, an end_date, and optionally a period.

Use cases

  • Check which video length ranges are most common in a single Douyin category.
  • Compare duration patterns between a weekly window and a monthly window for the same category.
  • Plan video runtimes for a category using its recent duration mix.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/content-creative-duration" \
  -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)

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 for the call. The response you get when the request is rejected contains only this object.
BaseResp.StatusCodeResult code. -1 means the request failed. A failed call returns no duration data.
BaseResp.StatusMessageReason for the failure, in Chinese. The value end_date非当前周期最后一天 means end_date is not the last day of the period.

Notes

  • The sample request with end_date set to 1735660799 returned StatusCode -1. Send end_date as YYYYMMDD instead, for example 20241229.
  • With period set to week, end_date must be a Sunday. With month, it must be the last day of the month.
  • tag_id must be a specific category ID. 0 for all categories is not accepted.
  • To find dates that have data, call Douyin Content Guide 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 Creative Duration API ได้อย่างไร?

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

Douyin Content Creative Duration API ราคาเท่าไร?

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

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

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

Douyin Content Creative Duration API ส่งคืนอะไร?

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

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

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