Account Search
Searches WeChat Official Accounts by keyword with page, offset, and continuation-state pagination. Use it to browse broader account results for creator, brand, or publisher discovery.
Parameters
| Name | Required | Type | Description | Example | Allowed values |
|---|---|---|---|---|---|
keyword |
Required | string | Search keyword for WeChat Official Account web search. | 咖啡 |
— |
current_page |
Optional | integer | Current page number starting from 1 for WeChat web search pagination. | 1 |
— |
offset |
Optional | integer | Search result offset returned by the previous response. Use 0 for the first page. | 0 |
— |
cookies_buffer |
Optional | string | Opaque pagination state returned by the previous WeChat 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/search_account_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/search_account_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/search_account_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);
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 1284 ms · Request parameters {"offset": "0", "keyword": "咖啡", "current_page": "1"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "weixin.search_account_v2",
"cost_usd": 0.3,
"data": {
"code": 0,
"data": {
"ret": 0,
"data": [
{
"type": 109,
"subBoxes": [
{
"type": 91,
"boxID": "split-0x1-3-2883898040",
"count": 1,
"items": [
{
"desc": "获得更多<em class=\"highlight\">咖啡</em>知识,体验更多精彩活动,快加入微信里的星巴克第三生活空间吧。",
"docID": "2883898040",
"style": 0,
"title": "星巴克中国",
"source": {
"auth": 1,
"title": "星巴克企业管理(中国)有限公司",
"authIconUrl": "https://search.wxqcloud.qq.com/t/fed_upload/79bfc7bc6766e841b2bfa1e6b61eba10/company_auth.svg"
},
"iconUrl": "http://mmbiz.qpic.cn/mmbiz_png/bFMSeXAdzwYGjD0JFrISXwqxA9d3L9fudcUYJKeCU2URW3G7ujbugFAcUXolaPuUcJHJHAeNxBiamtPuAG1Bucw/0…",
"service": {
"serviceList": [
{
"desc": "",
"name": "外送点餐",
"cookie": "type=20971520; busid=mmsearch; domain=*;; sub_type=0; busid=mmsearch; domain=*;; scene=98; busid=mmsearch; domain=*;; is…",
"jumpType": 2,
"reportId": "6686958842405782553:menu:938138",
"subScene": "2:20971520:0:98:0:6686958842405782553:::0",
"userName": "gh_4cf4a631a0c9@app",
"weappUrl": "shares/mod/pages/menu?utm_medium=WeChat&utm_source=brandzone&utm_campaign=服务入口-MOD",
"serviceId": "6686958842405782553",
"weappAppid": "wx3dcca19d0aa51755",
"serviceExpandInfo": "&service_expand_info=0|6686958842405782553|0"
}
],
"report_iteminfo_list_str": "6686958842405782553:menu:938138"
},
"foldHide": 0,
"jumpInfo": {
"bizuin": "2883898040",
"bizType": 0,
"iconUrl": "http://mmbiz.qpic.cn/mmbiz_png/bFMSeXAdzwYGjD0JFrISXwqxA9d3L9fudcUYJKeCU2URW3G7ujbugFAcUXolaPuUcJHJHAeNxBiamtPuAG1Bucw/0…",
"jumpType": 1,
"nickName": "星巴克中国",
"userName": "xingbakezhongguo",
"aliasName": "",
"brandFlag": 2,
"brandInfo": "{\"urls\":[{\"title\":\"查看历史消息\",\"title_key\":\"__mp_wording__brandinfo_history_massmsg\",\"url\":\"http://mp.weixin.qq.com/mp/getma…",
"signature": "获得更多咖啡知识,体验更多精彩活动,快加入微信里的星巴克第三生活空间吧。",
"headImgUrl": "http://wx.qlogo.cn/mmhead/Q3auHgzwzM4nMqX0xCicvzGSPWNvab2lJRibekuM0LCxIx14Tib7foIyA/132",
"verifyFlag": 29,
"externalInfo": "{\"VerifySource\":{\"Description\":\"星巴克企业管理(中国)有限公司\",\"IntroUrl\":\"http://mp.weixin.qq.com/mp/getverifyinfo?__biz=Mjg4Mzg5ODA0…",
"headHDImgUrl": "http://wx.qlogo.cn/mmhead/Q3auHgzwzM4nMqX0xCicvzGSPWNvab2lJRibekuM0LCxIx14Tib7foIyA/0"
},
"reportId": "2883898040:biz:799463",
"isTwoLineExpt": false,
"report_extinfo_str": "%7B%22foldHide%22%3A0%7D%0A"
}
],
"title": "公众号",
"boxPos": 1,
"subType": 3,
"real_type": 1,
"resultType": 0,
"totalCount": 203,
"boxMergeTag": 0,
"boxPosMerge": 1,
"boxExtraInfo": null,
"boxMergeType": 109,
"boxMergeValue": 3,
"useNativeRender": false
},
"… +20"
],
"boxExtraInfo": {
"title": "公众号",
"subType": 3,
"real_type": 1,
"resultType": 0
}
}
],
"lang": "zh_CN",
"query": "咖啡",
"offset": 20,
"cookies": "{\"box_offset\":0,\"businessType\":1,\"clm_box_offset\":1,\"clm_sub_box_offset\":21,\"cookies_buffer\":\"UoIBCGIQARgBIgblkpbllaFQAY…",
"category": [
{
"type": 0,
"word": "全部"
},
"… +15"
],
"isDivide": 0,
"searchID": "1794095917968115139",
"direction": 2,
"timeStamp": 1794095914,
"experiment": [
{
"key": "mmsearch_shopping_cart_entry",
"value": "1"
},
"… +4"
],
"isHomePage": 0,
"pageNumber": 1,
"resultType": 0,
"continueFlag": 1,
"isAutoPlayVideo": 1,
"enableQuestionClosely": false
},
"message": null,
"requestId": "255c4e6b97b545cc805d748dc919cf95",
"recordTime": "2026-11-08T07:58:34.571870155",
"requestParams": {
"body": {
"offset": "0",
"keyword": "咖啡",
"currentPage": "1"
},
"query": {}
}
}
}