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.001美元 / 次调用
方法
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?

向 https://api.sandbase.ai/v1/api/douyin/index/content-creative-duration 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 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 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Douyin 开发者账户或 API key 吗?

不需要。Douyin Content Creative Duration 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Douyin API 访问权限。