Douyin Video Search Filter Options
https://api.sandbase.ai/v1/api/douyin/index/item-filter-optionsReturns all supported filter options and permissible values for Douyin video search queries. Use these criteria to construct structured search requests.
- 价格
- $0.001美元 / 次调用
- 方法
- POST
- 响应
- JSON
- 参数
- 0 个必填 · 0 个可选
Playground
[
{
"data": {
"categories": [
{
"id": "0",
"name": "垂类不限",
"name_en": "All categories"
},
{
"id": "601",
"name": "剧情",
"name_en": "Drama"
},
{
"id": "602",
"name": "明星",
"name_en": "Celebrity"
},
"… 33 more items in the full response"
],
"date_types": [
{
"id": 0,
"name": "发布时间不限",
"name_en": "Any publish time"
},
{
"id": 3,
"name": "近3天",
"name_en": "Last 3 days"
},
{
"id": 7,
"name": "近7天",
"name_en": "Last 7 days"
},
"… 1 more items in the full response"
],
"duration_types": [
{
"id": 0,
"name": "时长不限",
"name_en": "Any duration"
},
{
"id": 1,
"name": "0-15秒",
"name_en": "0-15 seconds"
},
{
"id": 6,
"name": "15-60秒",
"name_en": "15-60 seconds"
},
"… 3 more items in the full response"
],
"label_types": [
{
"id": 0,
"name": "类型不限",
"name_en": "Any type"
},
{
"id": 1,
"name": "低粉爆款",
"name_en": "Low-follower hit"
},
{
"id": 2,
"name": "高完播率",
"name_en": "High completion rate"
},
"… 2 more items in the full response"
]
}
}
]示例
选择一个示例,将其输入和结果加载到 playground 中。
API README
Douyin Video Search Filter Options API
Returns the filter options that Douyin video search accepts. The request takes no input. Each option has an id, a Chinese name, and an English name_en.
Use cases
- Fill filter dropdowns for category, publish time, duration and video type in a Douyin video search screen.
- Check that a category, date range, duration or label
idis valid before you send a video search request. - Map Chinese filter names to English labels for a bilingual interface.
- Cache the option lists once and reuse them when you build search queries.
Request
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/item-filter-options" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"categories": [
{
"id": "0",
"name": "垂类不限",
"name_en": "All categories"
}
],
"date_types": [
{
"id": 0,
"name": "发布时间不限",
"name_en": "Any publish time"
}
],
"duration_types": [
{
"id": 0,
"name": "时长不限",
"name_en": "Any duration"
}
],
"label_types": [
{
"id": 0,
"name": "类型不限",
"name_en": "Any type"
}
]
}
Response fields
| Field | Meaning |
|---|---|
categories[].id | Category ID. The value 0 means all categories. Pass this ID when you filter by category. |
categories[].name / categories[].name_en | Category name in Chinese and in English, for example 剧情 and Drama. |
date_types[].id | Publish time filter value. It is a number such as 0, 3 or 7. The English names suggest 0 means any time and the others mean the last 3 or 7 days. |
date_types[].name / date_types[].name_en | Publish time label in Chinese and in English, for example Last 7 days. |
duration_types[].id | Video duration filter value. For example 1 is 0-15 seconds and 6 is 15-60 seconds. 0 means any duration. |
duration_types[].name / duration_types[].name_en | Duration label in Chinese and in English, for example 15-60 seconds. |
label_types[].id | Video type filter value. For example 1 is low-follower hit and 2 is high completion rate. 0 means any type. |
label_types[].name / label_types[].name_en | Video type label in Chinese and in English. |
Notes
- Category
idvalues are strings, for example"601". Theidvalues indate_types,duration_typesandlabel_typesare numbers. - Use the
idvalues from this response as filter values in the video search request. Call Douyin Index Video Search to run the search. - Use Douyin Video Search Suggestions to find search terms.
Pricing
$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/item-filter-options" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. 身份验证
将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
3. 参数
此 API 尚未发布参数 Schema。
4. 响应
这是该 API 保存的示例响应;查看时不会发起实时请求。
[
{
"data": {
"categories": [
{
"id": "0",
"name": "垂类不限",
"name_en": "All categories"
},
{
"id": "601",
"name": "剧情",
"name_en": "Drama"
},
{
"id": "602",
"name": "明星",
"name_en": "Celebrity"
},
"… 33 more items in the full response"
],
"date_types": [
{
"id": 0,
"name": "发布时间不限",
"name_en": "Any publish time"
},
{
"id": 3,
"name": "近3天",
"name_en": "Last 3 days"
},
{
"id": 7,
"name": "近7天",
"name_en": "Last 7 days"
},
"… 1 more items in the full response"
],
"duration_types": [
{
"id": 0,
"name": "时长不限",
"name_en": "Any duration"
},
{
"id": 1,
"name": "0-15秒",
"name_en": "0-15 seconds"
},
{
"id": 6,
"name": "15-60秒",
"name_en": "15-60 seconds"
},
"… 3 more items in the full response"
],
"label_types": [
{
"id": 0,
"name": "类型不限",
"name_en": "Any type"
},
{
"id": 1,
"name": "低粉爆款",
"name_en": "Low-follower hit"
},
{
"id": 2,
"name": "高完播率",
"name_en": "High completion rate"
},
"… 2 more items in the full response"
]
}
}
]探索更多
相关 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 |
问题
常见问题
如何使用 Douyin Video Search Filter Options API?
向 https://api.sandbase.ai/v1/api/douyin/index/item-filter-options 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
Douyin Video Search Filter Options API 的价格是多少?
每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
Douyin Video Search Filter Options API 接受哪些参数?
Douyin Video Search Filter Options 不接受输入参数;请发送空的 JSON 请求体。
Douyin Video Search Filter Options API 返回什么?
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
我需要 Douyin 开发者账户或 API key 吗?
不需要。Douyin Video Search Filter Options 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Douyin API 访问权限。
