Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Douyin Content Creative Duration

Dokumentasi 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.

Harga
$0.001USD / panggilan
Metode
POST
Respons
JSON
Parameter
2 wajib · 1 opsional

Playground

Input
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)
OutputContoh
Responsoutputs · 130 B · 10 baris
[
  {
    "data": {
      "BaseResp": {
        "StatusCode": -1,
        "StatusMessage": "end_date非当前周期最后一天"
      }
    }
  }
]

Contoh

Pilih contoh untuk memuat input dan hasilnya ke playground.

README API

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Douyin$0.001 per panggilanJSON
Douyin$0.001 per panggilanJSON
Douyin$0.001 per panggilanJSON
Douyin$0.001 per panggilanJSON
Douyin$0.001 per panggilanJSON
Douyin$0.001 per panggilanJSON

Panduan:Best Douyin API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Douyin Content Creative Duration?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/index/content-creative-duration dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Douyin Content Creative Duration?

$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Douyin Content Creative Duration?

Wajib: end_date (string) dan tag_id (string). Opsional: period (salah satu dari week, month). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Douyin Content Creative Duration?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Douyin?

Tidak. Douyin Content Creative Duration berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Douyin secara terpisah.