# WeChat Articles Scraper - Search & Full Text (公众号) (`scrapewise/wechat-articles`) Actor

Search WeChat Official Account articles (公众号文章) by keyword without login and get the full article text in the same run: title, account, author, publish date, digest, cover, images and the complete body. Also reads article links you already have. Failed items are free.

- **URL**: https://apify.com/scrapewise/wechat-articles.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (community)
- **Categories:** Social media, News
- **Stats:** 2 total users, 1 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: search Official Account articles and get the full text

Search [WeChat](https://weixin.qq.com) Official Account articles (公众号文章) by keyword **without
an account or a WeChat login**, and get **the complete article body in the same run**: title,
account, author, publish date, digest, cover, images and the full text, ready for analysis.

Built for Chinese-language corpora and LLM datasets, media and brand monitoring in China,
competitor and industry research, and anyone who needs to read what Chinese companies, media and
creators publish on WeChat, where most of that content lives.

| What you need | What this Actor does | Price here |
|---|---|---|
| Articles for a keyword | title, account, date, digest, cover and link, ranked as on WeChat search | US$ 4.00 / 1,000 |
| The full article | complete text, author, account id, all images | + US$ 10.00 / 1,000 |
| Articles you already have | send `mp.weixin.qq.com` links, get the full article | US$ 14.00 / 1,000 |

So a keyword search **with the full text of every article costs US$ 14 per 1,000 articles**.
Rows that could not be delivered (a deleted article, a blocked page, a keyword with no results)
come back with a stable `errorCode` and **are never charged**. Articles older than your date
filter and duplicates across keywords are skipped and not charged either.

### What you can ask for

| You send | You get |
|---|---|
| `queries`: `新能源汽车`, `跨境电商`, `AI agent` | up to about 100 articles per keyword, in WeChat's relevance order |
| `includeContent: false` | only the search data, for a cheaper scan of what is being published |
| `publishedAfter`: `2026-01-01` or `30` | only articles from that date on, or from the last 30 days |
| `articleUrls`: `https://mp.weixin.qq.com/s/...` | the full article for each link |

Keywords work in Chinese and English, but WeChat is a Chinese-language platform: Chinese
keywords return far more.

### Output

One row per article.

```json
{
  "type": "article",
  "searchQuery": "咖啡",
  "position": 3,
  "page": 1,
  "title": "咖啡自由后,我们离“瑰夏自由”还有多远?",
  "summary": "…",
  "accountName": "中国新闻周刊",
  "accountId": "gh_…",
  "author": "肖皖璇",
  "publishedAt": "2023-06-13T…Z",
  "digest": "…",
  "coverImage": "http://mmbiz.qpic.cn/…",
  "content": "full article text, one paragraph per line…",
  "contentLength": 3141,
  "images": ["http://mmbiz.qpic.cn/…"],
  "imageCount": 9,
  "articleUrl": "https://mp.weixin.qq.com/s?src=11&timestamp=…&signature=…",
  "scrapedAt": "2026-09-25T21:00:01Z",
  "errorCode": null,
  "error": null
}
```

The dataset has two views: **Overview** (title, account, author, date, size) and **Full text**.

### Good to know

- **About 100 articles per keyword.** That is the most WeChat search shows without a login
  (10 pages). For more coverage, split a topic into several keywords: duplicates across them are
  removed and not charged.
- **The article link is temporary.** WeChat search hands out signed links that expire after a
  while. Save the text you need in the same run; that is why the full body comes included.
- **Image posts are included.** WeChat's photo posts (小绿书) come with their caption as `content`,
  every photo in `images` and `postType: "image_post"`.
- **No read or like counts.** Those need a logged-in WeChat client, and this Actor never uses one.
- **Deleted or restricted articles** come back as a row with `contentError` and no charge for
  the text.

### Errors you may see

| `errorCode` | Meaning | Charged |
|---|---|---|
| `NO_RESULTS` | no article for this keyword in the chosen period | no |
| `BLOCKED` | the search page did not come back after several attempts; run again | no |
| `NOT_REACHED` | the run timeout arrived before this keyword | no |
| `INVALID_URL` | the link is not an `mp.weixin.qq.com` article | no |
| `INVALID_INPUT` | `publishedAfter` is not a date or a number of days | no |
| `LINK_NOT_RESOLVED` | the search listed the article but did not release its link; you still get title, account, date and digest | no |

### FAQ

**Do I need a WeChat account or cookies?** No. Nothing to log in to, nothing to paste.

**How fast is it?** About 10 articles every 10 to 20 seconds with the full text on, a bit
faster with it off.

**Can I use it from an AI agent?** Yes, through the Apify MCP server or the Apify API, like any
Actor.

**What if a run is cut by its timeout?** The Actor stops a few seconds before the limit and ends
successfully with everything it already delivered, telling you in the status message how to get
the rest.

# Actor input Schema

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

One keyword per line, in Chinese or English. Each keyword returns up to about 100 articles (10 result pages, the most Sogou WeChat search shows without login).

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

Up to 100. Articles are ordered by relevance, as on WeChat search.

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

Open each article and add the complete body, author, account id and images. Off = only the search data (title, account, date, digest, cover, link), which is cheaper.

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

Keep only articles published on or after this date (YYYY-MM-DD) or in the last N days (for example 7). Older articles are skipped and not charged.

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

mp.weixin.qq.com article links you already have. Each one returns the full article.

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

Used only for the search pages. The default Apify Proxy works.

## Actor input object example

```json
{
  "queries": [
    "新能源汽车",
    "跨境电商"
  ],
  "maxResultsPerQuery": 20,
  "includeContent": true,
  "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/27ccHpLeLeQNv98n6/openapi.json
