WeChat Official Account live search API
Find WeChat Official Accounts and service accounts for search terms through WeChat Search, closest first, possibly followed by less related ones: original ID, WeChat ID, name, bio, avatar, whether verified, owner, number of original articles. Charged per call; no followers or reads, for estimates of those use wechat_mp.accounts.search. About 8 items a call, 14 at most; $0.0200 per call. Errors and timeouts are not charged; an empty result is charged $0.0200.
Try it
Change a value and the request on the right follows.Sign in to run it; it runs on your own balance. New accounts can try this endpoint free, up to 5 calls.
curl -G "https://api.dataxapi.com/v1/wechat/accounts/search" \ --data-urlencode "query=36氪" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
{
"code": "ok",
"request_id": "86788fb5-4235-48ac-b9c6-23292e637c65",
"data": {
"items": [
{
"id": "1047168840907789",
"username": "nanfeng_0721",
"name": "南边的风",
"bio": "在上海,周末都在山里",
"avatar_url": "https://wx.qlogo.cn/mmhead/xjoBFsBvyPoDjvS4DO1qBnMkqIePSAETki44ma9I/132",
"verified": true
},
// … 10 more
]
},
"page": {
"next_cursor": "c1.Ew51uWdKdB0gdItoicfGl1FUa3rXNGNkJvKajjh3",
"cursor_expires_at": "2026-11-02T12:25:07.000Z",
"has_more": true,
"returned": 11
},
"warnings": [],
"meta": {
"capability": "wechat.accounts.search",
"result_status": "complete",
"fetched_at": "2026-11-02T11:25:07.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"url": "platform",
"created_at": "capability",
"metrics": "capability"
},
"billing": {
"amount": "0.02",
"currency": "USD",
"balance_after": "9.98"
}
}
}From a response recorded 2026-11-02 11:25 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.
Size as sent: 4.1 KB in the standard view (2.3 KB compact, 5.0 KB full).
{
"code": "ok",
"request_id": "28a5b7f5-264d-4dc0-92e6-d6f0bf7894e4",
"data": { "items": [] },
"page": {
"next_cursor": null,
"cursor_expires_at": null,
"has_more": false,
"returned": 0
},
"warnings": [],
"meta": {
"capability": "wechat.accounts.search",
"result_status": "empty",
"fetched_at": "2026-11-02T11:25:07.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"url": "platform",
"created_at": "capability",
"metrics": "capability"
},
"billing": {
"amount": "0.02",
"currency": "USD",
"balance_after": "9.98"
}
}
}From a recording of 2026-11-02 11:25 UTC, edited by hand to show this case. The request ID and balance are made up.
Size as sent: 470 B in the standard view (470 B compact, 470 B full).
curl -G "https://api.dataxapi.com/v1/wechat/accounts/search" \ --data-urlencode "query=36氪" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
# pip install dataxapi from dataxapi import DataXAPI dx = DataXAPI() # reads DATAXAPI_API_KEY result = dx.wechat.accounts.search(query="36氪") print(result["data"]["items"])
// npm i @dataxapi/sdk import { DataXAPI } from "@dataxapi/sdk"; const dx = new DataXAPI(); // reads DATAXAPI_API_KEY const result = await dx.wechat.accounts.search({ query: "36氪" }); console.log(result.data.items);
dataxapi call wechat.accounts.search 'query=36氪'{
"mcpServers": {
"dataxapi": {
"type": "http",
"url": "https://api.dataxapi.com/mcp",
"headers": {
"Authorization": "Bearer ${DATAXAPI_API_KEY}"
}
}
}
}Add this to your MCP client, then ask your agent to call wechat.accounts.search.
Parameters
The account's name, or a keyword. Example: 36氪.
Cursor returned by the previous page. Pass page.next_cursor of the page before, unchanged. Each page is charged as a call of its own.
How much of each item to return. All three cost the same. Values: compact, standard (default), full.
Return only these fields. Each by its path, such as author.name.
Known limits
- About 8 items a page, 14 at most. The page size is the platform's;
limitis not accepted. - For the next page pass
page.next_cursorascursor; a cursor is valid for 1 hour.page.has_moreis false on the last page. - 6 fields of the object are not available from this endpoint
Returned fields
data.items is a list of account objects. Stable: fields are only ever added.
ID
On this platform: The account's original ID, mostly starting with gh_ but not always; it can be passed as it is to wechat_mp.accounts.articles.list and wechat_mp.accounts.get
Handle
On this platform: The WeChat ID people type to find the account; null where none is set
Display name
Link to the profile
Bio
Long text: the compact view keeps the first 500 characters and says so in warnings.
Avatar
Show all 17 fields →
Whether the account is verified
When the account was created
Account counts
Followers
Following
Posts published
Name of the account's owner (a company or body); null where none is shown
Number of original articles as the platform shows it; null for a service account and where none is shown
Which numbers of this item are approximate or lower bounds; absent when all are exact
Path of the field, such as metrics.views
Approximate, or a lower boundapproximatelower_bound
Typical size of one item: compact 167 B, standard 335 B, full 422 B (measured on the response recorded 2026-11-02 11:25 UTC).
What this endpoint cannot give
urlThe platform has nonecreated_atNot provided heremetricsNot provided heremetrics.followersNot provided heremetrics.followingNot provided heremetrics.postsNot provided hereWhen you are charged
X-Max-Price to refuse anything above your own limit)Prices as read 2026-11-02 11:50 UTC, under price book 8, in effect since 2026-11-02 11:46 UTC; the Playground reads the price in force before a run.
Errors
What this endpoint can answer with; codes all endpoints share are on the full list.
invalid_paramsA parameter is invalidRetry: After a fixNocursor_mismatchThe cursor was issued for another endpoint or other parametersRetry: After a fixNoinsufficient_balanceThe balance is too lowRetry: After a fixNocursor_expiredThe cursor expired; start again from the first pageRetry: NoNoupstream_failedNo result came from the data source this time. Retry later; if the same item keeps failing, it most likely cannot be retrieved (deleted or restricted, say)Retry: YesNotimeoutThe data did not arrive in time; retry with the same idempotency keyRetry: YesNoQuestions
How much does the WeChat Official Account live search API cost?
$0.0200 per call. The most one call can cost is $0.0200.
When am I not charged?
Errors and timeouts are not charged; an empty result is charged $0.0200.
How many items does one call return, and how do I get the next page?
About 8 items a page, 14 at most. The page size is the platform's; limit is not accepted. For the next page pass page.next_cursor as cursor; a cursor is valid for 1 hour. page.has_more is false on the last page.
The same thing on other platforms
All 6 WeChat Search endpoints
Use it in your AI
Copy this prompt
Your API key is built in, so there is nothing to configure.
No account yet? Sign-up takes an email and no card, and a failed call is never charged.
Paste it into your agent
It reads the page the prompt points to and connects itself.
Now ask something
Use one of these, or your own words.
Prefer to set it up by hand?
dataxapi setupgives the agents on your machine (Claude Code, Codex, Cursor) the DataXAPI MCP server and the base skill. The key is read from DATAXAPI_API_KEY; none is written into a file.MCP server: https://api.dataxapi.com/mcp. The entry for your client is under MCP in the request examples of this page; then ask your agent to call wechat.accounts.search.Other clients →Show the text
Use the DataXAPI endpoint wechat.accounts.search (WeChat Official Account live search). Find WeChat Official Accounts and service accounts for search terms through WeChat Search, closest first, possibly followed by less related ones: original ID, WeChat ID, name, bio, avatar, whether verified, owner, number of original articles. Charged per call; no followers or reads, for estimates of those use wechat_mp.accounts.search. Call GET https://api.dataxapi.com/v1/wechat/accounts/search with the header "Authorization: Bearer $DATAXAPI_API_KEY". Read the key from the environment variable DATAXAPI_API_KEY; never write it into code. Parameters: - query (required): The account's name, or a keyword. Example: 36氪. - cursor: Cursor returned by the previous page. Pass page.next_cursor of the page before, unchanged. Each page is charged as a call of its own. - view: How much of each item to return. All three cost the same. Values: compact, standard (default), full. - fields: Return only these fields. Each by its path, such as author.name. Price: $0.0200 per call. Errors and timeouts are not charged; an empty result is charged $0.0200. The answer is JSON: data.items holds account; meta.billing.amount is what this call was charged. Example: curl -G "https://api.dataxapi.com/v1/wechat/accounts/search" \ --data-urlencode "query=36氪" \ -H "Authorization: Bearer $DATAXAPI_API_KEY" Full reference in Markdown: https://dataxapi.com/apis/wechat/accounts/search.md
Names and identifiers
- In Chinese
- 微信公众号实时查找 API
- Endpoint ID
wechat.accounts.search- Endpoint
GET /v1/wechat/accounts/search
Start with one key.
226 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.