# WeChat Official Accounts Scraper & API | EveryInfra (`blushing_parachute/everyinfra-wechat-oa-api`) Actor

Unofficial WeChat Official Accounts data via one Actor: article_search, article_detail, account_search, mini_program_search, search_suggestions, account_profile, account_principal, account_articles and 4 more. Pay per request, no start fee. First 3 requests free across EveryInfra Actors.

- **URL**: https://apify.com/blushing_parachute/everyinfra-wechat-oa-api.md
- **Developed by:** [ECHO](https://apify.com/blushing_parachute) (community)
- **Categories:** Social media, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 29.2% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.30 / 1,000 article_search requests

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## WeChat Official Accounts Scraper & API | EveryInfra

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.

### Actions

| Action | What you get | Required | Optional | Results per request | Price per request |
|---|---|---|---|---|---|
| `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. | keyword | category, sub_type | 20 (up to 400) | $0.0043 |
| `article_detail` | 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. | url | — | 1 | $0.0025 |
| `account_search` | Look up WeChat Official Accounts by keyword, up to 400 per call. 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. | keyword | — | 20 (up to 400) | $0.0533 |
| `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 no next page. `limit` can only shorten that list. For more, search again with different `keyword` values and dedupe by `id`. | keyword | — | 30 (up to 30) | $0.0043 |
| `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. | keyword | — | 1 | $0.0006 |
| `account_profile` | 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. | account | — | 1 | $0.0029 |
| `account_principal` | 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. | account | — | 1 | $0.0029 |
| `account_articles` | Pull the article history of one WeChat Official Account, 8 by default and up to 160 per call. 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. | account | — | 8 (up to 160) | $0.0041 |
| `account_today_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. | account | — | all the source returns | $0.0041 |
| `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. | url | — | 13 (up to 260) | $0.0180 |
| `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. | url, comment_id | content_id | all the source returns | $0.0144 |
| `article_metrics` | 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. | url | — | 1 | $0.0176 |

### Input

Pick an `action` and fill the fields it uses. Example:

```json
{
  "action": "article_search",
  "keyword": "\u57ce\u5e02\u66f4\u65b0"
}
```

Fields that another action needs are ignored when left empty. API users can also pass `{"action": ..., "params": {...}}`.

### Output

Each result is one dataset row. Rows keep every field the source page exposes for that action; a field the platform hides or leaves empty for a record is omitted rather than filled with a placeholder. When there is a next page, the run's `OUTPUT` record holds `next_page_token`.

- `article_search`: `id`, `title`, `summary`, `url`, `cover_image_url`, `account_name`, `posted_at`, `relative_time`, `kind`, `platform`
- `article_detail`: `id`, `title`, `url`, `content_text`, `content_html`, `author`, `account_name`, `account_ghid`, `digest`, `cover_image_url`, `images`, `hashtags`, `is_original`, `posted_at`, `ip_region`, `platform`
- `account_search`: `account_id`, `ghid`, `name`, `description`, `alias`, `avatar_url`, `verify_flag`, `biz`, `platform`
- `mini_program_search`: `id`, `name`, `description`, `icon_url`, `username`, `is_minigame`, `platform`
- `search_suggestions`: `suggestions`, `count`, `platform`
- `account_profile`: `account_id`, `name`, `account_type`, `description`, `avatar_url`, `biz`, `platform`
- `account_principal`: `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`
- `account_articles`: `id`, `title`, `url`, `cover_image_url`, `posted_at`, `position`, `is_original`, `is_deleted`, `account_name`, `account_id`, `account_ghid`, `platform`
- `account_today_articles`: `id`, `title`, `url`, `cover_image_url`, `posted_at`, `position`, `is_original`, `is_deleted`, `account_name`, `account_id`, `account_ghid`, `platform`
- `article_comments`: `id`, `text`, `author_name`, `author_avatar_url`, `like_count`, `posted_at`, `is_top`, `reply_count`, `country`, `province`, `platform`
- `comment_replies`: `id`, `text`, `author_name`, `author_avatar_url`, `like_count`, `posted_at`, `country`, `province`, `city`, `platform`
- `article_metrics`: `read_count`, `like_count`, `watching_count`, `share_count`, `collect_count`, `comment_count`, `platform`

#### Field notes

- `content_text`: Full article body as plain text (no HTML tags). Delivered whole, not paginated.
- `content_html`: Full article body as original HTML, preserving layout and image references. Same source as content_text; pick one per your needs.
- `author`: Article byline (often a personal pen name, not necessarily the account name).
- `digest`: Article digest as filled in the account backend, not an excerpt of the body.
- `hashtags`: Article hashtag list.
- `ip_region`: IP region shown at publish time (province/country).
- `is_original`: Whether the article carries an original-content declaration.
- `images`: Image URL list from the article body.
- `position`: Slot of the article within one push: the lowest number is the lead article. It is not a ranking by reads or popularity.
- `summary`: Article summary shown in the search result.
- `cover_image_url`: Cover image URL of the article.
- `account_name`: Name of the Official Account that published the article.
- `id`: The record's unique ID on WeChat. Unique within WeChat only; may repeat across platforms. article_search results do not include id on most requests; identify an article by url.
- `relative_time`: Relative time as WeChat displays it (such as 3 days ago); sort by posted_at instead. Absent on most requests.
- `kind`: Result type as WeChat labels it. Absent on most requests.
- `is_deleted`: Whether the content has been deleted.
- `account_id`: Official Account ID (its WeChat ID).
- `account_ghid`: The account's raw ID, unique within WeChat. Most start with `gh_`, but not all, so don't validate by prefix.
- `account_type`: Account type (subscription account or service account).
- `alias`: Custom WeChat ID set by the official account.
- `author_avatar_url`: Author's avatar.
- `authorized_agents`: Authorized agent organizations.
- `biz`: The official account's \_\_biz parameter, the identifier carried in article links.
- `company_name`: Company name of the verified entity.
- `count`: Count.
- `customer_type`: Entity type (individual, enterprise, government or media).
- `data_points`: Number of trend data points.
- `ghid`: Same as account_ghid.
- `icon_url`: Mini program icon (mini_program_search).
- `is_minigame`: Whether the account is linked to a mini game.
- `is_overseas`: Whether the entity is overseas.
- `is_top`: Whether the content is pinned.
- `keyword`: The keyword that was queried.
- `last_login_province`: Province of the latest login.
- `latest_date`: Date of the latest period.
- `latest_index`: Index value of the latest period.
- `owner_name`: Operator name.
- `province`: Province where it is located.
- `read_count`: Read count.
- `registered_at`: Registration time.
- `registered_country`: Country of registration.
- `suggestions`: Related suggested terms.
- `trend`: Series of index values over time.
- `verified_at`: Verification time.
- `verify_flag`: Verification flag.
- `verify_status`: Verification status.
- `verify_type`: Verification type.
- `watching_count`: Number of "Looking" taps. **An engagement metric specific to WeChat Official Accounts, separate from likes.**

### Pricing

Pay per event, charged only when a run delivers data:

- `article_search`: $0.0043, one event per started block of 20 results.
- `article_detail`: $0.0025, one event per non-empty request, whatever the row count.
- `account_search`: $0.0533, one event per started block of 20 results.
- `mini_program_search`: $0.0043, one event per non-empty request, whatever the row count.
- `search_suggestions`: $0.0006, one event per non-empty request, whatever the row count.
- `account_profile`: $0.0029, one event per non-empty request, whatever the row count.
- `account_principal`: $0.0029, one event per non-empty request, whatever the row count.
- `account_articles`: $0.0041, one event per started block of 8 results.
- `account_today_articles`: $0.0041, one event per non-empty request, whatever the row count.
- `article_comments`: $0.0180, one event per started block of 13 results.
- `comment_replies`: $0.0144, one event per non-empty request, whatever the row count.
- `article_metrics`: $0.0176, one event per non-empty request, whatever the row count.

Empty or failed requests are never charged. There is no actor-start fee and no per-row fee, and platform usage is included in these prices.

### Free trial

The first 3 accepted data requests per Apify account are free across all EveryInfra Actors combined (a lifetime total, not per Actor and not reset). Invalid input does not use a trial; an accepted request that returns no data still does. After that a paid Apify plan is required.

### Notes

- Results reflect what is publicly visible when the run happens; counts can be lower than requested.
- One run makes one request. For more pages, start another run with `page_token` where the action supports it.
- This is an independent Actor. It is not affiliated with, sponsored by, or endorsed by WeChat Official Accounts or its owner; names and trademarks belong to their respective owners.

### Support

Open an issue on this Actor's Issues tab with the run ID.

# Actor input Schema

## `action` (type: `string`):

What to fetch. Each action uses only the fields listed for it below; other fields are ignored when empty.

## `keyword` (type: `string`):

Used by `article_search` (required), `account_search` (required), `mini_program_search` (required), `search_suggestions` (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` (type: `string`):

Used by `article_search`. 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` (type: `string`):

Used by `article_search`. 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.

## `url` (type: `string`):

Used by `article_detail` (required), `article_comments` (required), `comment_replies` (required), `article_metrics` (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.

## `account` (type: `string`):

Used by `account_profile` (required), `account_principal` (required), `account_articles` (required), `account_today_articles` (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.

## `comment_id` (type: `string`):

Used by `comment_replies` (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` (type: `string`):

Used by `comment_replies`. A compatibility alias for comment_id in the comment_replies action. It takes lower precedence than comment_id when both are provided.

## `limit` (type: `integer`):

How many results to request for list actions. Defaults and maximums per action: `article_search` 20 (max 400); `account_search` 20 (max 400); `mini_program_search` 30 (max 30); `account_articles` 8 (max 160); `article_comments` 13 (max 260). Billing: `article_search` one event per started block of 20 results; `account_search` one event per started block of 20 results; `mini_program_search` one event per non-empty request, whatever the row count; `account_articles` one event per started block of 8 results; `article_comments` one event per started block of 13 results.

## `params` (type: `object`):

Optional JSON object with the same fields as above, for API and integration use. Flat fields and params must not disagree.

## Actor input object example

```json
{
  "action": "article_search",
  "keyword": "城市更新"
}
```

# Actor output Schema

## `records` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keyword": "城市更新"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blushing_parachute/everyinfra-wechat-oa-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "keyword": "城市更新" }

# Run the Actor and wait for it to finish
run = client.actor("blushing_parachute/everyinfra-wechat-oa-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keyword": "城市更新"
}' |
apify call blushing_parachute/everyinfra-wechat-oa-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blushing_parachute/everyinfra-wechat-oa-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/dWaqNNm9ccU4SGJNU/builds/GcMMFLY2pTOmqKJJl/openapi.json
