# WeChat Article Scraper: Full Text by Keyword, Link or Album (`neverempty/wechat-articles-full-text`) Actor

Get WeChat Official Account (微信公众号) articles as clean full text. Search by keyword, paste article links, or read a whole album. Each row: title, account, author, publish time, full text, image URLs and the article link. No login, no start fee: you pay per article returned. JSON, CSV or Excel.

- **URL**: https://apify.com/neverempty/wechat-articles-full-text.md
- **Developed by:** [NeverEmpty](https://apify.com/neverempty) (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.79 / 1,000 article returneds

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 Article Scraper: Full Text by Keyword, Link or Album

Scrape WeChat Official Account (微信公众号) articles as full text, without login or a WeChat account. Search by keyword, paste article links, or read a whole album (合集), and get text you can read, search, translate or feed to an AI model.

Each row is one article with its full text: title, account, author, publish time, summary, the text with its paragraphs, image URLs and the article link. No cookies, no start fee: you pay only for articles returned.

### What you get in one run

- **Search by keyword** in Chinese or English (人工智能, 新能源汽车, ChatGPT…). Articles come back in the order the WeChat article search ranks them, with the rank in each row.
- **Full text in every row**, not just the title and summary. Paragraph breaks are kept, so the text is ready for reading, translation, summaries or RAG.
- **Paste article links** (short `mp.weixin.qq.com/s/…` links or the long links WeChat's Share button copies) and get each article in full, up to 1,000 per run.
- **Read a whole album** (合集) of an account from one link, as many articles as you set.
- **Image URLs and the cover image** of each article, plus the HTML body if you switch it on.
- **Each article once per run.** An article found by two keywords, or by a keyword and a link, is returned and charged once.
- **Free note rows explain what was not returned.** Deleted articles, wrong links and keywords with fewer results than asked come back as free rows of type `note` with the reason.

### How to use it

1. Type one or more keywords in **Search keywords**, or paste links in **Article links** or **Album links**. You can mix all three in one run.
2. Set **Articles per keyword** (up to 100) and **Articles per album** (up to 1,000).
3. Click **Start**. Download the results as JSON, CSV or Excel, or read them through the API.

Example input:

```json
{
    "keywords": ["人工智能", "新能源汽车"],
    "maxArticlesPerKeyword": 20,
    "articleUrls": ["https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw"],
    "albumUrls": [],
    "includeHtml": false
}
```

### Input fields

| Field | What it does |
|---|---|
| `keywords` | Words to search WeChat Official Account articles for. Each keyword returns up to `maxArticlesPerKeyword` articles in search order. |
| `maxArticlesPerKeyword` | Articles per keyword, 1 to 100 (default 20). |
| `articleUrls` | WeChat article links to read in full: `https://mp.weixin.qq.com/s/…` or the long link with `__biz`, `mid`, `idx`, `sn` and `chksm`. |
| `albumUrls` | WeChat album links, like `https://mp.weixin.qq.com/mp/appmsgalbum?__biz=…&album_id=…`. |
| `maxArticlesPerAlbum` | Articles per album, 1 to 1,000 (default 50). |
| `includeHtml` | Also return the article body as HTML in `contentHtml` (off by default). |

If you leave everything empty, the run searches the example keyword 人工智能 for 10 articles.

### Output example

```json
{
    "type": "article",
    "status": "ok",
    "id": "MzIzNjc1NzUzMw==_2247780992_1",
    "title": "“老黄骗人”！5070首批评测：说好1/3价格赛4090，实际不如4070Ti",
    "accountName": "量子位",
    "accountId": "gh_114e76fd6e5d",
    "biz": "MzIzNjc1NzUzMw==",
    "author": "关注前沿科技",
    "publishedAt": "2025-03-05T04:22:09.000Z",
    "digest": "博主：史上最差70系列",
    "text": "金磊 发自 凹非寺\n量子位 | 公众号 QbitAI\n一夜之间，RTX 5070被网友们喷成“史上最差的70系列”了。\n…",
    "textLength": 3000,
    "imageUrls": ["https://mmbiz.qpic.cn/mmbiz_png/…/640?wx_fmt=png&from=appmsg"],
    "coverUrl": "https://mmbiz.qpic.cn/mmbiz_jpg/…/0?wx_fmt=jpeg",
    "sourceUrl": null,
    "url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw",
    "keyword": null,
    "searchRank": null,
    "albumUrl": null,
    "input": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw",
    "scrapedAt": "2026-11-04T03:10:00.000Z"
}
```

| Column | Meaning |
|---|---|
| `id` | Fixed article ID built from the account `biz`, the message ID and the article's position in that day's post. |
| `accountName`, `accountId` | The Official Account's name and its `gh_` ID. |
| `publishedAt` | Publish time, UTC. |
| `text`, `textLength` | Full article text with paragraph breaks, and its length in characters. |
| `digest` | The summary the account wrote for the article. |
| `imageUrls`, `coverUrl` | Images in the article body, and the cover image. |
| `sourceUrl` | The "read the original" link, when the article has one. |
| `url` | The article link. Album and link inputs give the full share link; keyword rows give the article's id link (`__biz`, `mid`, `idx`). |
| `keyword`, `searchRank` | For keyword results: the keyword and the rank in the search. |
| `albumUrl` | For album results: the album it came from. |
| `note` | On free rows (`type` = `note`): why that input returned nothing. |

### Pricing

You pay per article returned (the `article-returned` event). There is no start fee, and rows of type `note` are never charged. The price per 1,000 articles for your plan is shown in the **Pricing** tab. If you set a maximum total charge for a run, the run stops at that amount. Its last row shows how many inputs were not read.

### FAQ

**How do I scrape WeChat Official Account articles without logging in?**
Type a keyword or paste article links in this Actor and click Start. It reads the public article pages and returns the full text, title, account and publish time of each article. You do not need a WeChat account.

**How do I get the full text of a WeChat article from its link?**
Paste the link in **Article links**. The short `mp.weixin.qq.com/s/…` link and the long link copied from WeChat's Share or Copy Link button both work. Each link returns one row with the full text.

**How do I download all articles in a WeChat album (合集)?**
Paste the album link in **Album links** and set **Articles per album**. The articles come back in the order the album lists them.

**Can I export WeChat articles to Excel or CSV?**
Yes. Open the run's Storage tab and download the dataset as Excel, CSV, JSON or XML.

**Can I use WeChat article text for AI, translation or RAG?**
Yes. The `text` column keeps paragraph breaks and leaves out page scripts and buttons, so it can go straight into a translation tool, a summary prompt or a vector database.

### Limitations

- Each keyword returns up to about 100 articles, so `maxArticlesPerKeyword` goes up to 100. A keyword with fewer results returns the ones found and a free note row.
- WeChat's search can ask for a verification step after a few dozen articles for one keyword. The run then moves on to the next input and writes a free note row with how many articles that keyword returned. Album and article-link inputs do not go through the search; for more articles on one topic, add several related keywords.
- Each article is read at a steady, polite pace, so a run takes roughly 15 to 20 seconds per article.
- Read counts, likes and comments are not included.
- Long article links need the full link copied from WeChat's Share button (with its `chksm=` part), or use the short link. An incomplete link returns a free note row that says so.
- If an article or search page cannot be read, that input comes back as a free note row with the reason.
- Deleted or removed articles come back as free rows.
- WeChat's search shows each article without its share code, so `url` in keyword rows is the id link (`__biz`, `mid`, `idx`); a desktop browser may not open it directly. The full text is already in the row, and `id` stays the same across runs.

### Thanks for using this Actor

We build these tools for people who run them every day, and we improve them from what users tell us.

- **Missing a field, or need another filter?** Tell us in the **Issues** tab. If the data is there, we add it.
- **Found a bug or a wrong value?** Post the run ID in the **Issues** tab. Wrong data is the thing we fix first.

If this Actor saved you time, a short review helps other people find it.

# Actor input Schema

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

Words to search WeChat Official Account articles for, in Chinese or English (for example 人工智能 or ChatGPT). Each keyword returns up to the number of articles set below, in the order the WeChat article search ranks them. Leave empty if you only use article or album links.

## `maxArticlesPerKeyword` (type: `integer`):

How many articles to return for each keyword. The WeChat article search shows about 100 articles per keyword to visitors who are not logged in.

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

WeChat article links to read in full: the short link https://mp.weixin.qq.com/s/… or the long link copied from WeChat's Share or Copy Link button (https://mp.weixin.qq.com/s?\_\_biz=…\&mid=…\&idx=…\&sn=…\&chksm=…). Up to 1,000 per run.

## `albumUrls` (type: `array`):

WeChat album (合集) links, like https://mp.weixin.qq.com/mp/appmsgalbum?\_\_biz=…\&album_id=…. Every article in the album is returned, in the order the album lists them, up to the number set below.

## `maxArticlesPerAlbum` (type: `integer`):

How many articles to return from each album.

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

Also return the article body as HTML (contentHtml), for example to keep the layout or re-publish with images in place. Off by default: the text column already holds the full article.

## Actor input object example

```json
{
  "keywords": [
    "人工智能"
  ],
  "maxArticlesPerKeyword": 10,
  "maxArticlesPerAlbum": 50,
  "includeHtml": false
}
```

# Actor output Schema

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

One row per WeChat article (type article): title, account name and ID, author, publish time, summary, full text, text length, image URLs, cover image, article link, and the keyword and search rank or album it came from. Inputs that return nothing (deleted articles, wrong links, keywords with fewer results) come back as free rows of type note that say why.

# 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": [
        "人工智能"
    ],
    "maxArticlesPerKeyword": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("neverempty/wechat-articles-full-text").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": ["人工智能"],
    "maxArticlesPerKeyword": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("neverempty/wechat-articles-full-text").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": [
    "人工智能"
  ],
  "maxArticlesPerKeyword": 10
}' |
apify call neverempty/wechat-articles-full-text --silent --output-dataset

```

## MCP server setup

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

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/MHo15IGfeqUuQwddN/builds/67UYGUzfnpP3075Kg/openapi.json
