# WeChat Official Accounts API

Retrieve official account articles, profiles, comment metrics, and index trends using keywords and identifiers for content analysis.

Get article data and account details by keyword or account identifier. Personal chat search is not supported.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "wechat_oa", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/wechat-oa-api](https://everyinfra.com/en/wechat-oa-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### article_search — Article search
Search WeChat Official Account articles by keyword through an English-documented API, up to 400 articles per call. Each article has title, summary, cover image, account name and publish time. You need no WeChat account. Full article text is not included. No personal WeChat sign-in is passed, so the followed and recently read sections of `category` are not guaranteed.
- Sync delivery · Price: $8 per 1,000 requests (every 20 rows count as one call)
- Catalog values: defaultLimit=20, maxLimit=400. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `keyword` (required): Specifies the search term across WeChat Official Account actions, including searching articles (article_search), accounts (account_search), mini programs (mini_program_search), search auto-suggestions (search_suggestions), and trend indices (wechat_index). It does not search personal WeChat chats.
  - `category` (optional): Filters articles by category in the article_search action. Allowed values are ALL, LATEST, HOT, FOLLOWED, and RECENT_READ. Note that FOLLOWED and RECENT_READ depend on account state; because your personal WeChat login session is not passed, these options are not guaranteed to work and will not read your personal subscription or reading history.
  - `sub_type` (optional): A compatibility alias for category in article_search that accepts the same five category values (automatically converted to uppercase). If both category and sub_type are provided, category takes precedence.
- Returns fields: id, title, summary, url, cover_image_url, account_name, posted_at, relative_time, kind, platform
- Capability page: [https://everyinfra.com/en/wechat-oa-api/article_search](https://everyinfra.com/en/wechat-oa-api/article_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/wechat-oa-api/article_search.md)

### article_detail — Article details
Fetch the full body of one WeChat Official Account article as plain text and original HTML. Get author, digest, cover, tags, original-content flag and IP region. Copy the mp.weixin.qq.com link of the article itself. Temporary links from search results may be unreadable. Comments are not included.
- Sync delivery · Price: $5.56 per 1,000 requests
- Parameters:
  - `url` (required): Specifies the article's own mp.weixin.qq.com link for article_comments, comment_replies, article_metrics, and article_detail: open the article and copy it (a /s/<id> short link, or a link with __biz, mid, idx, and sn). Temporary links copied from search results (with signature/timestamp) may not be readable; when they cannot be read, the call returns 422 before any charge. Account-level actions accept this parameter only as a lowest-priority fallback input for resolving the target account.
- Returns fields: id, title, url, content_text, content_html, author, account_name, account_ghid, digest, cover_image_url, images, hashtags, is_original, posted_at, ip_region, biz, media_type, platform
- Capability page: [https://everyinfra.com/en/wechat-oa-api/article_detail](https://everyinfra.com/en/wechat-oa-api/article_detail?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/wechat-oa-api/article_detail.md)

### account_search — Account search
Look up WeChat Official Accounts by keyword, up to 20 per call; there is no next page. Get name, WeChat ID alias, description, avatar, verification flag and the gh_ and __biz identifiers. A match does not prove legal identity or that anyone subscribes to the account.
- Sync delivery · Price: $16 per 1,000 requests
- Each call returns one page of up to 20 rows. There is no next page. Each page is billed once.
- Parameters:
  - `keyword` (required): Specifies the search term across WeChat Official Account actions, including searching articles (article_search), accounts (account_search), mini programs (mini_program_search), search auto-suggestions (search_suggestions), and trend indices (wechat_index). It does not search personal WeChat chats.
- Returns fields: account_id, ghid, name, description, alias, avatar_url, verify_flag, biz, platform
- Capability page: [https://everyinfra.com/en/wechat-oa-api/account_search](https://everyinfra.com/en/wechat-oa-api/account_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/wechat-oa-api/account_search.md)

### mini_program_search — Mini Program search
Discover WeChat Mini Programs for a keyword, with name, icon, description, username and whether each one is a mini game. Results describe each listing only: the program is not launched and its internal data stays out of reach. One call returns the first page of results: usually a little over 20 programs, never more than 30, and there is no next page. For more, search again with different `keyword` values and dedupe by `id`.
- Sync delivery · Price: $5.56 per 1,000 requests
- Each call returns one page of up to 30 rows. There is no next page. Each page is billed once.
- Parameters:
  - `keyword` (required): Specifies the search term across WeChat Official Account actions, including searching articles (article_search), accounts (account_search), mini programs (mini_program_search), search auto-suggestions (search_suggestions), and trend indices (wechat_index). It does not search personal WeChat chats.
- Returns fields: id, name, description, icon_url, username, is_minigame, platform
- Capability page: [https://everyinfra.com/en/wechat-oa-api/mini_program_search](https://everyinfra.com/en/wechat-oa-api/mini_program_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/wechat-oa-api/mini_program_search.md)

### search_suggestions — Search suggestions
Get the autocomplete suggestions WeChat offers for a keyword, along with the number of terms returned. They are related terms for that query, not search volume, a ranking or a historical trend.
- Sync delivery · Price: $5.56 per 1,000 requests
- Parameters:
  - `keyword` (required): Specifies the search term across WeChat Official Account actions, including searching articles (article_search), accounts (account_search), mini programs (mini_program_search), search auto-suggestions (search_suggestions), and trend indices (wechat_index). It does not search personal WeChat chats.
- Returns fields: suggestions, count, platform
- Capability page: [https://everyinfra.com/en/wechat-oa-api/search_suggestions](https://everyinfra.com/en/wechat-oa-api/search_suggestions?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/wechat-oa-api/search_suggestions.md)

### account_profile — Account details
Get a WeChat Official Account profile as JSON. It has the name, description, avatar and type (subscription or service). It also has the `account_id` and the `biz` key that links the account's articles back to it. Only the visible profile is read. The admin backend stays closed, and the owner is not validated.
- Sync delivery · Price: $8 per 1,000 requests
- Parameters:
  - `account` (required): Identifies the target WeChat Official Account using its WeChat ID, raw ID (starting with gh_), or a resolvable account/article URL. It does not accept personal WeChat IDs. Used by account_principal (for publisher profile metadata), account_articles (for historical post lists), and account_today_articles (for posts published today). account_articles and account_today_articles also accept the full account name and match it exactly: the name is used only when exactly one account has that name. If no account or more than one account has that name, the request returns 422 before billing, and you are not charged. In that case, call account_search to get the account's ghid (the raw ID starting with gh_), then pass it as account.
- Returns fields: account_id, name, account_type, description, avatar_url, biz, platform
- Capability page: [https://everyinfra.com/en/wechat-oa-api/account_profile](https://everyinfra.com/en/wechat-oa-api/account_profile?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/wechat-oa-api/account_profile.md)

### account_principal — Account owner
Read the registered owner behind a WeChat Official Account. Get company or operator name, entity type, verification status and date, registration country and date, and authorized agents. Values come back only when WeChat shows them. They do not replace an official business registration check and reveal no admin credentials.
- Sync delivery · Price: $5.56 per 1,000 requests
- Parameters:
  - `account` (required): Identifies the target WeChat Official Account using its WeChat ID, raw ID (starting with gh_), or a resolvable account/article URL. It does not accept personal WeChat IDs. Used by account_principal (for publisher profile metadata), account_articles (for historical post lists), and account_today_articles (for posts published today). account_articles and account_today_articles also accept the full account name and match it exactly: the name is used only when exactly one account has that name. If no account or more than one account has that name, the request returns 422 before billing, and you are not charged. In that case, call account_search to get the account's ghid (the raw ID starting with gh_), then pass it as account.
- Returns fields: account_id, ghid, name, description, company_name, owner_name, customer_type, verify_status, verify_type, verified_at, registered_country, registered_at, is_overseas, last_login_province, authorized_agents, platform
- Capability page: [https://everyinfra.com/en/wechat-oa-api/account_principal](https://everyinfra.com/en/wechat-oa-api/account_principal?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/wechat-oa-api/account_principal.md)

### account_articles — Account articles
Pull the article history of one WeChat Official Account, up to 30 per page; page with `page_token`. Each article has title, link, cover, publish time, position and original or deleted flags. Pass a WeChat ID, gh_ raw ID or account link, not a personal WeChat ID. One batch may not cover the full archive.
- Sync delivery · Price: $8 per 1,000 requests
- Each call returns one page of up to 30 rows. For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is one call.
- Parameters:
  - `account` (required): Identifies the target WeChat Official Account using its WeChat ID, raw ID (starting with gh_), or a resolvable account/article URL. It does not accept personal WeChat IDs. Used by account_principal (for publisher profile metadata), account_articles (for historical post lists), and account_today_articles (for posts published today). account_articles and account_today_articles also accept the full account name and match it exactly: the name is used only when exactly one account has that name. If no account or more than one account has that name, the request returns 422 before billing, and you are not charged. In that case, call account_search to get the account's ghid (the raw ID starting with gh_), then pass it as account.
  - `page_token` (optional): Page token for `account_articles`. Leave it out to start from the first page, then pass back the previous response's `next_page_token` exactly as received to get the next page. The other parameters must match the call that returned the token. A token is valid for 24 hours, and each page counts as one call.
- Returns fields: next_page_token, id, title, url, cover_image_url, posted_at, position, is_original, is_deleted, account_name, account_id, account_ghid, platform
- Capability page: [https://everyinfra.com/en/wechat-oa-api/account_articles](https://everyinfra.com/en/wechat-oa-api/account_articles?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/wechat-oa-api/account_articles.md)

### account_today_articles — Today's account articles
Track what one WeChat Official Account has published today, with each article's title, link, cover, publish time, position and original or deleted flags. It covers the current day only and is a pull you schedule, not a real-time subscription.
- Sync delivery · Price: $8 per 1,000 requests
- Parameters:
  - `account` (required): Identifies the target WeChat Official Account using its WeChat ID, raw ID (starting with gh_), or a resolvable account/article URL. It does not accept personal WeChat IDs. Used by account_principal (for publisher profile metadata), account_articles (for historical post lists), and account_today_articles (for posts published today). account_articles and account_today_articles also accept the full account name and match it exactly: the name is used only when exactly one account has that name. If no account or more than one account has that name, the request returns 422 before billing, and you are not charged. In that case, call account_search to get the account's ghid (the raw ID starting with gh_), then pass it as account.
  - `limit` (optional): Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without `limit`, whatever the value.
- Returns fields: id, title, url, cover_image_url, posted_at, position, is_original, is_deleted, account_name, account_id, account_ghid, platform
- Capability page: [https://everyinfra.com/en/wechat-oa-api/account_today_articles](https://everyinfra.com/en/wechat-oa-api/account_today_articles?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/wechat-oa-api/account_today_articles.md)

### article_comments — Article comments
Collect reader comments on one WeChat Official Account article, up to 260 per call. Each comment has text, author, likes, pinned flag, reply count and displayed location. Pass the link of the article itself, not an account page. Not every comment is guaranteed to come back.
- Sync delivery · Price: $6.76 per 1,000 requests
- Each call returns one page of up to 260 rows. There is no next page. Each page is billed once.
- Parameters:
  - `url` (required): Specifies the article's own mp.weixin.qq.com link for article_comments, comment_replies, article_metrics, and article_detail: open the article and copy it (a /s/<id> short link, or a link with __biz, mid, idx, and sn). Temporary links copied from search results (with signature/timestamp) may not be readable; when they cannot be read, the call returns 422 before any charge. Account-level actions accept this parameter only as a lowest-priority fallback input for resolving the target account.
- Returns fields: id, text, author_name, author_avatar_url, like_count, posted_at, is_top, reply_count, country, province, platform
- Capability page: [https://everyinfra.com/en/wechat-oa-api/article_comments](https://everyinfra.com/en/wechat-oa-api/article_comments?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/wechat-oa-api/article_comments.md)

### comment_replies — Comment replies
List the replies under one comment on a WeChat Official Account article. Each reply has text, replier, likes, time and the country, province and city shown. Pair the `comment_id` from article comments with the link of that same article. Replies outside this comment are not rebuilt.
- Sync delivery · Price: $6.76 per 1,000 requests
- Parameters:
  - `url` (required): Specifies the article's own mp.weixin.qq.com link for article_comments, comment_replies, article_metrics, and article_detail: open the article and copy it (a /s/<id> short link, or a link with __biz, mid, idx, and sn). Temporary links copied from search results (with signature/timestamp) may not be readable; when they cannot be read, the call returns 422 before any charge. Account-level actions accept this parameter only as a lowest-priority fallback input for resolving the target account.
  - `comment_id` (required): Specifies the target comment ID for comment_replies. Obtain this value from the article_comments response for the same article. Must be paired with the corresponding article URL; this is not an article ID.
  - `content_id` (optional): A compatibility alias for comment_id in the comment_replies action. It takes lower precedence than comment_id when both are provided.
  - `limit` (optional): Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without `limit`, whatever the value.
- Returns fields: id, text, author_name, author_avatar_url, like_count, posted_at, country, province, city, platform
- Capability page: [https://everyinfra.com/en/wechat-oa-api/comment_replies](https://everyinfra.com/en/wechat-oa-api/comment_replies?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/wechat-oa-api/comment_replies.md)

### article_metrics — Article engagement
Check engagement on one WeChat Official Account article. Get reads, likes, shares, saves, comments and the WeChat-specific watching count, which is separate from likes. Counts are a snapshot at call time, not a history or the account's private analytics.
- Sync delivery · Price: $5.56 per 1,000 requests
- Parameters:
  - `url` (required): Specifies the article's own mp.weixin.qq.com link for article_comments, comment_replies, article_metrics, and article_detail: open the article and copy it (a /s/<id> short link, or a link with __biz, mid, idx, and sn). Temporary links copied from search results (with signature/timestamp) may not be readable; when they cannot be read, the call returns 422 before any charge. Account-level actions accept this parameter only as a lowest-priority fallback input for resolving the target account.
- Returns fields: read_count, like_count, watching_count, share_count, collect_count, comment_count, platform
- Capability page: [https://everyinfra.com/en/wechat-oa-api/article_metrics](https://everyinfra.com/en/wechat-oa-api/article_metrics?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/wechat-oa-api/article_metrics.md)

### wechat_index — WeChat Index
Gauge how much attention a keyword gets on WeChat: the latest index value and its date, plus the trend series behind it. It is an index, not a count of searches or unique users, and not an EveryInfra metric.
- Sync delivery · Price: $5.56 per 1,000 requests
- Parameters:
  - `keyword` (required): Specifies the search term across WeChat Official Account actions, including searching articles (article_search), accounts (account_search), mini programs (mini_program_search), search auto-suggestions (search_suggestions), and trend indices (wechat_index). It does not search personal WeChat chats.
- Returns fields: keyword, latest_index, latest_date, data_points, trend, platform
- Capability page: [https://everyinfra.com/en/wechat-oa-api/wechat_index](https://everyinfra.com/en/wechat-oa-api/wechat_index?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/wechat-oa-api/wechat_index.md)

## WeChat Official Accounts API questions

### What can I retrieve with the WeChat Official Accounts API?

Set `platform` to `wechat_oa`. The current catalog lists article search, article details, account search, Mini Program search, search suggestions, and more. These action names identify different WeChat Official Accounts objects or views; they are not interchangeable search modes.

### Does WeChat Official Accounts have an official API?

The WeChat Official Account API lets operators manage their own account (drafts, publishing, menus, followers, comments on their own articles and analytics) with that account's credentials. The official API reference has no endpoint for reading articles published by other accounts.

Official sources (checked 2026-10-16): [WeChat Official Accounts API reference](https://developers.weixin.qq.com/doc/subscription/api/)

### Do I need a WeChat developer account or API key?

No. Requests go through EveryInfra with an EveryInfra API key: sign up, create a key in the console and send it as `Authorization: Bearer <API_KEY>`. You do not register a WeChat developer app, apply for WeChat Official Accounts API access or sign in with a WeChat account, and the actions return public WeChat Official Accounts data only.

### How much does the WeChat Official Accounts API cost per 1,000 requests?

each action's price is listed in the table on this page and in the public catalog. There is no subscription: you top up a USD balance and pay per call, and failed calls and empty results are not charged.

### Which input starts the WeChat Official Accounts `article_search` request?

Specifies the search term across WeChat Official Account actions, including searching articles (article_search), accounts (account_search), mini programs (mini_program_search), search auto-suggestions (search_suggestions), and trend indices (wechat_index). It does not search personal WeChat chats. Send it as `keyword` inside `params`.

### Which fields can WeChat Official Accounts `article_search` return?

Its declared schema includes `title`, `summary`, `cover_image_url`, and `account_name`. A declared field can still be absent from an individual record, and every other action has its own field list.

### Does every WeChat Official Accounts action return immediately?

Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add `"mode": "async"` to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=wechat_oa
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
