# WeChat Official Account Scraper 公众号—Articles  & MD (`axon-studio/wechat-official-account-scraper`) Actor

Scrape WeChat Official Account (微信公众号) articles, account profiles & verified corporate owners by keyword or mp.weixin.qq.com URLs. Extract full article text, LLM-ready Markdown, HD images, 19-digit Doc ID, WeChat ID & IP province with zero login. Ready for n8n & Claude MCP.

- **URL**: https://apify.com/axon-studio/wechat-official-account-scraper.md
- **Developed by:** [Axon Studio](https://apify.com/axon-studio) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 92.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 item scrapeds

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

Extract full-length articles, **LLM-ready Markdown (`articleMarkdown`)**, high-resolution images, Official Account metadata, and publisher IP provinces (`regionEn`) from **WeChat Official Accounts (微信公众号 / `mp.weixin.qq.com`)** — China's primary publishing ecosystem for corporate press releases, industry research reports, policy analysis, and deep tech journalism.

**Full article text (`articleText`), structured Markdown (`articleMarkdown`), and HD images (`images`) are INCLUDED at 1 flat rate (from `$3.99 / 1,000 articles`) — saving you `$29.99 / 1,000` in separate detail add-on fees!** **100% no WeChat login or cookies required.** Free plan users get a preview of up to **15 articles per run** (10 lifetime preview runs); upgrade to any paid Apify plan to unlock up to **5,000 articles per run**.

[![Open in Apify Console](https://img.shields.io/badge/🚀_Try_Free_in_Apify_Console-100_Articles_in_15s-07C160?style=for-the-badge)](https://console.apify.com/actors/XconQ03i6omkEu9jo/input)
[![Full Text & Markdown Included](https://img.shields.io/badge/Full_Text_%26_LLM_Markdown-Included_Free_\(No_$29.99_Fee\)-blueviolet?style=for-the-badge)](https://console.apify.com/actors/XconQ03i6omkEu9jo/input)
[![100% No Login](https://img.shields.io/badge/Zero_WeChat_Login-Ready_for_n8n_%26_Claude_MCP-00A1D6?style=for-the-badge)](https://console.apify.com/actors/XconQ03i6omkEu9jo/input)

| Need | Actor |
| :--- | :--- |
| **WeChat Official Account Articles & Markdown (微信公众号)** | **[axon-studio/wechat-official-account-scraper](https://apify.com/axon-studio/wechat-official-account-scraper)** *(Current)* |
| **Douyin Videos, 1080p MP4 & Shop (抖音短视频/商城)** | **[axon-studio/douyin-scraper](https://apify.com/axon-studio/douyin-scraper)** |
| **Sina Weibo Search, Posts & Hot Trends (新浪微博)** | **[axon-studio/weibo-scraper](https://apify.com/axon-studio/weibo-scraper)** |
| **Bilibili Videos, Danmaku & UP Creators (哔哩哔哩 B站)** | **[axon-studio/bilibili-scraper](https://apify.com/axon-studio/bilibili-scraper)** |
| **Goofish / Xianyu Second-Hand Deals (闲鱼二手商品)** | **[axon-studio/goofish-xianyu-scraper](https://apify.com/axon-studio/goofish-xianyu-scraper)** |
| **BlackCat Consumer Complaints (新浪黑猫投诉)** | **[axon-studio/blackcat-complaints-scraper](https://apify.com/axon-studio/blackcat-complaints-scraper)** |

#### Copy to your AI assistant (Claude, ChatGPT, Cursor & Windsurf)

```text
Help me use axon-studio/wechat-official-account-scraper on Apify to extract WeChat Official Account (微信公众号) articles, full text, and LLM-ready Markdown. Read https://apify.com/axon-studio/wechat-official-account-scraper.md for complete documentation, input schema, output fields, and pricing. Configure the optimal input JSON for my use case (supports English or Chinese keywords, specific account names, time filters, and direct mp.weixin.qq.com URLs).
```

***

### What Can This WeChat Official Account Scraper Do? (Features)

| Capability | Built-In Advantage |
| :--- | :--- |
| **3 Streamlined Workflows (`article_search`, `account_articles`, `article_details`)** | Search articles across all WeChat Official Accounts by keyword, monitor specific Official Accounts (e.g., `财联社`, `第一财经`, `晚点LatePost`), or extract full text directly from `mp.weixin.qq.com` URLs. |
| **Full Article Text & LLM Markdown Included Free** | Automatically parses `#js_content` into clean `articleText` and structured **`articleMarkdown`** (headings, bold text, lists, and `![image](url)` links) with **no `$29.99/1k` detail surcharge**. |
| **1,000+ Articles per Keyword via Orthogonal Matrix** | Expands each query across **160+ orthogonal Chinese industry modifiers** + dual autocomplete engines, streaming batches of 10 records to your dataset in real time. |
| **Complete Account & Article Metadata** | Extracts 19-digit numeric **`docId`**, `articleId`, `accountName` (`公众号名称`), `accountId` (`gh_...` WeChat ID), `accountBiz` (`__biz`), `author`, `regionEn`, and `publishedAtIso`. |
| **Auto EN ↔ ZH Keyword Localization** | Enter English queries (`"electric vehicle"`, `"semiconductor"`, `"artificial intelligence"`) and automatically translate and search native Chinese terms (`"新能源汽车"`, `"半导体芯片"`, `"人工智能"`). |
| **256 MB RAM High-Speed Streaming** | Pre-strips multi-MB script/style boilerplate before DOM parsing so runs finish in seconds on just **256 MB RAM** without memory spikes. |

***

### How to Scrape WeChat Official Accounts in 3 Easy Steps

1. **Choose `mode` (or keep default `article_search`)** — Open the **[Input page](https://console.apify.com/actors/XconQ03i6omkEu9jo/input)** and select `article_search` (keyword search), `account_articles` (articles from specific accounts), or `article_details` (direct URLs).
2. **Enter your targets** — Type keywords in **Chinese or English** (e.g., `DeepSeek`, `新能源汽车`), specify `accountNames` (e.g., `财联社`), or paste `mp.weixin.qq.com/s/...` links.
3. **Click "Start"** — Export your dataset in **JSON, CSV, Excel, or Markdown**, or connect via REST API, n8n, Make, or Claude MCP.

***

### WeChat Scraper Use Cases

| Buyer Profile | WeChat Official Account Intelligence Use Case |
| :--- | :--- |
| **AI / LLM & RAG Engineering Teams** | Ingest long-form Simplified Chinese industry articles formatted in clean `articleMarkdown` for vector databases, Dify, LangChain, and LLM fine-tuning |
| **Hedge Funds & Equity Research Desks** | Monitor breaking financial commentary from authoritative Chinese media accounts (`财联社`, `第一财经`, `晚点LatePost`, `华尔街见闻`, `36氪`) and corporate announcements |
| **Global Brand PR & Market Intelligence** | Track brand mentions, competitor product launches, and regional publisher IP distributions (`regionEn`) across China's B2B/B2C media ecosystem |
| **Cross-Border Industry Analysts** | Search Chinese policy updates, EV supply-chain reports, and semiconductor breakthroughs using English keywords with automatic EN-to-ZH translation |

***

### Input

All parameters are configured in the **Input** tab. Below is the complete 1-to-1 parameter reference table and JSON input examples:

| Input Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| **`mode`** | `string` | `"article_search"` | `"article_search"` (Keyword search), `"account_articles"` (Specific accounts), or `"article_details"` (Direct URLs). |
| **`keywords`** | `array` | `[]` *(Prefill: `["DeepSeek", "新能源汽车"]`)* | Keywords in Chinese or English. Automatically translated when `autoLocalize` is enabled. |
| **`accountNames`** | `array` | `[]` | Optional target Official Account names (e.g., `["财联社", "第一财经"]`) for `account_articles` mode. |
| **`publishedWithin`** | `string` | `"any"` | Publication recency filter: `"any"`, `"1d"` (24h), `"7d"`, `"30d"`, or `"180d"` (6 months). |
| **`sortBy`** | `string` | `"relevance"` | `"relevance"` (Most relevant), `"newest"` (Newest first), or `"popular"` (Most popular / content depth). |
| **`articleUrls`** | `array` | `[]` | Optional direct `https://mp.weixin.qq.com/s/...` URLs for full-text and Markdown extraction. |
| **`autoLocalize`** | `boolean` | `true` | Automatically translates English keywords into Simplified Chinese. |
| **`maxResults`** | `integer` | `50` | Maximum articles to extract (`1`–`5,000`; Free plan preview capped at 15 per run, 10 lifetime runs). |
| **`onlyNewResults`** | `boolean` | `false` | Delta Mode: remembers seen IDs in Key-Value Store (`dedup-wechat-articles`) and emits only unseen articles. |
| **`proxyConfiguration`** | `object` | `{"useApifyProxy": false}` | Optional proxy settings. Works out-of-the-box without proxies. |

#### 1. Mode `article_search`: Keyword Search + Full Text & Markdown (JSON)

```json
{
  "mode": "article_search",
  "keywords": ["DeepSeek", "electric vehicle"],
  "publishedWithin": "7d",
  "sortBy": "newest",
  "autoLocalize": true,
  "maxResults": 50,
  "onlyNewResults": false
}
```

#### 2. Mode `account_articles`: Track Articles from Specific Official Accounts (JSON)

*(Tip: Enter Official Account names in `accountNames` to extract recent articles published by those specific accounts)*

```json
{
  "mode": "account_articles",
  "accountNames": ["财联社", "第一财经"],
  "keywords": ["AI"],
  "maxResults": 30
}
```

#### 3. Mode `article_details`: Direct `mp.weixin.qq.com` URL to Markdown Extractor (JSON)

*(Tip: Copy `articleUrl` from search results or paste any `https://mp.weixin.qq.com/s/...` link directly)*

```json
{
  "mode": "article_details",
  "articleUrls": [
    "https://mp.weixin.qq.com/s?__biz=MzkxNTYwNzM4NQ==&mid=2247485123&idx=1&sn=3ec55e3281686ee0"
  ],
  "maxResults": 10
}
```

***

### Output

All records are stored in your Apify **Dataset** and can be exported to JSON, CSV, Excel, XML, or Parquet. Below is a sample output matching the `"DeepSeek"` input above:

```json
{
  "docId": "5672526215858065985",
  "articleId": "wx_7ef861b6d757b18c",
  "mode": "article_search",
  "title": "本地部署DeepSeek+MATLAB，搭建属于你的AI知识库",
  "accountName": "NewMAT",
  "accountId": "gh_36a316a4b3c6",
  "accountBiz": "MzkxNTYwNzM4NQ==",
  "author": "Mortal",
  "publishedAtIso": "2026-11-07T11:55:20Z",
  "publishTimestamp": 1794052520,
  "wordCount": 1056,
  "regionName": "甘肃",
  "regionEn": "Gansu",
  "summary": "Part one 前期工作 先下载本地部署模型ollama。浏览器上搜索ollama，即可在官网下载安装...",
  "articleText": "Part one 前期工作\n\n先下载本地部署模型ollama。浏览器上搜索ollama，即可在官网下载安装...",
  "articleMarkdown": "# 本地部署DeepSeek+MATLAB，搭建属于你的AI知识库\n\n**公众号**: NewMAT | **作者**: Mortal | **发布时间**: 2026-11-07T11:55:20Z\n\nPart one 前期工作...",
  "images": [
    "https://mmbiz.qpic.cn/sz_mmbiz_png/cNTcPaho6nvtLSK13lwiblpT4mre/640?wx_fmt=png"
  ],
  "coverUrl": "https://mmbiz.qpic.cn/sz_mmbiz_png/cNTcPaho6nvtLSK13lwiblpT4mre/0?wx_fmt=png",
  "articleUrl": "https://mp.weixin.qq.com/s?src=11&timestamp=1794052520&ver=5612&signature=...",
  "queryUsed": "DeepSeek",
  "originalKeyword": "DeepSeek",
  "scrapedAt": "2026-11-08T00:27:00Z"
}
```

#### Output Field Definitions

- **`docId` / `articleId`**: 19-digit numeric document ID (`docID`) and alphanumeric WeChat article identifier (`wx_...`).
- **`title` / `summary`**: Clean HTML-stripped article headline and concise excerpt (zero `<em>` tag residue).
- **`accountName` / `accountId` / `accountBiz` / `author`**: Official Account display name (`公众号名称`), WeChat handle (`gh_...`), internal base64 `__biz` code, and article author.
- **`articleText` / `articleMarkdown` / `wordCount`**: Complete plain-text body, LLM-ready Markdown with inline image links, and character count.
- **`images` / `coverUrl`**: Array of high-resolution `mmbiz.qpic.cn` article images and thumbnail cover.
- **`publishedAtIso` / `publishTimestamp` / `regionName` / `regionEn`**: Accurate ISO 8601 UTC and Unix epoch timestamps plus publisher IP province mapped to English (`Shanghai`, `Beijing`, `Guangdong`).

#### Data Coverage (Always Populated vs. Conditional)

| Coverage Tier | Fields |
| :--- | :--- |
| **Always Populated (100%)** | `docId`, `articleId`, `mode`, `title`, `accountName`, `accountId`, `accountBiz`, `author`, `publishedAtIso`, `publishTimestamp`, `summary`, `articleText`, `articleMarkdown`, `wordCount`, `articleUrl`, `queryUsed`, `scrapedAt` |
| **Conditional (When Present in Article)** | `regionName`, `regionEn` (populated when publisher IP province is exposed or detected), `images`, `coverUrl` (populated when the article contains embedded images) |

***

### Automated Daily WeChat Monitoring (Schedules, API, n8n & Claude MCP)

1. Run the Actor once with your target `keywords` or `accountNames`.
2. In **Apify Console → Schedules → Create new schedule**, select **`axon-studio/wechat-official-account-scraper`** and set your cron frequency (e.g., hourly or daily).
3. Enable **`onlyNewResults: true`** (Delta Mode) so future runs skip previously delivered `articleId`s.
4. **n8n / Make / Claude MCP**: Use the official Apify node in n8n or Make, or click **"Copy setup prompt"** at the top right of this page to connect directly to Claude Desktop, Cursor, or Dify.

#### Python, JavaScript & Synchronous REST API Integration

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")
run = client.actor("axon-studio/wechat-official-account-scraper").call(run_input={
    "mode": "article_search",
    "keywords": ["DeepSeek", "新能源汽车"],
    "publishedWithin": "7d",
    "sortBy": "newest",
    "maxResults": 50,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["docId"], item["accountName"], item["title"], item["wordCount"])
```

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

const client = new ApifyClient({ token: 'YOUR_APIFY_API_TOKEN' });
const run = await client.actor('axon-studio/wechat-official-account-scraper').call({
    mode: 'article_search',
    keywords: ['DeepSeek'],
    maxResults: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0]);
```

```bash
curl -X POST "https://api.apify.com/v2/acts/axon-studio~wechat-official-account-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"article_search","keywords":["DeepSeek"],"maxResults":20}'
```

***

### How Much Does It Cost to Scrape WeChat Official Accounts? (Pricing)

**From $3.99 per 1,000 articles on Gold plans (`$5.99 / 1,000` on Free/Starter) + `$0.05` per Actor start**

- **Full Article Text & Markdown Included Free**: Unlike scrapers that charge `$5.99/1k` for search snippets plus an extra `$29.99/1k` for article details (`$35.98/1k` total), this Actor includes full `articleText`, `articleMarkdown`, and `images` at **1 flat rate**.
- **Free Tier Preview**: Free accounts get **10 lifetime preview runs** (up to **15 articles per run**) with no credit card required; upgrade to any paid Apify plan to unlock unlimited runs and up to 5,000 articles per run.
- **No Extra Server Compute Fees**: Memory and CPU usage are included in the Pay-Per-Event price.

***

### FAQ & Legal Compliance

#### What is a WeChat Official Account (微信公众号)?

A WeChat Official Account is the primary long-form publishing channel used by corporations, financial media, government agencies, and research institutes inside WeChat (Weixin, 微信).

#### Do I need a WeChat account or login cookies?

**No.** This Actor extracts publicly accessible WeChat Official Account articles and metadata without requiring any personal WeChat login, QR scan, or cookies.

#### Is it legal to scrape public WeChat Official Account articles?

This Actor collects publicly published articles and institutional account metadata visible on the public web and does not access private WeChat chats or personal user accounts. Under **GDPR** and **PIPL**, ensure you have a lawful basis for market research or AI analytics. *Not affiliated with Tencent Holdings Ltd.*

# Actor input Schema

## `mode` (type: `string`):

Choose how to discover and extract WeChat Official Account articles.

## `keywords` (type: `array`):

Enter one or more keywords in Chinese or English (e.g., 'DeepSeek', 'Tesla', '新能源汽车', 'artificial intelligence'). Automatically translated into Chinese when Auto-Localize is enabled.

## `accountNames` (type: `array`):

Optional: Enter specific WeChat Official Account names (e.g., '财联社', '第一财经', '晚点LatePost', '36氪') to extract articles published by those accounts.

## `publishedWithin` (type: `string`):

Filter WeChat Official Account articles by publication recency.

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

Sort extracted articles by relevance, newest publication timestamp first, or content depth/popularity.

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

Optional: Paste direct https://mp.weixin.qq.com/s/... URLs to extract their full text, LLM Markdown, and HD images directly.

## `autoLocalize` (type: `boolean`):

Automatically translates English brand or topic queries into Simplified Chinese via built-in dictionary and Google Translate.

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

Maximum number of WeChat Official Account articles to extract (Free tier preview: 10 lifetime runs, up to 15 articles per run; up to 5,000 unlocked for paid plans).

## `onlyNewResults` (type: `boolean`):

Remembers previously scraped article IDs across scheduled runs and outputs only newly published articles.

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

Optional proxy settings. Works out-of-the-box without proxies.

## Actor input object example

```json
{
  "mode": "article_search",
  "keywords": [
    "DeepSeek",
    "新能源汽车"
  ],
  "accountNames": [],
  "publishedWithin": "any",
  "sortBy": "relevance",
  "articleUrls": [],
  "autoLocalize": true,
  "maxResults": 50,
  "onlyNewResults": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing extracted WeChat Official Account articles, full text, Markdown, and images.

# 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 = {
    "keywords": [
        "DeepSeek",
        "新能源汽车"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("axon-studio/wechat-official-account-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 = { "keywords": [
        "DeepSeek",
        "新能源汽车",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("axon-studio/wechat-official-account-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 '{
  "keywords": [
    "DeepSeek",
    "新能源汽车"
  ]
}' |
apify call axon-studio/wechat-official-account-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,axon-studio/wechat-official-account-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/XconQ03i6omkEu9jo/builds/ttiWZuOC4Ovce0I61/openapi.json
