Douyin Index Fetch Content Creative Duration
2.07积分/次
ae_douyin_index_fetch_content_creative_duration
## 用途 获取指定内容垂类的视频时长分布,用于了解该垂类的视频时长结构及创作者偏好的视频长度。 ## 输入条件 - `tag_id`(必填,字符串):具体垂类 ID,不支持表示全部垂类的 `"0"`。 - `end_date`(必填,字符串):统计结束日期,格式为 `YYYYMMDD`。按周统计时必须为周日,按月统计时必须为当月最后一天。 - `period`(可选):`"week"` 表示按周统计,为默认值;`"month"` 表示按月统计。 ## 返回含义 返回各视频时长区间的视频数量与占比。文档中的区间示例包括 0–15 秒、15–60 秒、60–180 秒及大于 180 秒。这些数据是垂类汇总统计,不是单条视频记录。响应结构未固定详细结果字段,应以实际返回的区间标签和数值为准。
2.07积分/次
价格说明
2.07积分/次
| 条件 | 费用 |
|---|---|
| 每次调用 | 2.07积分/次 |
每次调用固定收费2.07积分。 按查询次数计费。查询成功但未返回结果时,也会扣除积分。
API 调用
通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。
cURL
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_douyin_index_fetch_content_creative_duration' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"tag_id": "xxx",
"end_date": "xxx"
}
}'- 请求方式
- POST
- 接口地址
- /agent-api/v1/tool/execute
- 鉴权方式
- X-Api-Key
- 超时时间
- 60 秒
响应示例
{
"error_no": 0,
"error_msg": "",
"result": [
{
"type": "text",
"text": "xxx"
}
],
"platform_annotations": {
"source": "AgentEarth",
"platform_note": "xxx",
"platform_suggestion": "xxx"
}
}工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
period | enum (week | month) | 否 | 时间粒度/Period: week=周, month=月 | week |
tag_id | string | 是 | 垂类ID,**必填,不支持 0=全部**(同 fetch_item_query 的 category_id 但不接受 0)/Category ID, **required, does NOT support 0=all**. Get full list via fetch_item_filter_options (excluding id=0) | — |
end_date | string | 是 | 结束日期/End date YYYYMMDD | — |

