WeChat Channels Video Search v1
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.
/v1/weixin_channels/search_video_v1
$0.16
- Price
- $0.16 per successful call, Failed calls are free
- Endpoint ID
weixin_channels.search_video_v1
Parameters
-
keywordstring RequiredSearch keyword for WeChat Channels video results.
Example
咖啡 -
publish_time_typestring OptionalWeChat Channels video search publish time filter
Example
ALLAllowed values
ALLONE_DAYSEVEN_DAYSHALF_YEAR -
sort_typestring OptionalWeChat Channels video search sort type
Example
COMPREHENSIVEAllowed values
COMPREHENSIVELATESTHOT -
current_pageinteger OptionalCurrent page number starting from 1 for WeChat Channels web search pagination.
Example
1 -
offsetinteger OptionalSearch result offset returned by the previous WeChat Channels search response. Use 0 for the first page.
Example
0 -
cookies_bufferstring OptionalOpaque 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);
Example response
Request parameters {"offset": "0", "keyword": "咖啡", "sort_type": "COMPREHENSIVE", "current_page": "1", "publish_time_type": "ALL"}
{
"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.
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.
More WeChat Channels endpoints
-
Video Search v2
$0.30Searches the WeChat Channels video category by keyword with page, offset, and continuation-state controls. Use it to retrieve categorized video results and c…
/v1/weixin_channels/search_video_v2
-
Account Search v1
$0.30Searches the WeChat Channels account category by keyword with page, offset, and continuation-state controls. Use it to discover creator accounts through pagi…
/v1/weixin_channels/search_account_v1
-
Account Search v2
$0.20Searches WeChat Channels account-related records by keyword using the direct Channels lookup. Use it to discover creator accounts and related channel objects…
/v1/weixin_channels/search_account_v2
-
Account Search v3
$0.10Looks up a specific WeChat Channels account identity by keyword. Use it to resolve a creator name or account term to the identifier required by account-video…
/v1/weixin_channels/search_account_v3
-
Account Videos
$0.10Retrieves a paginated WeChat Channels account feed by v2Name with continuation-buffer support. Use it to browse videos and other feed entries published by a…
/v1/weixin_channels/get_account_videos_v1
-
Get Bound Channel
$0.20Finds the WeChat Channels account bound to a WeChat Official Account using either its original ID or an article URL. Use it to connect an official account wi…
/v1/weixin_channels/get_bound_channel_v1
-
Video Basic Info
$0.06Resolves a copied WeChat Channels video link, preview URL, or short feed ID to basic video information. Use it to identify a shared Channels video before fur…
/v1/weixin_channels/get_video_basic_info_v1
-
Video Title
$0.03Retrieves lightweight title information for a WeChat Channels video by object ID and optional nonce ID. Use it to identify known video content without reques…
/v1/weixin_channels/get_video_title_v1
-
Export Id Conversion
$0.03Converts an encrypted WeChat Channels export ID from search results into a usable video object identity. Use it to prepare the identifier required by video l…
/v1/weixin_channels/convert_export_id_v1
-
Video Metrics
$0.03Retrieves interaction metrics for a WeChat Channels video by object ID with optional continuation-buffer input. Use it to review engagement for known video c…
/v1/weixin_channels/get_video_metrics_v1
-
Video Comments
$0.03Retrieves first-level comments for a WeChat Channels video by object ID with continuation-buffer pagination. Use it to review audience discussion on known vi…
/v1/weixin_channels/get_video_comment_v1
-
Video Sub Comments
$0.03Retrieves replies under a first-level WeChat Channels video comment using the video and root-comment IDs. Use it to continue a threaded comment discussion wi…
/v1/weixin_channels/get_video_sub_comment_v1