# WeChat Articles Scraper: Official Accounts & Posts (`mastertools/wechat-articles-scraper`) Actor

Scrape WeChat Official Account (公众号) articles with no login: search by keyword on Sogou Weixin, or get full text, account, WeChat ID, author, date, province and images from any mp.weixin.qq.com link.

- **URL**: https://apify.com/mastertools/wechat-articles-scraper.md
- **Developed by:** [Master Tools](https://apify.com/mastertools) (community)
- **Categories:** Social media, News, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 full articles

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: Official Accounts & Posts

**WeChat Official Account (公众号) articles in clean rows: search by keyword, then get the full text, account, WeChat ID, author, date and images of any article.**

Scrape WeChat with no login, no cookies and no WeChat account. Type a keyword in Chinese or English — 人工智能, 新能源, DeepSeek, your brand — and get the WeChat articles Sogou Weixin finds for it: title, summary, Official Account, publish date and cover, up to 100 articles per keyword. Paste `mp.weixin.qq.com` links and get each article whole: clean text, Markdown or HTML, the account's name, WeChat ID and description, the author, the exact publish time, the province it was posted from, the "original" mark, every image and the other WeChat articles it links to. The example input finishes in seconds.

### What you get

- **Search WeChat by keyword** — Sogou Weixin, the public index of WeChat Official Account articles, in flat rows: title, summary, account, date, cover and a link. Up to 100 articles per keyword, as many keywords as you like in one run.
- **Full article text, ready for AI** — any `mp.weixin.qq.com/s/…` link as clean plain text with paragraphs, Markdown with headings, lists and images for RAG and LLM pipelines, or the article's HTML. Hidden layout code and inline styles are stripped out.
- **Who published it** — Official Account name, WeChat ID (微信号), the account's internal id and biz, its avatar and self-description, plus the article's author.
- **When and where** — exact publish time in ISO format and the IP province WeChat shows under the article (IP属地).
- **Original or repost** — the 原创 (original) mark, article type, character count, images and videos counted.
- **Every image and linked article** — all image links of the body and the WeChat articles it links to ("往期推荐", series, related reads).
- **Every input line answered** — a deleted article, a temporary link or a typo comes back as a short row with the reason, free of charge.
- **Light and fast** — plain HTTP, no browser: 10 search results in about a second, a full article in a few seconds.

### How to use

1. Press **Start** — the example keyword and article link work as is.
2. Put your own keywords and article links in place of the example. Copy a link in WeChat with **··· → Copy Link**, or take it from any web page.
3. Download the results as JSON, CSV, Excel or HTML, send them to Google Sheets, or take them through the API.

### Input

| Field | What it does | Example |
|---|---|---|
| `queries` | Keywords, one per line, in Chinese or English. Each one returns WeChat articles found by Sogou Weixin. | `人工智能`, `新能源汽车`, `DeepSeek` |
| `articleUrls` | WeChat article links: the short `https://mp.weixin.qq.com/s/…` (WeChat: ··· → Copy Link) or the full one with `__biz`, `mid`, `idx`, `sn` and `chksm`. | `https://mp.weixin.qq.com/s/zqnJuv5OVsNGEefM7RguqQ` |
| `maxResults` | Articles per keyword, up to 100. | `50` |
| `textFormat` | `text` (default), `markdown`, `html`, or `none` for the details only. | `markdown` |
| `includeImages` | Lists every image of the article body. | `true` |

Monitor a brand and a market across WeChat:

```json
{
  "queries": ["比亚迪", "新能源汽车 出海", "BYD"],
  "maxResults": 100
}
```

Full text of articles for an AI pipeline:

```json
{
  "articleUrls": [
    "https://mp.weixin.qq.com/s/zqnJuv5OVsNGEefM7RguqQ",
    "https://mp.weixin.qq.com/s/w5Ut1oj9uO2dbQXN386kkA"
  ],
  "textFormat": "markdown"
}
```

### Output

One flat row per result. `type` tells the rows apart: `search-result`, `article` or `error`.

A search result:

```json
{
  "type": "search-result",
  "query": "AI",
  "position": 1,
  "page": 1,
  "title": "AI硬件大跌",
  "summary": "AI硬件、半导体、有色金属、软件、汽车、建筑装饰等板块跌幅居前……",
  "accountName": "周敬人",
  "publishedAt": "2026-11-16T19:31:32.000Z",
  "coverImage": "https://mmbiz.qpic.cn/mmbiz_jpg/26oiaCQ1yoyU…/0?wx_fmt=jpeg",
  "sogouUrl": "https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci…",
  "sogouId": "ab735a258a90e8e1-6bee54fcbd896b2a-b1100a3b88b09d132c610b20adb5927d",
  "scrapedAt": "2026-11-16T21:50:12.000Z"
}
```

A full article:

```json
{
  "type": "article",
  "title": "独家对话罗福莉：AI范式已然巨变！",
  "description": "All in，第二场追赶。",
  "accountName": "语言即世界language is world",
  "accountWechatId": "languageisworld",
  "accountId": "gh_6990113d8818",
  "accountBiz": "MzE5ODg1MTY4Mw==",
  "accountAvatar": "https://wx.qlogo.cn/mmhead/y5RpFDuUObxiahJ…/0",
  "accountDescription": "和我们一起，从这里，探索新世界！",
  "author": "张小珺",
  "publishedAt": "2026-04-24T03:38:14.000Z",
  "ipLocation": "浙江",
  "isOriginal": true,
  "articleType": "article",
  "text": "……",
  "characterCount": 48510,
  "imageCount": 8,
  "videoCount": 0,
  "coverImage": "https://mmbiz.qpic.cn/sz_mmbiz_jpg/V67gTiawBpXWt42…/0?wx_fmt=jpeg",
  "images": ["https://mmbiz.qpic.cn/mmbiz_png/V67gTiawBpXUvVoz…/640?wx_fmt=png&from=appmsg"],
  "linkedArticles": ["https://mp.weixin.qq.com/s?__biz=MzE5ODg1MTY4Mw%3D%3D&mid=2247484867&idx=1&sn=95548c75fb51e6c0bb8f6a7296b625d2"],
  "readOriginalUrl": null,
  "url": "https://mp.weixin.qq.com/s/zqnJuv5OVsNGEefM7RguqQ",
  "permanentUrl": "https://mp.weixin.qq.com/s?__biz=MzE5ODg1MTY4Mw%3D%3D&mid=2247484888&idx=1&sn=43afa1c95ecf049ffdf2cf21b4cd591b",
  "input": "https://mp.weixin.qq.com/s/zqnJuv5OVsNGEefM7RguqQ",
  "scrapedAt": "2026-11-16T21:50:15.000Z"
}
```

| Field | Meaning |
|---|---|
| `title`, `description` | Article title and the account's short summary of it |
| `accountName`, `accountWechatId`, `accountId`, `accountBiz` | Official Account name, its WeChat ID (微信号), its `gh_` id and biz id |
| `accountAvatar`, `accountDescription` | Account avatar and self-description |
| `author` | Author named under the title |
| `publishedAt` | Publish time, ISO 8601, UTC |
| `ipLocation` | Province WeChat shows under the article (IP属地) |
| `isOriginal` | The article carries WeChat's 原创 (original) mark |
| `articleType` | `article`, `images`, `text`, `video` or `audio` post |
| `text`, `characterCount` | Article body in the chosen format, and its length in characters |
| `images`, `imageCount`, `videoCount`, `coverImage` | Image links of the body, counts and cover |
| `linkedArticles` | WeChat articles linked from the body |
| `readOriginalUrl` | The "阅读原文" (read the original) link, when the article has one |
| `url`, `permanentUrl` | Short article link and its long permanent form |
| `summary`, `sogouUrl`, `query`, `position` | Search rows: Sogou summary, link that opens the article in a browser, keyword and rank |

### Use it with AI agents

Connect the Actor as a tool in Claude, ChatGPT, Cursor or n8n through the Apify MCP server: one keyword or one link in, compact rows out in seconds. Ask your agent "what are WeChat accounts writing about DeepSeek this week" or "summarise this WeChat article" and it gets the data it needs.

### Integrations

Google Sheets, Make, Zapier, n8n, Slack, webhooks and the Apify API. Schedule a run every morning for your keywords and get the new WeChat coverage of your brand, competitors and market in your inbox or table.

### Who uses it

- **China market research** — what Chinese media, companies and analysts publish about a market, a product or a policy.
- **Brand and PR monitoring** — mentions of your brand and competitors across WeChat Official Accounts.
- **Investors and analysts** — company news, industry reports and sentiment from the platform where China reads its news.
- **AI and RAG pipelines** — clean Chinese long-form text in Markdown for training, retrieval and summaries.
- **Content and KOL research** — which accounts write about a topic, how original they are and where they post from.

### FAQ

**Do I need a WeChat account or a login?** No. The Actor reads what WeChat and Sogou show to any visitor.

**Which links work?** Short article links `https://mp.weixin.qq.com/s/…` — exactly what WeChat gives you with **··· → Copy Link** — and full links with `__biz`, `mid`, `idx`, `sn` and `chksm`. Search rows carry a Sogou link that opens the article in your browser in one click.

**How many search results per keyword?** Up to 100 — as many as Sogou Weixin shows. Add more keywords and variations (in Chinese and English) for wider coverage.

**How fresh is the data?** Every run collects it live from WeChat and Sogou.

### Need data at scale?

Daily exports for millions of rows, a pipeline into your CRM, data warehouse or BI, monitoring of whole lists of WeChat accounts, or a scraper for another Chinese platform — contact us.

# Actor input Schema

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

Find WeChat Official Account articles by keyword, in Chinese or English (人工智能, 新能源, Tesla, DeepSeek). One keyword per line. Each search row has the title, summary, account, date and cover. Leave empty to only read the article links below.

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

WeChat article links (https://mp.weixin.qq.com/s/…, or the full link with \_\_biz, mid, idx, sn and chksm). Each one returns the full article: text, account, WeChat ID, author, date, province, original mark, images and linked articles. In WeChat: ··· → Copy Link.

## `maxResults` (type: `integer`):

How many articles to return for each keyword. Sogou Weixin shows up to 100 per keyword.

## `textFormat` (type: `string`):

Form of the article text: clean plain text, Markdown with headings, lists and images, the article's HTML, or none (only the details).

## `includeImages` (type: `boolean`):

Add the links of all images in the article body.

## Actor input object example

```json
{
  "queries": [
    "AI"
  ],
  "articleUrls": [
    "https://mp.weixin.qq.com/s/zqnJuv5OVsNGEefM7RguqQ"
  ],
  "maxResults": 10,
  "textFormat": "text",
  "includeImages": true
}
```

# Actor output Schema

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

All rows of this run.

# 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": [
        "AI"
    ],
    "articleUrls": [
        "https://mp.weixin.qq.com/s/zqnJuv5OVsNGEefM7RguqQ"
    ],
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("mastertools/wechat-articles-scraper").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": ["AI"],
    "articleUrls": ["https://mp.weixin.qq.com/s/zqnJuv5OVsNGEefM7RguqQ"],
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("mastertools/wechat-articles-scraper").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": [
    "AI"
  ],
  "articleUrls": [
    "https://mp.weixin.qq.com/s/zqnJuv5OVsNGEefM7RguqQ"
  ],
  "maxResults": 10
}' |
apify call mastertools/wechat-articles-scraper --silent --output-dataset

```

## MCP server setup

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

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/ElCAY6WdzDaOHt29Q/builds/8kCSKX6MgrjiGc9g7/openapi.json
