Sand AISand AI MAGI-2MAGI-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 / вызов
Метод
POST
Ответ
JSON
Параметры
2 обязательных · 1 необязательных

Песочница

Ввод
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.

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.

Посмотреть больше

Связанные 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

Вопросы

FAQ

Как использовать API Douyin Content Creative Duration?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/douyin/index/content-creative-duration, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API Douyin Content Creative Duration?

$0.001 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API Douyin Content Creative Duration?

Обязательные: end_date (string) и tag_id (string). Необязательные: period (один из week, month). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API Douyin Content Creative Duration?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика Douyin или API key?

Нет. Douyin Content Creative Duration работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Douyin.