API DocsdouyinSearchFetch video search V5
Fetch video search V5
What this API is for
- Search videos by keyword (V5), returning video content only.
- Pagination parameters match general search V3, and the response structure is unified
- (config + items + pagination)
POST
/openapi/api/v1/douyin/search/fetch_video_search_v5Price:Price unavailable · Actual charges depend on free quota and account discounts
Authentication
All API requests require a Bearer project token in the Authorization header
Authorization header
Authorization: Bearer YOUR_API_TOKENRequest parameters
- keyword: Search keyword, e.g., "cat"
- offset: Offset cursor (0 for the first request)
- page: Page number, 1-200 (1 for the first request)
- search_id: Search ID (empty for the first request)
- backtrace: Backtrace identifier (empty for the first request)
| Name | Location / type | Required | Notes | Example |
|---|---|---|---|---|
| keyword | body / string | No |
| |
| offset | body / integer | No |
| |
| page | body / integer | No |
| |
| search_id | body / string | No |
| |
| backtrace | body / string | No |
|
Request examples
curl -X POST "https://api.trmesh.com/openapi/api/v1/douyin/search/fetch_video_search_v5" \ -H "Authorization: Bearer sdc_your_project_token"
Response fields
- config: Search configuration returned by the data service (passed through)
- items[]: Video list (already unwrapped by card type)
- aweme_id: Video ID
- desc: Video description
- create_time: Publish timestamp
- author: Author info (uid, sec_uid, nickname, avatar_thumb.url_list, etc.)
- video: Playback info (play_addr.url_list, cover.url_list, duration, etc.)
- statistics: Interaction data (digg_count, comment_count, share_count, play_count)
- share_url: External share link
- pagination: Pagination info
- offset: Offset cursor for the next page (pass back as-is)
- cursor: Same as offset
- search_id: Search ID for the next page (pass back as-is)
- backtrace: Backtrace for the next page (pass back as-is)
- has_more: Whether more results are available (1=Yes, 0=No)
- next_page: Next page number (null when there are no more results)
| Field | Type | Notes | Example |
|---|---|---|---|
| config | unknown |
| |
| items[] | unknown |
| |
| aweme_id | unknown |
| |
| desc | unknown |
| |
| create_time | unknown |
| |
| author | unknown |
| |
| video | unknown |
| |
| statistics | unknown |
| |
| share_url | unknown |
| |
| pagination | unknown |
| |
| offset | unknown |
| |
| cursor | unknown |
| |
| search_id | unknown |
| |
| backtrace | unknown |
| |
| has_more | unknown |
| |
| next_page | unknown |
|
Common response envelope
Common fields for response status, request identifiers and data
| Field | Type | Notes | Example |
|---|---|---|---|
| code | integer |
| |
| request_id | string | null |
| |
| message | string |
| |
| message_zh | string |
| |
| support | string |
| |
| time | string |
| |
| time_stamp | integer |
| |
| time_zone | string |
| |
| docs | string | null |
| |
| cache_message | string | null |
| |
| cache_message_zh | string | null |
| |
| cache_url | string | null |
| |
| router | string |
| |
| params | unknown |
| |
| data | unknown | null |
|
Errors and limits
The docs cover not only success responses, but also auth failures, rate limits, and data-service errors
| Code | Meaning | Notes |
|---|---|---|
| 200 | Success | The request completed and returned the standard response envelope. |
| 401 | Unauthorized | The token is missing, invalid, or no longer active. |
| 429 | Rate limited | The request exceeded token, user, or plan-level throughput limits. |
| 502 | Service unavailable | The gateway could not obtain a healthy result. Retry in a moment. |
Next steps
New to the API? Read the guide or explore examples