end_datestringобязательно
End date YYYYMMDD, must align with period
https://api.sandbase.ai/v1/api/douyin/index/content-creative-durationReturns the video duration distribution for a specified Douyin category. Breaks down content duration patterns across weekly or monthly periods.
[
{
"data": {
"BaseResp": {
"StatusCode": -1,
"StatusMessage": "end_date非当前周期最后一天"
}
}
}
]Выберите пример, чтобы загрузить его входные данные и результат в playground.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
end_date | string | Yes | End date YYYYMMDD, must align with period |
tag_id | string | Yes | Category ID (required, does NOT support 0=all, must pass a specific category ID) |
period | string | No | "week" (end_date must be a Sunday) or "month" (end_date must be month-end) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": -1,
"StatusMessage": "end_date非当前周期最后一天"
}
}
| Field | Meaning |
|---|---|
BaseResp | Status block for the call. The response you get when the request is rejected contains only this object. |
BaseResp.StatusCode | Result code. -1 means the request failed. A failed call returns no duration data. |
BaseResp.StatusMessage | Reason for the failure, in Chinese. The value end_date非当前周期最后一天 means end_date is not the last day of the period. |
end_date set to 1735660799 returned StatusCode -1. Send end_date as YYYYMMDD instead, for example 20241229.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.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
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 '{
"tag_id": "example",
"end_date": "example"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_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)
Возможные значения: week, month
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
[
{
"data": {
"BaseResp": {
"StatusCode": -1,
"StatusMessage": "end_date非当前周期最后一天"
}
}
}
]Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Douyin Content Creative DurationЭтот 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
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/douyin/index/content-creative-duration, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.001 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: end_date (string) и tag_id (string). Необязательные: period (один из week, month). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Douyin Content Creative Duration работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Douyin.