Account Basic Info
Retrieves basic profile information for a WeChat Official Account by account name. Use it to identify or enrich a known account before article, ownership, or publishing research.
Parameters
| Name | Required | Type | Description | Example | Allowed values |
|---|---|---|---|---|---|
name |
Required | string | WeChat Official Account name used to fetch basic profile information. | 人民日报 |
— |
Code samples
curl -G "https://api.mofa-ai.com/v1/weixin/get_account_basic_info_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'name=人民日报'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/weixin/get_account_basic_info_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"name": "人民日报",
},
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/get_account_basic_info_v1");
url.search = new URLSearchParams({
name: "人民日报",
});
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 1159 ms · Request parameters {"name": "人民日报"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "weixin.get_account_basic_info_v1",
"cost_usd": 0.2,
"data": {
"code": 0,
"data": {
"data": {
"biz": "MjM5MjAxNDM4MA==",
"desc": "参与、沟通、记录时代。",
"name": "人民日报",
"type": "订阅号",
"wxid": "rmrbwx",
"avatar": "http://mmbiz.qpic.cn/mmbiz_png/xrFYciaHL08D1hiaVU0brP9YwQH1wFm9D9AG7oAVaNE8RzGiaKekViaIovvgsjOicfxXcPUPiahpdZ1U1nndyYd4pP0w/0?wx_fmt=png"
}
},
"message": null,
"requestId": "b608b6883f9a440ea49ca459e5e04b17",
"recordTime": "2026-11-08T07:58:34.826636939",
"requestParams": {
"body": null,
"query": {
"name": "人民日报"
}
}
}
}