搜视频号视频(时长/排序/时间筛选)/WeChat Channels Video Search
WeChat Searchapi
About
搜视频号视频(时长/排序/时间筛选)/WeChat Channels Video Search
Documentation
搜视频号视频(时长/排序/时间筛选)/WeChat Channels Video Search
[中文]
用途:
- 专搜视频号视频(
video垂类),并支持搜索结果页里的「时长」「不限/最新/最热」排序与「时间」下拉。 - 等价于综合搜索
/fetch_search(business_type=video)再叠加筛选,筛选项均实测有效。 - 价格:0.01$/次
- ⏱️ 由于微信服务器原因,本接口响应较慢,请将客户端请求超时(timeout)设置为 30 秒;timeout 设置过小会造成已扣费但收不到响应的情况。
- ⚠️ 大整数 ID 精度:响应中的
docID/feedNonceId等为 64 位大整数,超出 JavaScript 安全整数范围(2^53-1)。请始终以字符串方式接收 / 传递这类 ID(解析 JSON 用 json-bigint 或按文本取值),勿让其经过 JSNumber。Swagger UI 文档页对超大整数会末位舍入显示,属正常现象,不影响接口实际返回的数据。
参数:
- keyword: 搜索关键词(去空白后 1-100 字)。示例
美食 - duration: 可选,默认
all。时长档(video 垂类专属)—— 不限all/0 / 短(<5min)short/1 / 中(5-10min)medium/2 / 长(20min+)long/3,字符串键或整数均可,非法值报错(400)。 - sort: 可选,默认
default。排序 —— 不限(相关性)default/0 / 最新(发布时间降序)latest/1 / 最热(点赞降序)hot/2,字符串键或整数均可,非法值报错(400)。 - publish_time: 可选,默认
all。发布时间 —— 不限all/0 / 最近一天day/1 / 最近七天week/2 / 最近半年half_year/3,字符串键或整数均可,非法值报错(400)。 - offset: 可选,默认 0(>=0)。首页传
0;翻页请用cursor(只传 offset 无效)。 - cursor: 可选。翻页游标,用法同综合搜索
/fetch_search。首页留空;翻页时把上一页响应返回的cursor原样传回(须同时重复上一页的duration/sort/publish_time)。 - raw: 可选,默认 True。True=原始搜索响应;False=精简解析。
返回:
- 视频号视频搜索结果列表(结构同综合搜索的
video垂类)
典型链路:
- 💡 排序下拉里的「账号」选项不是排序,而是切到公众号垂类 —— 用综合搜索
/fetch_search(business_type=account)。 - 💡 拿视频号详情(媒体下载地址 / decode_key):视频结果项不直接含媒体,只给
exportId(+jumpInfo.extInfo.feedNonceId)。要下载 / 解密:取exportId→ 走视频号 V2 接口/api/v1/wechat_channels/v2/fetch_video_detail(传export_id)拿media(url/url_token/decode_key)和明文username。结果字段与响应结构说明同/fetch_search。
[English]
Purpose:
- Search WeChat Channels videos specifically (
videovertical), with the result page's "duration" filter, "relevance/newest/most-liked" sort, and "time" dropdown. - Equivalent to universal search
/fetch_search(business_type=video) plus filters; all filters are verified to work. - Price: $0.01 per request
- ⏱️ Due to WeChat server latency, this endpoint responds slowly; please set your client request timeout to 30 seconds — a timeout that is too small may result in being billed without receiving the response.
- ⚠️ Large-integer ID precision: IDs such as
docID/feedNonceIdin the response are 64-bit big integers beyond JavaScript's safe-integer range (2^53-1). Always receive / pass such IDs as strings (parse JSON with json-bigint or read them as text), never through JSNumber. Swagger UI rounds the trailing digits of huge integers in its docs view — this is expected and does not affect the actual data returned by the API.
Parameters:
- keyword: Search keyword (1-100 chars after trimming). E.g.
美食 - duration: Optional, default
all. Duration tier (Channels video only) —all/0 /short/1 (<5min) /medium/2 (5-10min) /long/3 (20min+); string key or integer, invalid values rejected (400). - sort: Optional, default
default. Sort —default/0 (relevance) /latest/1 (newest) /hot/2 (most liked); string key or integer, invalid values rejected (400). - publish_time: Optional, default
all. Publish time —all/0 /day/1 /week/2 /half_year/3; string key or integer, invalid values rejected (400). - offset: Optional, default 0 (>=0). Pass
0for the first page; usecursorto paginate (offset alone does not work). - cursor: Optional. Pagination cursor, same usage as universal search
/fetch_search. Leave empty for the first page; for the next page pass back thecursorfrom the previous response (repeat the sameduration/sort/publish_time). - raw: Optional, default True. True=raw search response; False=simplified parsing.
Return:
- Channels video search result list (same structure as the
videovertical of universal search)
Typical chains:
- 💡 The "account" option in the sort dropdown is not a sort — it switches to the official-account vertical; use universal search
/fetch_search(business_type=account). - 💡 To get Channels video detail (media download address / decode_key): video result items do not contain media directly — only
exportId(+jumpInfo.extInfo.feedNonceId). To download / decrypt: takeexportId→ call the Channels V2 endpoint/api/v1/wechat_channels/v2/fetch_video_detail(passexport_id) to getmedia(url/url_token/decode_key) and the plainusername. Result fields and response structure are the same as/fetch_search.
Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.
Try 搜视频号视频(时长/排序/时间筛选)/WeChat Channels Video Search
Test this model in the Sandbase Playground with your own prompts.
Open in Playground