Video Search
Searches WeChat Channels videos by keyword with publish-time, sort, page, offset, and continuation-state controls. Use it to find recent or ordered video results and continue web-search pages.
Parameters
| Name | Required | Type | Description | Example | Allowed values |
|---|---|---|---|---|---|
keyword |
Required | string | Search keyword for WeChat Channels video results. | 咖啡 |
— |
publish_time_type |
Optional | string | WeChat Channels video search publish time filter | ALL |
ALLONE_DAYSEVEN_DAYSHALF_YEAR |
sort_type |
Optional | string | WeChat Channels video search sort type | COMPREHENSIVE |
COMPREHENSIVELATESTHOT |
current_page |
Optional | integer | Current page number starting from 1 for WeChat Channels web search pagination. | 1 |
— |
offset |
Optional | integer | Search result offset returned by the previous WeChat Channels search response. Use 0 for the first page. | 0 |
— |
cookies_buffer |
Optional | string | Opaque pagination state returned by the previous WeChat Channels web search response. Leave it empty for the first page. For this POST endpoint, send it in an application/x-www-form-urlencoded form body. | — | — |
Code samples
curl -G "https://api.mofa-ai.com/v1/weixin_channels/search_video_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'keyword=咖啡' \
--data-urlencode 'publish_time_type=ALL' \
--data-urlencode 'sort_type=COMPREHENSIVE' \
--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_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"keyword": "咖啡",
"publish_time_type": "ALL",
"sort_type": "COMPREHENSIVE",
"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_v1");
url.search = new URLSearchParams({
keyword: "咖啡",
publish_time_type: "ALL",
sort_type: "COMPREHENSIVE",
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);
Try it
Sign in to call this endpoint from this page. Successful calls are billed to your balance, failed calls are free, and new accounts get $0.50 of trial credit.
Example response
Captured 2026-11-07, took 1503 ms · Request parameters {"offset": "0", "keyword": "咖啡", "sort_type": "COMPREHENSIVE", "current_page": "1", "publish_time_type": "ALL"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "weixin_channels.search_video_v1",
"cost_usd": 0.16,
"data": {
"code": 0,
"data": {
"ret": 0,
"data": [
{
"type": 107,
"subBoxes": [
{
"type": 84,
"boxID": "0x80000000000-1-12251992366811026810",
"count": 1,
"items": [
{
"docID": "finderobjv0UZvOHZy3PIUC6Beq83QDzMd4/vJvDpp5roXguHcuCa4=",
"image": "https://findermp.video.qq.com/251/20304/stodownload?encfilekey=KGDRibp2wkicJUJPI5GbfFfuaXGWZoeqES7X1jiciadL6knrUmYy6iaSiaxmnN0mFTiaKKCxPkjDUIGTEkBfQMyLOJU6g&hy=SH&idx=1&m=&scene=2&uzid=1&wxampicformat…",
"title": "<em class=\"highlight\">咖啡</em>对心脏好还是坏?结果可能出乎意料...#健康科普",
"source": {
"mark": [
"https://dldir1v6.qq.com/weixin/checkresupdate/auth_icon_level3_2e2f94615c1e4651a25a7e0446f63135.png"
],
"title": "心中有术",
"iconUrl": "https://wx.qlogo.cn/finderhead/ver_1/Jz1X0xDe7AUAOA42VQumiboiaTJVFbnks1XYUtbUycoZErC3NeZRY9OFoKMAYngZeRb2lVkMiacFsxS5m2cwicf2bw/132"
},
"likeNum": "2.2万",
"pubTime": 1793440802,
"dateTime": "8天前",
"duration": "05:11",
"exportId": "export/UzFfBgAAxKujHGYvAnaBk8zT4DCKRLu2fgdioPTQ5lWedNCFFw",
"jumpInfo": {
"extInfo": "{\"behavior\":[\"report_feed_read\"],\"encryptedObjectId\":\"export/UzFfBgAAxKujHGYvAnaBk8zT4DCKRLu2fgdioPTQ5lWedNCFFw\",\"feedFocusChangeNotify\":true,\"feedNonceId\":\"8827297063702111818\",\"getRelatedList\":true,…",
"jumpType": 9
},
"reportId": "finderobjv0UZvOHZy3PIUC6Beq83QDzIpT8hUKksAYsLgC1TlioBE=",
"showType": 4,
"videoUrl": "https://findermp.video.qq.com/251/20302/stodownload?encfilekey=rgjNqbibdAo1ok7tECYzPBiauTviaIQiaLpribbmJU1noSfKjAr71k5vb1MMC31rwXXx6tjHnmo9ArGiaWPEYmPhIK4Q&bizid=1023&dotrans=0&hy=SH&idx=1&m=&uzid=7a1…",
"hashDocID": "12251992366811026810",
"report_extinfo_str": "%7B%22friend_like%22%3A0%2C%22duration%22%3A311%2C%22upload_time%22%3A1793440802%2C%22like_cnt%22%3A22642%2C%22thumb_cnt%22%3A38765%2C%22forward_cnt%22%3A92828%2C%22comment_cnt%22%3A2687%2C%22rele_lev…"
}
],
"boxPos": 1,
"subType": 1,
"real_type": 18874368,
"resultType": 1,
"totalCount": 192,
"boxMergeTag": 0,
"boxPosMerge": 1,
"boxMergeType": 107,
"boxMergeValue": 1,
"useNativeRender": false
},
{
"type": 84,
"boxID": "0x80000000000-1-8493429612082299832",
"count": 1,
"items": [
{
"docID": "finderobjv0hhpisu/oC9b0wY0oPaGW8ym2LZQjqKwSOLQAfOStTbo=",
"image": "https://findermp.video.qq.com/251/20304/stodownload?encfilekey=KGDRibp2wkicKEoKc5wwFSzgo3Ciaa9VYh7DmwZcg2YdDj2cKxvZDjS3Nicnwr7ODapUGibFF4DwHAkEK8DicdItPs1A&hy=SZ&idx=1&m=&scene=2&uzid=1&wxampicformat=…",
"isHot": true,
"title": "原来<em class=\"highlight\">咖啡</em>是隐形“护肝神器”!肝硬化肝癌风险明显下降,研究证实:每天1~2杯有助护肝!(编辑:黄丹宁;来源:人民日报)#喝<em class=\"highlight\">咖啡</em> #肝硬化 #肝癌 #喝<em class=\"highlight\">咖啡</em>的好处 #喝<em class=\"highlight\">咖啡</em>主打一个养生",
"source": {
"mark": [
"http://dldir1.qq.com/weixin/checkresupdate/internet_news_media_auth_icon_38887ee9f6fe4639904638b28745b3f8.png"
],
"title": "南海融媒",
"iconUrl": "https://wx.qlogo.cn/finderhead/ver_1/ytMLk4K6D5tzErTymLY5BPN4rLMbCiboSRHJfH0P89qxIo8pcVFaSVR3HEYkXHgDfpCVEdBx9wRC9pvmaGc9n7uic00GcgtoJ1ibsTGfk1trNc/132"
},
"likeNum": "1.2万",
"pubTime": 1791625385,
"dateTime": "29天前",
"duration": "00:35",
"exportId": "export/UzFfBgAAxJeBKFsxcXysk8zT4DCK9mWrH5nDWNrQHTS2f4rSmA",
"jumpInfo": {
"extInfo": "{\"behavior\":[\"report_feed_read\"],\"encryptedObjectId\":\"export/UzFfBgAAxJeBKFsxcXysk8zT4DCK9mWrH5nDWNrQHTS2f4rSmA\",\"feedFocusChangeNotify\":true,\"feedNonceId\":\"3520170439868413090\",\"getRelatedList\":true,…",
"jumpType": 9
},
"reportId": "finderobjv0hhpisu/oC9b0wY0oPaGW81m5RLlATi6wygwEn+vDKEw=",
"showType": 4,
"videoUrl": "https://findermp.video.qq.com/251/20302/stodownload?encfilekey=rgjNqbibdAo0Z4aKvcym3sIZokYrYmu9HbBRYdTXls1jNkjDpwEbANKbW2R8yhfScB6iczehXBkicRvNUEljibtAMQ&bizid=1023&dotrans=0&hy=SH&idx=1&m=&uzid=7a166…",
"hashDocID": "8493429612082299832",
"report_extinfo_str": "%7B%22friend_like%22%3A0%2C%22duration%22%3A35%2C%22upload_time%22%3A1791625385%2C%22like_cnt%22%3A12863%2C%22thumb_cnt%22%3A12493%2C%22forward_cnt%22%3A113077%2C%22comment_cnt%22%3A1417%2C%22rele_lev…"
}
],
"boxPos": 2,
"subType": 1,
"real_type": 18874368,
"resultType": 1,
"totalCount": 192,
"boxMergeTag": 0,
"boxPosMerge": 1,
"boxMergeValue": 1,
"useNativeRender": false
},
"… +10"
]
}
],
"lang": "zh_CN",
"query": "咖啡",
"offset": 12,
"cookies": "{\"box_offset\":12,\"businessType\":2,\"clm_box_offset\":1,\"clm_sub_box_offset\":12,\"cookies_buffer\":\"UsgECGIQABgAIgblkpbllaEytgMweDgwMDAwMDAwMDAwLTEtMTIyNTE5OTIzNjY4MTEwMjY4MTA7MHg4MDAwMDAwMDAwMC0xLTg0OTM0M…",
"category": [
{
"type": 0,
"word": "全部",
"selected": 1
},
{
"type": 7,
"word": "视频号"
},
"… +14"
],
"isDivide": 1,
"searchID": "1794095918622122171",
"sidedata": null,
"direction": 2,
"timeStamp": 1794095915,
"experiment": [
{
"key": "mmsearch_live_double_auto_play_exp",
"value": "1"
},
{
"key": "mmsearch_shopping_cart_entry",
"value": "1"
},
"… +5"
],
"isHomePage": 1,
"pageNumber": 2,
"resultType": 0,
…
Truncated for display; the full response is longer.