# WeChat Articles & Official Account Scraper (公众号) (`scrapewise/wechat-articles`) Actor

Scrape WeChat Official Account articles (公众号文章) with this WeChat scraper, for media monitoring and China research: by keyword, account or link, with title, account, WeChat ID, author, date, digest, images and the full body in one run. Only-new mode. No login.

- **URL**: https://apify.com/scrapewise/wechat-articles.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (community)
- **Categories:** Social media, News
- **Features:** Limited permissions
- **Stats:** 266 total users, 138 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.40 / 1,000 article founds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Articles Scraper

WeChat Articles Scraper searches **WeChat Official Account articles (公众号文章)** by keyword, with no WeChat account, login or cookies, and returns **the complete article in the same run**: title, account, author, publish date, publishing region, original badge, digest, cover, images, hashtags, the full text and, on request, the HTML. It also pulls the articles of given Official Accounts and reads `mp.weixin.qq.com` links you already have. For China market researchers, brand and media monitoring teams, Chinese-language corpora and LLM datasets, newsrooms and AI agents.

### WeChat scraper pricing at a glance

| Apify plan | Article found | Full text | Article with full text, per 1,000 |
|---|---|---|---|
| Free | US$ 0.0040 | US$ 0.0100 | US$ 14.00 |
| Bronze | US$ 0.0038 | US$ 0.0095 | US$ 13.30 |
| Silver | US$ 0.0036 | US$ 0.0090 | US$ 12.60 |
| Gold and above | US$ 0.0034 | US$ 0.0085 | US$ 11.90 |

With `includeContent: false` you pay only the "article found" price (US$ 4.00 per 1,000 on Free). Links you send always include the full text. No monthly fee, proxy included. From 23 Nov 2026, each run also has a US$ 0.005 start fee. One article is charged once per run however many keywords found it. Free: error rows, duplicates, articles outside your date filter and articles skipped by `onlyNew`. The default run (20 articles with full text) costs US$ 0.28.

### What the WeChat articles scraper fixes

- **Search links expire; the text does not.** WeChat search hands out signed links that stop working after a while and do not reveal the permanent address without a login. The Actor reads the full article in the same run, and gives `articleKey` plus `accountBiz`, `messageId` and `indexInMessage` as the permanent identity.
- **Account data on every full text:** the WeChat ID (微信号), `gh_` id and the account description.
- **Fields the search page hides:** author, publishing region (发表于), the 原创 original badge and `#话题` hashtags.
- **Monitoring without paying twice.** `onlyNew` remembers what each keyword already delivered and skips it before any charge.

### WeChat scraper input examples

Every field is optional; the input form describes each one. An empty input searches `人工智能` (artificial intelligence) and returns 20 articles with the full text.

Watch three topics every morning (save as a Task with a daily Schedule):

```json
{
  "queries": ["新能源汽车", "跨境电商", "人工智能"],
  "maxResultsPerQuery": 100,
  "onlyNew": true,
  "publishTime": "week"
}
```

The newest articles about a brand, search data only:

```json
{ "queries": ["小米 汽车"], "sortBy": "latest", "maxResultsPerQuery": 50, "includeContent": false }
```

The articles of an Official Account, by name or by any article link from it:

```json
{ "accounts": ["36氪"], "queries": [] }
```

Articles you already have, with HTML:

```json
{ "articleUrls": ["https://mp.weixin.qq.com/s/XXXXXXXXXXXXXXXXXXXXXX"], "includeHtml": true }
```

With `onlyNew`, the first run delivers everything up to `maxResultsPerQuery`; later runs deliver only articles not seen before, and a quiet day ends with a free `NOTHING_NEW` row. The memory is the Key-Value Store `wechat-articles-only-new` in your account, one record per keyword. In a test on 2026-10-01, a 100 article seed of `人工智能` followed by a second run repeated none of the 100.

### Switching from another WeChat scraper? Your existing input works

| Your field | Read as |
|---|---|
| `keywords` | `queries` |
| `links` | `articleUrls` |
| `maxPages` | `maxResultsPerQuery` (10 articles per page) |
| `publishTime`: `all`, `halfYear` | any time, the last 6 months |
| `sortBy: "hot"` | relevance |
| `operation`: `articleSearch` | keyword search |
| `operation`: `articleDetail` | `articleUrls` |
| `operation`: `accountHistoryArticles`, `accountTodayArticles` | `accounts` |

Operations that need a logged in WeChat app (read and like counts, comments, WeChat Index, suggestions, mini programs, account owner) return one free row with `errorCode: "UNSUPPORTED_OPERATION"`.

### What data the WeChat scraper returns

A real row from a run on 2026-10-01 with `{"queries": ["人工智能"], "maxResultsPerQuery": 10}`, long fields trimmed:

```json
{
  "type": "article",
  "searchQuery": "人工智能",
  "position": 1,
  "page": 1,
  "articleKey": "7ec3b116eb797951",
  "title": "10月首批!重庆AI智能体培训启动,现已开始,助力冲刺大厂高薪offer,20岁以上可学",
  "summary": "2026年AI智能体培训启动为落实《关于深入实施“人工智能+”行动的意见》部署...",
  "accountName": "重庆潮生活",
  "accountId": "gh_31d5f2253ef7",
  "accountBiz": "MjM5ODMwMzExNQ==",
  "author": "AI智能体6",
  "publishedAt": "2026-10-01T03:03:41Z",
  "ipRegion": "广东",
  "isOriginal": false,
  "hashtags": [],
  "coverImage": "https://mmbiz.qpic.cn/mmbiz_jpg/smuH1LUwDYC8NyL0Xw1Cudv6lYSrsoIGTlicjFYrlO73A...",
  "content": "2026年AI智能体培训启动\n为落实《关于深入实施“人工智能+”行动的意见》部署...",
  "contentLength": 886,
  "images": [],
  "imageCount": 0,
  "messageId": "2652307344",
  "indexInMessage": "2",
  "articleUrl": "https://mp.weixin.qq.com/s?src=11&timestamp=1790862968&ver=7000&signature=G5lkXYyuSBz1q7ro...",
  "scrapedAt": "2026-10-01T13:56:08Z",
  "errorCode": null,
  "error": null
}
```

### WeChat article data fields

| Field | What it is |
|---|---|
| `searchQuery`, `position`, `page` | The keyword and the rank on WeChat search |
| `articleKey` | Stable id across runs; use it to deduplicate your storage |
| `title`, `summary`, `accountName`, `publishedAt`, `coverImage` | What the search page shows |
| `articleUrl` | The link the article was read from (from a search, a signed link that expires) |
| `digest`, `author`, `accountId`, `accountBiz`, `accountAvatar` | Article digest, signed author, the account's `gh_` id, `__biz` and avatar |
| `accountWechatId`, `accountDescription` | The account's WeChat ID (微信号) and self description |
| `accountQuery` | The account you asked for, on rows from `accounts` |
| `content`, `contentLength`, `contentHtml` | Full body as plain text (one paragraph per line), its length, and HTML with `includeHtml` |
| `images`, `imageCount` | Every image in the body |
| `isOriginal`, `ipRegion`, `hashtags` | 原创 badge, region under 发表于, `#话题` tags |
| `messageId`, `indexInMessage` | With `accountBiz`, the permanent identity of the article |
| `postType` | `image_post` for photo posts (小绿书) |
| `contentError` | The body could not be read; search data delivered and only the search price charged |

The Console shows two views: **Overview** and **Full text**.

### WeChat scraper errors (never charged)

| errorCode | Meaning |
|---|---|
| `NO_RESULTS` | No article for this keyword in the chosen period |
| `NOTHING_NEW` | With `onlyNew`, everything listed was already delivered |
| `LINK_NOT_RESOLVED` | The search did not release the article's link; title, account, date and digest still delivered |
| `BLOCKED` | The search page did not come back after several fresh sessions; run again in a few minutes |
| `NOT_REACHED` | The run timeout arrived before this keyword |
| `NOT_FOUND`, `DELETED`, `VERIFICATION` | A link whose article is deleted, private or behind verification |
| `INVALID_URL`, `INVALID_INPUT` | Not an `mp.weixin.qq.com` link, or a filter value that is not valid (a `gh_` id alone cannot be searched) |
| `UNSUPPORTED_OPERATION` | An operation that needs a logged in WeChat app |

### Use it from code and AI agents

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("scrapewise/wechat-articles").call(run_input={"queries": ["跨境电商"], "sortBy": "latest"})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["publishedAt"], row["accountName"], row["title"])
```

The same works from Node.js, the HTTP API (`run-sync-get-dataset-items`), n8n, Make and Zapier. For AI agents, add `scrapewise/wechat-articles` through the Apify MCP server (`https://mcp.apify.com`).

Video guides from Apify: [how to schedule an Actor](https://www.youtube.com/watch?v=1jI7WcVQmwM) and [how to connect it to other apps](https://www.youtube.com/watch?v=bNACk1_S_6w).

### WeChat scraper limitations

- **About 100 articles per keyword.** WeChat search shows 10 pages to a logged out visitor, and this Actor never logs in. `sortBy`, `publishTime` and `publishedAfter` order and filter those 100; they do not dig deeper. Use several keywords and `onlyNew` day after day for more coverage.
- **No read counts, likes, comments or follower numbers**: those need a logged in WeChat client.
- **An account's most visible articles, not its whole archive.** `accounts` searches the name and keeps only that account's articles (24 of 26 results for `36氪` on 2026-10-08). A very generic name can return none, free.
- **Some articles cannot be read** (deleted, restricted, verification); they come with `contentError` at the search price only.
- **Content is in Chinese** and not translated. Chinese keywords return far more than English ones.

### WeChat articles scraper FAQ

**Is there an official WeChat API for articles?** The Official Account platform API works only for accounts you manage, with that account's credentials; it does not search other accounts' articles. This Actor searches public articles by keyword or account without a WeChat account and returns the full text.

**What should I store, since the link expires?** The full text, `articleKey`, and `accountBiz` + `messageId` + `indexInMessage`.

**How do I get more than 100 articles on a topic?** Several keywords in one run (duplicates are free) and a daily `onlyNew` schedule.

**Is there any ban risk?** No WeChat account, session or cookie is used.

Something broke? Open an issue on the Issues tab.

### Related scrapers

- [Weibo Scraper](https://apify.com/scrapewise/weibo-scraper): Weibo posts, comments, profiles and hot search.
- [Douyin Hot Search Scraper](https://apify.com/scrapewise/china-trending-scraper): China trends from Douyin, Baidu, Zhihu and Toutiao.
- [Xiaohongshu (RedNote) Scraper](https://apify.com/scrapewise/xiaohongshu-scraper): Xiaohongshu notes, profiles and feeds.
- [Douban Scraper](https://apify.com/scrapewise/douban-scraper): Douban reviews and ratings of movies and books.
- [Bilibili Scraper](https://apify.com/scrapewise/bilibili-scraper): Bilibili videos, comments, channels and stats.

### Changelog

- **2026-10-08:** `accounts` for the articles of given Official Accounts; `accountWechatId` and `accountDescription` on every full text; the input of other WeChat actors accepted as it is.
- **2026-10-01:** `onlyNew`, `sortBy: latest`, `publishTime`; `isOriginal`, `ipRegion`, `hashtags`, `articleKey` and `includeHtml`.
- **2026-09-29:** links resolved about twice as fast; resumes after a platform restart without charging twice.

# Actor input Schema

## `queries` (type: `array`):

Keywords, one per line, in Chinese or English, as you would type them in WeChat search: 新能源汽车, 跨境电商, 小米 汽车. Each keyword returns up to 'Max articles per keyword' (at most about 100, the 10 result pages WeChat search shows without login). An article found by two keywords is delivered and charged once. Chinese keywords return far more than English ones. Clear this list if you only want 'Official Accounts' or 'Article links'.

## `accounts` (type: `array`):

Articles from specific Official Accounts (公众号), one per line: the account name exactly as WeChat shows it (36氪) or any mp.weixin.qq.com article link from the account. Only articles published by that account are kept and charged, up to 'Max articles per keyword' each, newest first unless 'Sort by' says otherwise. It reaches the account's most visible articles, not its whole archive. A gh\_ id alone cannot be searched without login and returns a free INVALID_INPUT row.

## `maxResultsPerQuery` (type: `integer`):

How many articles to deliver per keyword or account, from 1 to 100 (WeChat search shows at most 100 without login). Default 20. Each article with full text costs US$ 0.014 on the Free plan, so 20 per keyword is US$ 0.28; with 'Include full text' off it is US$ 0.004 each.

## `sortBy` (type: `string`):

Relevance: the order of WeChat search. Latest first: the same up to 100 articles per keyword or account, newest first; all result pages are read before delivering, so the run starts a little slower. It orders, it does not reach older pages. Empty: keywords use relevance, accounts use latest.

## `publishTime` (type: `string`):

Keep only articles published in the last 24 hours, 7 days, 30 days or 365 days. Applied to the up to 100 articles WeChat search ranks for the keyword; it does not reach older pages. Skipped articles are not charged. Default: any time. Combine with 'Published after' for an exact date; the later date wins.

## `onlyNew` (type: `boolean`):

For scheduled runs. Remembers which articles were delivered for each keyword (Key-Value Store 'wechat-articles-only-new' in your account) and delivers only those not seen before; skipped articles are skipped before any charge. The first run delivers everything up to the limit; a run with nothing new ends with a free NOTHING_NEW row. Delete the store to start over. Default off.

## `includeContent` (type: `boolean`):

On (default): opens each article and adds the complete body, author, account gh\_ id and WeChat ID, account description, images, region, original badge and hashtags, at US$ 14.00 per 1,000 articles in total on the Free plan. Off: only the search data (title, account, date, digest, cover, link) at US$ 4.00 per 1,000. Search links expire, so keep it on if you need the text later.

## `includeHtml` (type: `boolean`):

With 'Include full text' on, also returns the article body as HTML in 'contentHtml', with formatting, links and images with working src, for republishing or archiving the layout. Rows get larger; same price. Default off.

## `publishedAfter` (type: `string`):

Keep only articles published on or after this date, as YYYY-MM-DD (2026-10-01), or in the last N days as a number (7). Older articles are skipped and not charged. Empty = no date limit. Anything else returns a free INVALID_INPUT row.

## `articleUrls` (type: `array`):

mp.weixin.qq.com article links you already have, one per line, in either form: https://mp.weixin.qq.com/s/<code> or https://mp.weixin.qq.com/s?\_\_biz=...\&mid=...\&idx=...\&sn=.... Each returns the full article at US$ 14.00 per 1,000. Deleted, private or verification gated articles come back as free rows.

## `proxyConfiguration` (type: `object`):

The default Apify Proxy works and is included in the price. Change only to route through your own proxy.

## Actor input object example

```json
{
  "queries": [
    "新能源汽车",
    "跨境电商"
  ],
  "maxResultsPerQuery": 20,
  "publishTime": "any",
  "onlyNew": false,
  "includeContent": true,
  "includeHtml": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `resultsCsv` (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 = {
    "queries": [
        "新能源汽车",
        "跨境电商"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/wechat-articles").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 = { "queries": [
        "新能源汽车",
        "跨境电商",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/wechat-articles").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 '{
  "queries": [
    "新能源汽车",
    "跨境电商"
  ]
}' |
apify call scrapewise/wechat-articles --silent --output-dataset

```

## MCP server setup

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

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/vJbxxke7tibc4tk3k/builds/jFeyLBmabveV3D7lZ/openapi.json
