GET /v1/douyin/search/video_v4
Douyin Video Search API (V4)
stable · 10 credits per success
Search Douyin videos by keyword with sort, publish-time, duration and pagination filters; subsequent pages require the search ID from the previous page. Use it to support content discovery and trend research.
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| page | integer | query | no | 页码(从1开始)。 | 1 |
| keyword | string | query | yes | 搜索关键词。 | 咖啡 |
| duration | string | query | no | 按视频时长筛选。 可用值: - `_0`: 不限时长 - `_1`: 1分钟以内 - `_2`: 1-5分钟 - `_3`: 超过5分钟 | _0 |
| searchId | string | query | no | 搜索ID;页面大于1时需要。使用前一次响应中的 data.business_config.next_page.search_id,当 data.business_config.has_more 为 0 时停止分页。 | demo |
| sortType | string | query | no | 搜索结果排序标准。 可用值: - `_0`:综合 - `_1`:点赞最多 - `_2`:最新 | _0 |
| publishTime | string | query | no | 按视频发布时间范围筛选。 可用值: - `_0`: 不限 - `_1`: 最近24小时 - `_7`: 最近7天 - `_180`: 最近6个月 | _0 |
Response fields
Field dictionary coming soon — the executable panel shows the live shape.
Errors
| code | HTTP | Meaning | Billed |
|---|---|---|---|
| 40001 | 400 | Invalid parameters | no |
| 40102 | 401 | Invalid or revoked API Key | no |
| 40201 | 402 | Insufficient credits | no |
| 40402 | 404 | Resource not found | no |
| 42201 | 422 | Quality gate failed | no |
| 42901 | 429 | Rate limit exceeded | no |
| 50401 | 504 | Upstream timeout | no |
| 50201 | 502 | Upstream error | no |
Billing
Success costs 10 credits. Any failure — including a 200 that fails the quality gate — costs 0.