Answers / WeChat Official Accounts

How do I search WeChat Official Account articles with an API?

Send GET /v1/wechat_mp/search?query=KEYWORD with Authorization: Bearer YOUR_API_KEY, or use search_posts with platform=wechat_mp in MCP. It returns public WeChat Official Account articles with title, summary, author account name, and permanent link. No personal WeChat login or QR code scan is required.

WeChat Official Accounts · search posts · $0.03 a call · one verified website trial · updated 2026-11-13

Run it live

Calls run only when you press Run. Opening this page does not spend credit.

Loading…

Profiles require the account username. Article detail requires a complete mp.weixin.qq.com URL. One page per call.

Your results will appear here. Choose a platform and action, then press Run.

Real API calls require verification for one trial, or a signed-in account with prepaid credit.

From code

curl
curl "https://posttodata.com/v1/wechat_mp/search?query=AI%E5%A4%A7%E6%A8%A1%E5%9E%8B&limit=5" -H "Authorization: Bearer YOUR_API_KEY"
Python (requests)
import requests

r = requests.get(
    "https://posttodata.com/v1/wechat_mp/search",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    params={"query": "AI大模型", "limit": 5},
)
for item in r.json()["data"]["items"]:
    print(item["url"], item.get("text") or item.get("title"))
TypeScript / Node.js
const url = new URL("https://posttodata.com/v1/wechat_mp/search");
url.searchParams.set("query", "AI大模型");
url.searchParams.set("limit", "5");
const res = await fetch(url, {
  headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await res.json();
console.log(data.data.items);
Go
req, _ := http.NewRequest("GET", "https://posttodata.com/v1/wechat_mp/search?query=AI%E5%A4%A7%E6%A8%A1%E5%9E%8B&limit=5", nil)
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

From your AI

Claude and ChatGPT clients that support OAuth can sign in without pasting a key. Follow the client setup guide. The command below is the API-key option for Claude Code.

Add the MCP server once
claude mcp add --transport http posttodata https://posttodata.com/mcp --header "Authorization: Bearer YOUR_API_KEY"

Then ask

“Search WeChat Official Accounts for recent articles about 'AI大模型' using PostToData and summarize the key trends with source links.”

The model calls search_posts with platform wechat_mp.

Response Schema & Data Sample

Normalized JSON output structure returned by PostToData. All fields are strongly typed; missing upstream metrics return null rather than being omitted.

200 OK — JSON Response
{
  "meta": {
    "platform": "wechat_mp",
    "action": "search",
    "total_items": 1,
    "currency": "USD",
    "price_usd": "0.03"
  },
  "data": {
    "items": [
      {
        "id": "AI大模型",
        "type": "post",
        "url": "https://wechat_mp.com/example_id",
        "published_at": "2026-11-15T12:00:00Z",
        "title": "AI大模型 insights & discussion",
        "text": "Structured body content retrieved from the public social post, ready for AI indexing or sentiment analysis.",
        "author": {
          "id": "creator_01",
          "username": "creator_name",
          "name": "Creator",
          "url": null
        },
        "metrics": {
          "likes": 215,
          "comments": 34,
          "shares": 12,
          "views": 5400,
          "score": null
        }
      }
    ]
  }
}

Good to know

  • WeChat Official Account search lists at $0.03 per successful call.
  • Retrieves public published articles without requiring official WeChat MP developer enterprise certification.
  • Supports standard format for metadata and compact format for AI agent prompts.
  • Failed calls or rate-limit responses do not consume customer balance.

Full reference in the docs. All WeChat Official Accounts endpoints are on the WeChat Official Accounts API page.

More answers