# WeChat Official Account Articles (`automatic/wechat-articles-scraper`) Actor

Search WeChat Official Account articles (公众号文章) by keyword or account, or paste article and album links. Get title, account, publish time, summary, cover and article link, plus opt-in full text, images, videos, author, Original mark and IP location.

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

## Pricing

from $1.75 / 1,000 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 Official Account Articles

Collect WeChat Official Account articles (微信公众号文章) in minutes: search by keyword, follow an account, read a whole album, or paste article links. Every article comes with its title, account, publish time, summary, cover image and its link. Turn on **full text** for albums and article links to add the complete article text, every image, embedded videos, the author, the Original (原创) mark, the IP location and the account's WeChat id and description.

Press **Start** with the example input and you get 20 fresh articles about 人工智能 right away.

### What you get

- **Keyword search** across WeChat articles, like the WeChat search box, newest articles near the top
- **Account feed**: the recent articles of an official account you name (for example 量子位)
- **Albums (合集)**: every article in an album, newest first
- **Article links**: paste share links and get the full article record
- **Full text on request** for albums and article links: clean paragraph text, all images, video ids and covers, optional HTML
- **Account details**: WeChat id (微信号), original id (gh\_), avatar and description from the article page
- **Date filter**: keep only articles published after a date or within the last days or weeks
- Results you can export to JSON, CSV or Excel, or send to Google Sheets, Slack or your own app through the Apify API

### Use cases

- **Media and PR monitoring**: track what Chinese media and brands publish about you, your competitors or a topic
- **Market research**: follow an industry (EVs, chips, AI, consumer goods) through the accounts that cover it
- **Content and trend analysis**: feed article text into summaries, sentiment or topic models
- **Archiving**: keep a copy of an account's albums with text and images
- **Lead and partner research**: find the official accounts that write about your niche

### How to use it

1. Add **search keywords** (Chinese keywords find the most), **official account names**, or **WeChat article / album links**.
2. Set **Max articles** per search, account or album, and an optional **Published after** date.
3. Switch on **Include full text, images and videos** if you need the article body.
4. Press **Start**. Articles appear in the dataset as they are collected.

Example input:

```json
{
  "searchKeywords": ["新能源汽车", "人工智能"],
  "accounts": ["量子位"],
  "maxResults": 50,
  "publishedAfter": "7 days",
  "includeFullText": false
}
```

Album and article links:

```json
{
  "startUrls": [
    "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzIyNjMxOTY0NA==&action=getalbum&album_id=4241245690560954370",
    "https://mp.weixin.qq.com/s/SvJjliEhFP90Yv97qyN-wA"
  ],
  "includeFullText": true
}
```

### Output

One row per article. With full text it looks like this (text and image list shortened here):

```json
{
  "articleId": "MzIyNjMxOTY0NA==_2247504447_1",
  "title": "我不会再用Keynote做动画了，这个AI网站太震撼了，一句话生成科普视频！",
  "digest": null,
  "articleUrl": "https://mp.weixin.qq.com/s/SvJjliEhFP90Yv97qyN-wA",
  "articleUrlIsTemporary": false,
  "sogouUrl": null,
  "publishedAt": "2025-12-09T06:50:43Z",
  "publishedTimestamp": 1765263043,
  "updatedAt": "2025-12-10T10:18:48Z",
  "accountName": "轩辕的编程宇宙",
  "accountWechatId": "xuanyuancoding",
  "accountGhId": "gh_fe02be2b2ff0",
  "accountBiz": "MzIyNjMxOTY0NA==",
  "accountAvatarUrl": "https://wx.qlogo.cn/mmhead/Q3auHgzwzM5iakZHNmMDuPl0azqlm8pPVtxhYTNqISsiat1OwT8f4I7Q/0",
  "accountDescription": "Youtube、Bilibili博主，全网50W粉丝。前百度、奇安信软件工程师，专注计算机编程、AI产品、Vibe Coding、网络安全",
  "author": "轩辕之风O",
  "coverImageUrl": "https://mmbiz.qpic.cn/mmbiz_jpg/jXQDbLkGBYWovpCGFJXZZgZEsZP4zflhC0PJGhIBnz5yiakbhrnE7jiaOsfk3AMiaSwoRm3RzwicRm5MA0JoqZiaGRQ/0?wx_fmt=jpeg",
  "contentType": "article",
  "isOriginal": true,
  "sourceUrl": "https://svganimate.ai/",
  "ipLocation": "四川",
  "ipCountry": "中国",
  "albumId": "4241245690560954370",
  "albumTitle": "AI产品分享",
  "mid": "2247504447",
  "idx": "1",
  "sn": "e3096dbde76bc1b2b9941aa2d4ce756f",
  "fullTextIncluded": true,
  "fullText": "大家好，我是轩辕。\n我之前在B站发布了很多动画讲解技术的视频，很多人都会问我一个问题：\n“UP主，你的动画是用什么做的啊？”\n在成为一个UP主之前，我其实犹豫了很久。\n因为我是打算做计算机知识类的视频，最好是用动画来呈现。\n因为很多时候，一 ...",
  "contentHtml": null,
  "images": [
    "https://mmbiz.qpic.cn/mmbiz_jpg/jXQDbLkGBYWw43TMdiby2Qnf71bjxicGwQUqgWib6rDWQic3f8KjlfCcgbYAkTaWiavNeavCA9n1Y3UqHP8ZE2X8CBg/640?wx_fmt=jpeg&from=appmsg",
    "https://mmbiz.qpic.cn/mmbiz_gif/jXQDbLkGBYWw43TMdiby2Qnf71bjxicGwQdsvjb31ABNkA3E7x5JPB09Ja4xqT7foU9pvIcXWwGJjZZdYVYzicSdg/640?wx_fmt=gif&from=appmsg"
  ],
  "imageCount": 19,
  "videos": [],
  "fullTextError": null,
  "source": "link",
  "searchKeyword": null,
  "accountQuery": null,
  "input": "https://mp.weixin.qq.com/s/SvJjliEhFP90Yv97qyN-wA",
  "position": null,
  "collectedAt": "2026-11-17T01:20:00Z"
}
```

Search rows have the same fields. They carry WeChat search's link to the article (`sogouUrl`); the fields that come from the article page (WeChat id, author, full text and so on) are filled for album and link rows with full text on. The run summary (key `OUTPUT` in the run's storage) lists every search with its counts, plus anything skipped and why.

### Pricing

Pay per article delivered, nothing for searches that find nothing:

| Event | Free plan | Bronze | Silver | Gold and up |
|---|---|---|---|---|
| Article | $2.50 / 1,000 | $2.25 / 1,000 | $2.00 / 1,000 | $1.75 / 1,000 |
| Full text (only when you switch it on and the text is delivered) | +$1.50 / 1,000 | +$1.35 / 1,000 | +$1.20 / 1,000 | +$1.05 / 1,000 |
| Run start | $0.005 | $0.005 | $0.005 | $0.005 |

You can set a maximum cost per run in the run options; the run stops cleanly before it is reached and keeps everything collected.

### Good to know

- Search results come from Sogou WeChat search (weixin.sogou.com), which shows up to **100 articles per keyword or account**. Use several or narrower keywords to collect more.
- Search results carry WeChat search's **expiring link** (`sogouUrl`): open or save it soon. Switch on **Add the WeChat article link** to also get the mp.weixin.qq.com link; it suits small searches, because WeChat search hands out only a few dozen of those links per run before it asks for a check (the run then stops and keeps what it saved). Album rows and pasted links carry the **permanent** link.
- **Full text** is for albums and pasted article links. WeChat shows a verification instead of the article for search results, so search rows come without full text (`fullTextError` says why) and are not charged for it. To get the text of a search hit, paste its share link or use the account's album.
- **Account feeds** are built from search: they return the account's articles that WeChat search shows, not its complete history. For a complete list, use the account's albums.
- Article links without their `chksm` part get a WeChat verification instead of the article, and account home pages open only inside the WeChat app; the run names them in the summary and moves on. Share links (mp.weixin.qq.com/s/...) always work.
- Read and like counts are visible only inside the WeChat app, so they are not included.
- If WeChat asks for a verification during a run, the run stops that kind of request and keeps everything it saved; if WeChat search asks, albums and article links still run.

# Actor input Schema

## `searchKeywords` (type: `array`):

Up to 30 keywords, each searched across WeChat Official Account articles like the WeChat search box (for example 人工智能, 新能源汽车 or ChatGPT). Chinese keywords find the most articles.

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

Up to 30 official account names (公众号名称), for example 量子位. Returns that account's recent articles as WeChat search shows them; articles by other accounts are left out.

## `startUrls` (type: `array`):

Up to 1,000 links: articles (https://mp.weixin.qq.com/s/... or the long link with \_\_biz, mid, idx, sn and chksm) and albums (合集, https://mp.weixin.qq.com/mp/appmsgalbum?\_\_biz=...\&album_id=...). Albums list every article, newest first. A typo or a deleted article is skipped and named in the run summary; the others still run.

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

How many articles to collect for each keyword, account and album. WeChat search shows up to 100 articles per keyword or account; albums can go higher.

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

Keep only articles published on or after this date (for example 2026-11-01) or within a recent period (for example 7 days). Leave empty for any date.

## `resolveArticleLinks` (type: `boolean`):

Adds the mp.weixin.qq.com link to each search result (every result already has its WeChat search link, sogouUrl). WeChat search hands out only a few dozen of these links per run, then asks for a check; the run then stops and keeps what it saved. Best for small searches. Search links expire after a while, so open or save them soon.

## `includeFullText` (type: `boolean`):

Opens each album article or pasted article link and adds its full text, every image, embedded videos and the account's WeChat id, description and avatar, plus author, Original mark, IP location and album. WeChat shows a verification instead of the article for search results, so search rows come without full text (fullTextError says why) and are not charged for it. Charged per article with full text.

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

Also keeps the article body as HTML (needs full text). Makes rows much larger.

## Actor input object example

```json
{
  "searchKeywords": [
    "人工智能"
  ],
  "maxResults": 20,
  "resolveArticleLinks": false,
  "includeFullText": false,
  "includeHtml": false
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "searchKeywords": [
        "人工智能"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("automatic/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 = {
    "searchKeywords": ["人工智能"],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("automatic/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 '{
  "searchKeywords": [
    "人工智能"
  ],
  "maxResults": 20
}' |
apify call automatic/wechat-articles-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automatic/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/BDDewg1hzRFNRywSD/builds/g7VpHjMSxwUdd5lA0/openapi.json
