视频搜索
按关键词搜索微信视频号的视频类别,支持页码、偏移量和连续状态控制。用于获取分类视频结果并继续加载更多页面。
参数
| 参数 | 必填 | 类型 | 说明 | 示例 | 可选值 |
|---|---|---|---|---|---|
keyword |
必填 | string | 分类微信视频号视频结果的搜索关键词。 | 咖啡 |
— |
current_page |
可选 | integer | 微信视频号网页搜索分页的当前页码,从1开始。 | 1 |
— |
offset |
可选 | integer | 上一次微信视频号搜索响应返回的搜索结果偏移量。第一页使用0。 | 0 |
— |
cookies_buffer |
可选 | string | 由上一个微信视频号网页搜索响应返回的不透明分页状态。第一页请留空。对于此 POST 接口,请以 application/x-www-form-urlencoded 表单体形式发送。 | — | — |
代码示例
curl -G "https://api.mofa-ai.com/v1/weixin_channels/search_video_v2" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'keyword=咖啡' \
--data-urlencode 'current_page=1' \
--data-urlencode 'offset=0'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/weixin_channels/search_video_v2",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"keyword": "咖啡",
"current_page": "1",
"offset": "0",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/weixin_channels/search_video_v2");
url.search = new URLSearchParams({
keyword: "咖啡",
current_page: "1",
offset: "0",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
在线试用
登录后可以在这里直接调用此接口,按价格从余额扣费,失败不收费。新账户赠送 $0.50 试用额度。
响应示例
采集于 2026-11-07,耗时 1426 ms · 请求参数 {"offset": "0", "keyword": "咖啡", "current_page": "1"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "weixin_channels.search_video_v2",
"cost_usd": 0.3,
"data": {
"code": 0,
"data": {
"ret": 0,
"data": [
{
"type": 107,
"subBoxes": [
{
"type": 84,
"boxID": "0x80000000000-1-18426117570800815275",
"count": 1,
"items": [
{
"docID": "finderobjv0pewDB8CUZOjjqSwq6c78lrizzatH7/hvCrHJTzzXx3c=",
"image": "https://findermp.video.qq.com/251/20304/stodownload?encfilekey=2fG3V4WwQPlMBiclYa9hDzUZ0so4xojK6liahicPB54Wh6dCIk6Ggadnu…",
"title": "#<em class=\"highlight\">咖啡</em>续命#打工人#AI制作#AI小白制作视频\n本尊经常<em class=\"highlight\">咖啡</em>续命[破涕为笑]\n不喝<em class=\"highlight\">咖啡<…",
"width": 1080,
"height": 1920,
"source": {
"title": "笨笨不笨Benben",
"iconUrl": "https://wx.qlogo.cn/finderhead/ver_1/qmVVjumROibJt7Gv92iaf4nrOVdcPrAVoKiadOu9LEibZwRNuqAdQAnuI3lyiaosVqsDYq7ZXLUqc4HWtic…"
},
"pubTime": 1794095518,
"dateTime": "6分钟前",
"duration": "00:15",
"exportId": "export/UzFfBgAAxLCASFMzPVeLk8zT4DCKtk3R3KfF7vywjz-CJofK4Q",
"jumpInfo": {
"extInfo": "{\"behavior\":[\"report_feed_read\"],\"encryptedObjectId\":\"export/UzFfBgAAxLCASFMzPVeLk8zT4DCKtk3R3KfF7vywjz-CJofK4Q\",\"feedFo…",
"jumpType": 9
},
"reportId": "finderobjv0pewDB8CUZOjjqSwq6c78lsNJK6lgXBe/YD0LYgkHGsw=",
"showType": 1,
"videoUrl": "https://findermp.video.qq.com/251/20302/stodownload?encfilekey=Cvvj5Ix3eewQsFvYyicia1J157VPhvyT258d0xLgow2rT5nMiadzXkVxe…",
"hashDocID": "18426117570800815275",
"noPlayIcon": true,
"report_extinfo_str": "%7B%22friend_like%22%3A0%2C%22duration%22%3A15%2C%22upload_time%22%3A1794095518%2C%22like_cnt%22%3A0%2C%22thumb_cnt%22%3…"
}
],
"boxPos": 1,
"subType": 1,
"real_type": 18874368,
"totalCount": 251,
"boxMergeTag": 0,
"boxPosMerge": 1,
"boxMergeType": 107,
"boxMergeValue": 2,
"useNativeRender": false
},
"… +11"
]
}
],
"lang": "zh_CN",
"query": "咖啡",
"offset": 12,
"cookies": "{\"box_offset\":0,\"businessType\":18874368,\"clm_box_offset\":1,\"clm_sub_box_offset\":12,\"cookies_buffer\":\"Us0CCGIQARgHIgblkpb…",
"category": [
{
"type": 0,
"word": "全部"
},
"… +16"
],
"isDivide": 0,
"searchID": "1794095918744113312",
"sidedata": [
{
"type": 24,
"boxID": "0x800-9-0",
"count": 10,
"items": [
{
"word": "咖啡排名榜前10名",
"docID": "咖啡排名榜前10名",
"jumpType": 15,
"reportId": "%E5%92%96%E5%95%A1%E6%8E%92%E5%90%8D%E6%A6%9C%E5%89%8D10%E5%90%8D:hint:364194",
"parentType": 20,
"report_iteminfo_list_str": "%E5%92%96%E5%95%A1%E6%8E%92%E5%90%8D%E6%A6%9C%E5%89%8D10%E5%90%8D:hint:364194"
},
"… +9"
],
"title": "相关搜索",
"subType": 9,
"real_type": 2048,
"resultType": 0,
"useNativeRender": false,
"mixerCommonContext": "{\"mixerrank_list\":[],\"feedrank_list\":[],\"commentrank_list\":[]}"
}
],
"direction": 2,
"timeStamp": 1794095916,
"experiment": [
{
"key": "mmsearch_shopping_cart_entry",
"value": "1"
},
"… +5"
],
"isHomePage": 0,
"pageNumber": 1,
"resultType": 0,
"slideFilter": {
"type": 87,
"boxID": "0x2000000000-21-",
"isHold": 1,
"filters": [
{
"type": 1,
"title": "",
"column": 5,
"display": 1,
"options": [
{
"type": 1,
"title": "不限",
"paramKey": "FinderTabAdvanceSearch",
"reportId": "FinderTabAdvanceSearch_0:filter_option:1841071563",
"paramValue": "0"
},
"… +4"
],
"paramKey": "FinderTabAdvanceSearch",
"allowEmpty": false,
"minCollapsedNum": 0
}
],
"showType": 2
},
"continueFlag": 1,
"isAutoPlayVideo": 1,
"enableQuestionClosely": false
},
"message": null,
"requestId": "ffe89ef676934297bd5f1e71cab48806",
"recordTime": "2026-11-08T07:58:36.182890772",
"requestParams": {
"body": {
"offset": "0",
"keyword": "咖啡",
"currentPage": "1"
},
"query": {}
}
}
}