# WeChat Article Search Scraper | 公众号 Articles by Keyword (`genial_candlestand/wechat-article-search-scraper`) Actor

Get WeChat Official Account (公众号) articles by keyword: title, digest, account name and \_\_biz, cover image, exact publish time and a permanent mp.weixin.qq.com link. About 20–30 results per keyword, many keywords per run, date filter. No login.

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

## Pricing

from $2.98 / 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 Article Search Scraper | 公众号 Articles by Keyword

![WeChat Article Search Scraper | 公众号 Articles by Keyword](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/wechat-post-content-search-by-keyword-banner-776e07ef.png)

Search WeChat Official Account (公众号) articles by keyword and get one row per article: the headline, the digest, the account name and its \_\_biz account identifier, the cover image, the exact publish time in UTC and Beijing time, and the article's permanent mp.weixin.qq.com link. The data comes from WeChat's public web search, with no login or WeChat account. You can add many keywords per run and keep only articles published after a date.

### What does WeChat Article Search Scraper do?

You enter one or more keywords in Chinese or Latin script, for example 人工智能 or Tesla Model Y. The actor opens WeChat search on so.qq.com in a real browser, reads the result page of each keyword (about 20–30 articles) and saves each unique article as a flat JSON row. Every row carries a permanent mp.weixin.qq.com link that opens in any browser, plus the WeChat identifiers of the account and the push (`accountBiz`, `articleMid`, `articleIdx`). It is made for brand and market analysts, PR teams monitoring Chinese media, data teams building article lists, and AI agents that need recent WeChat articles about a topic.

### How to scrape WeChat articles by keyword

![How WeChat Article Search Scraper works: Opens WeChat search on so.qq.com in a real browser, without login; Reads the single result page of each keyword, one keyword at a time; Opens a new session whe](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/wechat-post-content-search-by-keyword-how-aec16f12.png)

1. Open the actor in Apify Console.
2. Add your keywords in **Keywords**, one per line.
3. Optionally set **Results per keyword**, **Max articles in total** and **Published after** (e.g. `7 days` or `2026-11-01`).
4. Click **Start** and download the results as JSON, CSV, Excel or HTML, or read them through the API.

### How much does it cost to scrape WeChat articles?

Price per event by Apify plan:

| Event | Free | Bronze | Silver | Gold and above |
|---|---|---|---|---|
| Article | $3.50 per 1,000 | $3.325 per 1,000 | $3.15 per 1,000 | $2.975 per 1,000 |
| Article link | $0.30 per 1,000 | $0.285 per 1,000 | $0.27 per 1,000 | $0.255 per 1,000 |
| Actor start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

A test run with the API example input below returned 29 rows in 17 s.

You pay per result. One **Article** event ($0.0035) is one unique article saved to the dataset, so 1,000 articles cost $3.50 on the Free plan. The **Actor start** event ($0.00005) is charged per GB of memory when the run starts: the actor runs with 2 GB, so that is $0.0001 per run.

Not charged: duplicate articles (found by two keywords), articles dropped by the date filter, and keywords with no results. The **Article link** event is never charged by this version: the permanent link is already in every row. The event texts in the price list still describe the previous version (WeChat id, verified flag, Sogou link); the rows contain only the fields listed under "What data can you extract".

| Scenario | Events | Cost (Free plan) |
|---|---|---|
| 1 keyword, about 30 articles | 30 articles + start | $0.1051 |
| 3 keywords, 10 per keyword, capped at 25 articles | 25 articles + start | $0.0876 |
| 40 keywords, about 25 articles each | 1,000 articles + start | $3.5001 |
| A keyword with no results | start only | $0.0001 |

### Input

![WeChat Article Search Scraper input example: Keywords, Results per keyword, Max articles in total, Resolve article links (no longer needed)](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/wechat-post-content-search-by-keyword-input-5205042e.png)

| Field | Type | Default | What it does |
|---|---|---|---|
| `queries` | array of strings (required) | — | Keywords, one per line. Chinese and Latin text both work. Blank lines and repeated keywords are ignored. |
| `maxResultsPerQuery` | integer 1–100 | 100 | Most articles kept per keyword, by rank. The source shows about 20–30 per keyword (7–10 from the backup source) and no further pages, so values above 30 return everything it shows. |
| `maxItems` | integer ≥ 1 | 1000 | Stops the run after this many articles across all keywords. |
| `publishedAfter` | date: absolute (`2026-11-01`) or relative (`7 days`, `1 month`) | — | Keeps only articles published on or after this moment. Applied to the results read per keyword. Must not be in the future. |
| `resolveArticleUrls` | boolean | false | No longer needed and has no effect: every row already has its permanent link. Kept so saved tasks and API calls keep working. |
| `proxyConfiguration` | proxy | Apify datacenter proxy | The datacenter proxy works (a new IP is taken when one is blocked); no proxy also works. Residential was not tested. |

Example input:

```json
{
  "queries": ["茅台", "Moutai"],
  "maxResultsPerQuery": 30,
  "maxItems": 1000,
  "publishedAfter": "1 day"
}
```

### What data can you extract from WeChat articles?

![WeChat Article Search Scraper output example: Title, Account, Published](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/wechat-post-content-search-by-keyword-output-1beb0fb9.png)

| Field | Description |
|---|---|
| `title` | Article headline |
| `description` | Digest shown in search (may end with `...`) |
| `accountName` | Display name of the Official Account |
| `accountBiz` | `__biz` of the account: WeChat's permanent account identifier, the same in every article link of that account |
| `articleMid`, `articleIdx` | WeChat message id of the push and the article's position in it (1 = headline article) |
| `imageUrl` | Cover image (mmbiz.qpic.cn) |
| `publishedAt` | Publish time, ISO 8601 UTC |
| `publishedAtLocal` | Publish time in Beijing time, `YYYY-MM-DD HH:mm:ss` |
| `url`, `articleUrl` | Permanent mp.weixin.qq.com article link (both hold the same link; `articleUrl` is kept for older integrations) |
| `id` | Search document id of the article, used to remove duplicates |
| `query`, `position`, `page` | The keyword that found the article, its 1-based rank, and the page (always 1) |
| `searchSource` | `so.qq.com` (main source) or `sogou` (Sogou WeChat search, the backup) |
| `scrapedAt` | When the row was extracted |

Example item from a real run (links shortened):

```json
{
  "url": "https://mp.weixin.qq.com/s?__biz=MjM5NjQ1NjY4MQ==&mid=2663692345&idx=1&sn=0e14e561bd51c6404640ba5d134e11b7&chksm=bcd0b00f...",
  "id": "5767272808844595934",
  "title": "人工智能全球治理面临哪些现实挑战",
  "description": "人工智能是引领新一轮科技革命和产业变革的战略性技术,以自主学习、迭代演化、全域赋能的特质,深刻重塑全球生产模式、社会运行形态与国际力量格局。...",
  "accountName": "求是网",
  "accountBiz": "MjM5NjQ1NjY4MQ==",
  "articleMid": "2663692345",
  "articleIdx": 1,
  "imageUrl": "https://mmbiz.qpic.cn/mmbiz_jpg/7iaZfzkkfu4rV89f0siblXYTNUzicu62FuEku8jicpgBwpUqfZo8XW6yrOoQicwib6MpiaF2pOZsPvZicJzeCCtajAVHGcPVL1mcGrcPDpSOauU0PVU/0?wxfrom=501&wx_fmt=jpeg",
  "publishedAt": "2026-11-24T11:31:08.000Z",
  "publishedAtLocal": "2026-11-24 19:31:08",
  "articleUrl": "https://mp.weixin.qq.com/s?__biz=MjM5NjQ1NjY4MQ==&mid=2663692345&idx=1&sn=0e14e561bd51c6404640ba5d134e11b7&chksm=bcd0b00f...",
  "position": 1,
  "query": "人工智能",
  "page": 1,
  "searchSource": "so.qq.com",
  "scrapedAt": "2026-11-25T05:48:36.203Z"
}
```

### Use cases

- **Topic scan**: get about 30 articles about a topic such as 人工智能, with the account, publish time and permanent link of each.
- **Brand monitoring on a schedule**: run daily with keywords like 茅台 and Moutai and `publishedAfter: "1 day"` to keep only the last 24 hours. The search index leans towards recent articles.
- **Many keywords, capped spend**: search several brands at once (新能源汽车, 比亚迪, 特斯拉) and stop at a set number of articles with `maxItems`.
- **Account tracking**: group articles by `accountBiz` to see which Official Accounts write about a theme; the identifier stays the same across runs even when the display name changes.
- **Reading lists and pipelines**: feed the permanent links into your own reader, archive or text-analysis pipeline.

### Limitations

- **About 20–30 results per keyword, one page.** Without login the source shows a single result page; further pages need a WeChat login, which the actor does not use. Add more, narrower keywords to get more articles.
- **Backup source gives fewer results.** When so.qq.com stays blocked for a keyword, the actor uses Sogou WeChat search instead, which shows 7–10 articles; those rows have `searchSource: "sogou"`.
- **No sort by date and no server-side time filter.** `publishedAfter` filters the results that were read, so it can leave fewer rows, or none, for a keyword. Rows without a publish time are dropped when the filter is set.
- **No full text, author, images inside the article, read counts, likes or comments.** You get the digest and the cover only.
- **No longer returned since version 0.2**: the account's WeChat id, openid, avatar and verified flag, Sogou links, the video flag and Sogou's total result count. The old Sogou endpoint was retired, and the current search does not show these. `accountBiz` is the stable account identifier now.
- **Fields that can be `null`**: `description`, `accountName`, `accountBiz`, `articleMid`, `articleIdx`, `imageUrl`, `publishedAt`, `publishedAtLocal` and `articleUrl`.
- An article found by two keywords is saved once, under the keyword that reached it first.
- Only article search is supported, not Official Account search.

### Tips and troubleshooting

- **Need more articles?** Add more specific keywords; each keyword gives its own page of about 20–30 results.
- **Only new articles:** schedule the actor with a relative `publishedAfter` such as `1 day`.
- **0 rows for a keyword:** check the log. It says whether the search had no results or the date filter dropped everything that was read. Search operators like `site:` and very long keywords are treated as plain text and often find nothing.
- **Fewer rows than expected:** look at `searchSource`. Rows marked `sogou` came from the backup source, which shows fewer articles.
- **Speed:** keywords are searched one after another in one browser; on the datacenter proxy a keyword takes about 40 seconds including the browser warm-up.
- An empty `queries` list, an invalid date or a future date in `publishedAfter` stops the run with an input error before any request.

### API, MCP and integrations

Run the actor from your code with the same JSON input as in Console. Your API token is in [Console → Settings → API & Integrations](https://console.apify.com/settings/integrations).

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("genial_candlestand/wechat-article-search-scraper").call(run_input={"queries": ["人工智能"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js** (`npm install apify-client`):

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('genial_candlestand/wechat-article-search-scraper').call({"queries": ["人工智能"]});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**HTTP** — one request runs the actor and returns the results (runs up to 5 minutes; longer ones: [run asynchronously](https://docs.apify.com/api/v2/act-runs-post)):

```bash
curl -X POST "https://api.apify.com/v2/acts/genial_candlestand~wechat-article-search-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries":["人工智能"]}'
```

**AI agents (MCP).** Add the actor as a tool of the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Claude Code:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=genial_candlestand/wechat-article-search-scraper"
```

Claude Desktop, Cursor or VS Code: `{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=genial_candlestand/wechat-article-search-scraper"}}}`. Then ask, for example:

- "Find the latest WeChat articles about 人工智能 with account name and publish time"
- "List WeChat articles mentioning 茅台 or Moutai published in the last day"
- "Get WeChat articles about 故宫 with their mp.weixin.qq.com links, grouped by account"

**Integrations.** Run it on a schedule with [Apify Schedules](https://docs.apify.com/platform/schedules) and send the results to Google Sheets, Slack, Zapier, Make, n8n or your webhook — see [Apify integrations](https://docs.apify.com/platform/integrations).

### FAQ

**Do I need a WeChat or Sogou account?**<br>
No. The actor uses WeChat's public web search without login or cookies from you. It never solves captchas; a blocked page is retried with a new session.

**Can I search in English?**<br>
Yes. Latin and multi-word keywords such as Tesla Model Y work the same as Chinese ones.

**Do the article links expire?**<br>
No. `url` is the permanent mp.weixin.qq.com link with `__biz`, `mid`, `idx`, `sn` and `chksm`, which opens in any browser.

**How is it different from other WeChat article actors?**<br>
Every row has the permanent article link and the account's `__biz`, the push id (`articleMid`) and the position in the push (`articleIdx`), plus Beijing-time publish time. There is no per-run cap: `maxItems` defaults to 1000. The article price is $3.50 per 1,000, against $5.99 per 1,000 search results for the most used WeChat article actor in the Store.

**Is it legal to scrape WeChat articles?**<br>
The actor collects only data that WeChat search shows publicly about published articles and the public accounts that published them. You are responsible for how you use the data, including copyright and data protection rules in your country.

### Also useful

- [Bilibili Scraper](https://apify.com/genial_candlestand/bilibili-scraper) — follow the same topic on Bilibili: videos, views, comments, danmaku and uploaders
- [Google News Scraper](https://apify.com/genial_candlestand/google-news-articles-search-scraper) — add news coverage of the same brand or topic from Google News
- [Goofish Xianyu Scraper](https://apify.com/genial_candlestand/goofish-xianyu-listings-scraper) — check second-hand listings of a Chinese brand on Xianyu: prices, cities and want counts
- [Google Trends Scraper](https://apify.com/genial_candlestand/google-trends-scraper) — compare search interest in the keywords you monitor over time

# Actor input Schema

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

Keywords to search WeChat Official Account (公众号) articles for, one per line, e.g. 人工智能 or Tesla Model Y. Chinese and Latin text both work. The public search shows about 20–30 articles per keyword (no further pages without login), so add more, narrower keywords to get more articles. Blank lines and repeated keywords are ignored.

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

Most articles to keep per keyword, 1–100. The source currently shows about 20–30 per keyword (7–10 when the backup source is used) and no further pages, so values above 30 simply return everything it shows. The date filter is applied to these results.

## `maxItems` (type: `integer`):

Stop the whole run after this many articles (all keywords together). Each saved article is one charged result.

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

Keep only articles published on or after this date: an absolute date (2026-11-01) or relative (7 days, 1 month). Applied to the results read per keyword, because the public search has no time filter or date sort without login. Dropped articles are free. Must not be in the future.

## `resolveArticleUrls` (type: `boolean`):

No longer needed and has no effect: every article now comes with its permanent mp.weixin.qq.com link in url and articleUrl, free, with no extra request and no charge. Kept only so saved tasks and API calls keep working.

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

Proxy for the search pages. The default Apify datacenter proxy works (a new IP is taken when one is blocked); no proxy also works. Residential was not tested.

## Actor input object example

```json
{
  "queries": [
    "人工智能"
  ],
  "maxResultsPerQuery": 100,
  "maxItems": 1000,
  "resolveArticleUrls": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset with one row per article found

## `overview` (type: `string`):

Articles in the overview table view

# 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("genial_candlestand/wechat-article-search-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": ["人工智能"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,genial_candlestand/wechat-article-search-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/nYNBY2ackxFQtuRTh/builds/JYG0oDCaYBXHloYZl/openapi.json
