Fetch video search V5

Browse registered social-data routes across platforms, then dive into detailed reference docs

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_v5

Price: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 headerAuthorization: Bearer YOUR_API_TOKEN

Request 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)
NameLocation / typeRequiredNotesExample
keywordbody / stringNo
  • 搜索关键词 / Search keyword
offsetbody / integerNo
  • 翻页游标,从上一次响应的 data.pagination.offset 获取,首次请求传 0 / Offset cursor for pagination, obtained from data.pagination.offset of the last response, 0 for the first request
pagebody / integerNo
  • 页码,取值 1~200,首次请求传 1,之后每次加 1 / Page number, 1-200, start with 1 and increment by 1 each time
search_idbody / stringNo
  • 搜索ID,从上一次响应的 data.pagination.search_id 获取,首次请求传空字符串 / Search ID, obtained from data.pagination.search_id of the last response, empty for the first request
backtracebody / stringNo
  • 翻页回溯标识,从上一次响应的 data.pagination.backtrace 获取,首次请求传空字符串 / Backtrace, obtained from data.pagination.backtrace of the last response, empty for the first request

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)
FieldTypeNotesExample
configunknown
  • Search configuration returned by the data service (passed through)
items[]unknown
  • Video list (already unwrapped by card type)
aweme_idunknown
  • Video ID
descunknown
  • Video description
create_timeunknown
  • Publish timestamp
authorunknown
  • Author info (uid, sec_uid, nickname, avatar_thumb.url_list, etc.)
videounknown
  • Playback info (play_addr.url_list, cover.url_list, duration, etc.)
statisticsunknown
  • Interaction data (digg_count, comment_count, share_count, play_count)
share_urlunknown
  • External share link
paginationunknown
  • Pagination info
offsetunknown
  • Offset cursor for the next page (pass back as-is)
cursorunknown
  • Same as offset
search_idunknown
  • Search ID for the next page (pass back as-is)
backtraceunknown
  • Backtrace for the next page (pass back as-is)
has_moreunknown
  • Whether more results are available (1=Yes, 0=No)
next_pageunknown
  • Next page number (null when there are no more results)

Common response envelope

Common fields for response status, request identifiers and data

FieldTypeNotesExample
codeinteger
  • HTTP status code | HTTP状态码
request_idstring | null
  • Unique request identifier | 唯一请求标识符
messagestring
  • Response message (EN-US) | 响应消息 (English)
message_zhstring
  • Response message (ZH-CN) | 响应消息 (中文)
supportstring
  • Support message | 支持消息
timestring
  • The time the response was generated | 生成响应的时间
time_stampinteger
  • The timestamp the response was generated | 生成响应的时间戳
time_zonestring
  • The timezone of the response time | 响应时间的时区
docsstring | null
  • Link to the API Swagger documentation for this endpoint | 此端点的 API Swagger 文档链接
cache_messagestring | null
  • Cache message (EN-US) | 缓存消息 (English)
cache_message_zhstring | null
  • Cache message (ZH-CN) | 缓存消息 (中文)
cache_urlstring | null
  • The URL to access the cached result | 访问缓存结果的 URL
routerstring
  • The endpoint that generated this response | 生成此响应的端点
paramsunknown
  • The parameters used in the request | 请求中使用的参数
dataunknown | null
  • The response data | 响应数据

Errors and limits

The docs cover not only success responses, but also auth failures, rate limits, and data-service errors

CodeMeaningNotes
200SuccessThe request completed and returned the standard response envelope.
401UnauthorizedThe token is missing, invalid, or no longer active.
429Rate limitedThe request exceeded token, user, or plan-level throughput limits.
502Service unavailableThe gateway could not obtain a healthy result. Retry in a moment.
Next steps

New to the API? Read the guide or explore examples