# WeChat Official Account Scraper: WeChat Articles, 微信公众号 (`hyperbach/wechat-official-account-scraper`) Actor

WeChat Official Account (公众号) scraper and WeChat API, no login: WeChat search for articles by keyword, or read article links, accounts and albums (合集). Chinese articles with title, account, author, exact publish time, digest, cover, permanent link, IP region, full text. Misses free.

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

## Pricing

from $3.00 / 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 Scraper: WeChat Articles, 微信公众号

**WeChat Official Account (公众号) articles without a login: give article links or albums (合集) and get one row per article read from its own page — title, the account's current name and WeChat id, author, the exact publish second, digest, cover, the permanent link where WeChat serves one, the original or reprint flag, the IP region and, when you ask, the full text. Search by keyword for the search cards: title, account name, index time, snippet, cover and link.** A link WeChat answers as deleted, closed or wrong is a free row that says so. No account, no cookie, no browser, proxies handled for you.

**From $6.00 per 1,000 rows (`article`) on the Free plan, $5.10 on Starter; every row and add-on is priced under Pricing below.** A run start is $0.05. The default input returns about 21 rows for about $0.17. A link WeChat answers as deleted, closed, moved or wrong, and a search with no article, is a free row that says why.

![A WeChat Official Account article on a phone: a coffee article with its title, author, account, date and region. Beside it, the row this Actor returns for the article, with account_name, account_wechat_id and published_at highlighted, read from the article's own page rather than the search card.](https://api.apify.com/v2/key-value-stores/dcLLNGq99686o2A4v/records/hero-wechat-official-account-scraper.webp)

### How it compares

- **More data than zen-studio's WeChat Official Account Scraper 公众号:** 39 fields per article, against 14. The price is about the same: $6.70 per 1,000 articles, against $6.52.
- **Faster and 2 times cheaper than herus13's WeChat Official Account Scraper 公众号:** 20 articles in 52 s, against 104 s; $6.70 per 1,000 articles, against $15.00. It gives more data: 57 fields per article, against our 39.

Measured on 2026-11-10. Each line compares one job, run by both scrapers at the same time. Prices are per 1,000 articles: Apify Actors at the Scale plan's prices.

### Tested head-to-head on 2026-11-10

The job: the first 20 articles of one WeChat article search (人工智能, the input schema's example), each read from its article page. Every Actor ran on it the same day from the same harness; every run's cost is at the Scale plan's prices: a rival's charged events at its price for that plan, this Actor's at its list price. Fields counts the filled fields of a typical row. Every row here is read from the article's own page; zen-studio's search row is the search card (its page rows need article links), herus13's row opens the page with include_content. Re-measured monthly.

| Actor | Rows | First row | Run time | Cost | Fields | Failures |
|---|---|---|---|---|---|---|
| **this Actor** | 20 | 11 s | 52 s | $0.13 | 39 | none |
| `zen-studio/wechat-official-account-scraper` | 33 | 4.3 s | 5.0 s | $0.21 | 14 | none |
| `herus13/wechat-scraper` | 20 | 12 s | 104 s | $0.30 | 57 | none |

### Why this WeChat article scraper

- **A link or an album gives the article's own page, not the search card.** The search index carries its own title (with half-width punctuation), an account name that can be old (3 of 10 cards in our test named a renamed account) and its index time (minutes after the publish second as a rule, 8 to 15 days for an article the index took again). Here each such row is read from the article itself: the title, the account's current name, its WeChat id and gh id, the author, the digest and the exact publish second (on 144 of 144 pages we read), at about 170 KB a page because the read stops where the article ends.
- **The order and the window are applied, and checked on every row.** WeChat's logged-out search honours no sort and no time filter: a filtered request gets the empty home page. Here `sortBy` latest or oldest reads the whole list (up to 100), then reads the pages until it holds the newest (or oldest) articles by each page's own publish second, since the index time can trail it by days; `publishedWithin` / `publishedAfter` / `publishedBefore` drop a card before its page is read where its index time rules it out (no page, no charge) and check each page's own second after it.
- **Says what WeChat says.** A deleted article (该内容已被发布者删除), a closed account (此账号已自主注销), a wrong id or an expired link (参数错误) is a free row with WeChat's own words, read on two connections before it is called gone; an article whose account moved (账号已迁移) is followed to its new link. A search ends where WeChat's list ends (100 articles), and the search row says TRUNCATED with the index's estimate, never COMPLETE.
- **Every link form.** Permanent links (a bare one gets the checksum the page needs), short links (`/s/…`, with the permanent link back), temporary links from a search, Sogou's result links, Sogou search links, album links: each article once a run, however many forms or searches name it.
- **Honest about what a visitor cannot see.** Read, like and comment counts, an account's own history and its verified owner are served only to a signed-in WeChat client, so this Actor does not offer them and never writes a 0 for a count it cannot read. The one public count, an album's total reads, is on every album row.

### Who it's for

- **Market and media analysts** — what Chinese official accounts publish on a topic this week, with each article's account, author, exact time, region and text, in one row shape.
- **Brand and PR teams** — articles that name a brand or a product, the accounts that carry them, which are reprints and of whom, and the full text to read or translate.
- **Researchers, developers and agents** — article links in, typed rows out with a stable key per article, a free labelled row for every miss, and a run summary to check a pipeline against.

### Quick start

**Search cards by keyword, newest first**

```json
{
  "keywords": [
    "人工智能"
  ],
  "sortBy": "latest",
  "maxItemsPerKeyword": 20,
  "searchCardsOnly": true
}
```

**Articles by link, with the full text**

```json
{
  "articleUrls": [
    "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw"
  ],
  "includeContent": true
}
```

**Every article of an album (合集)**

```json
{
  "albumUrls": [
    "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzIzNjc1NzUzMw==&action=getalbum&album_id=1865468163396517889"
  ],
  "maxItems": 50
}
```

### Switching from `zen-studio/wechat-official-account-scraper`?

Your input works as it is. Each name in the left column is read as this Actor's own field and the run log says so (`read <theirs> as <ours>`); a name marked *not read* is ignored with a note. A value in the other Actor's shape, an object list or its own date form, is read too.

| zen-studio/wechat-official-account-scraper | this Actor | what to know |
|---|---|---|
| `operation` | *not read* | Not read: the job follows from the inputs. articleSearch, articleDetail, convertArticleLink, accountHistoryArticles and accountTodayArticles run from keywords, articleUrls (links) and accounts; the client-session operations (articleMetrics, articleComments, articleCommentReplies, accountSearch, accountBasicInfo, accountPrincipalInfo, accountOriginalCount, miniProgramSearch, searchSuggestions, wechatIndexSearch) are refused with the reason. |
| `keywords` | `keywords` | The same: one search each, up to 100 articles (WeChat's own end). |
| `articleUrls` | `articleUrls` | The same, plus temporary search links and Sogou result links. |
| `accounts` | `accounts` | A WeChat id, a name or an article link; a gh\_ id alone gives a free row asking for one of those (no logged-out route reads an account by its gh\_ id). |
| `links` | `articleUrls` | Read as article links: every row carries the permanent link where WeChat serves one, the short link and the article's key. |
| `maxPages` | `maxItemsPerKeyword` | Read as pages × 20 articles (the leader's pages hold about 20–24 rows), at most 100 a search. |
| `continuePreviousRun` | *not read* | Not read: it continues an account's history, which a logged-out reader cannot list. |
| `sortBy` | `sortBy` | relevance and latest the same; hot is read as relevance (no logged-out count ranks articles); oldest added. |
| `publishTime` | `publishedWithin` | all is any; day, week and halfYear the same; month and year added, and exact dates in publishedAfter / publishedBefore. |
| `businessType` | *not read* | Not read: it scopes search suggestions, which are not served logged out. |
| `feedback` | *not read* | Not read: write to the support address below. |

**What differs:**

- No `operation` to pick: the job follows from the inputs you give, and one run can mix keywords, article links, accounts and albums.
- The read, like, share and comment counts, comments, an account's own history and profile call, its verified owner, WeChat Index, search suggestions and mini programs need a signed-in WeChat client: those operations are refused with the reason, never answered with an empty success.
- An account (a WeChat id, a name or one of its article links) is a sample of the articles the search index finds for it, labelled SAMPLE, not its history.
- Rows from article links and albums are read from the article's own page. A keyword search gives the search cards (`searchCardsOnly`, on in the example input): since 2026-11-13 WeChat answers the links a search gives with its verification page.
- A temporary link from a search page is read too (the leader refuses it); the row carries it with the article's key, and the permanent link where WeChat serves one.

### Output

One row per article (`record_type` article), and one free summary row per keyword, account or album (`record_type` target):

| field | meaning |
|---|---|
| `record_type` | `article` on an article row (charged when `status` is ok); `target` on a keyword's, an account's or an album's free summary row. |
| `status` | `ok`, or why a link or a search gave no article: `deleted`, `account_closed`, `violation`, `not_found` (WeChat's 参数错误 for a wrong id), `expired_or_invalid` (an old temporary link), `duplicate` (an article the run already delivered), `no_results`, `failed` (no connection got an answer), `invalid_input`, `not_read` (the run stopped first). |
| `status_detail` | WeChat's own words for a typed state (e.g. 该内容已被发布者删除), and whether two connections agreed. |
| `input` | The value you gave that this row answers. |
| `query` | The search words this row came from (a keyword, or an account's WeChat id). |
| `title` | The article's title, from its page (the search card's title when `row_source` is sogou_card). |
| `account_name` | The official account's current name, from the article's page. |
| `account_wechat_id` | The account's WeChat id (微信号, e.g. rmrbwx), when it has one. |
| `account_gh_id` | The account's original id (gh\_…). |
| `account_biz` | The account's `__biz` value. |
| `author` | The article's byline, when the account set one. |
| `published_at` | The exact publish time in Beijing time (+08:00), as the page shows it. |
| `published_at_utc` | The publish time in UTC. |
| `published_at_epoch` | The publish second as a Unix epoch. |
| `digest` | The article's digest (摘要) as the account wrote it; null when it set none. |
| `cover_url` | The cover image. |
| `cover_url_1_1` | The cover's square crop. |
| `cover_url_235_1` | The cover's wide (2.35:1) crop. |
| `url` | The link the article was read from: the temporary link of a search (served for hours), or the link you gave. |
| `url_kind` | `permanent`, `short`, `temporary` or `other`: the form of `url`. |
| `permanent_url` | The article's permanent link, when its page carries one (article links you give, album articles); null on search rows. |
| `permanent_url_note` | Why `permanent_url` is null. |
| `short_url` | The article's short link (mp.weixin.qq.com/s/…), when it has one. |
| `article_key` | The article's stable key: `__biz`, `mid` and `idx` joined by `_`; the same on every form of the article's link. |
| `moved_from` | The old link, when the account moved (账号已迁移) and the article was read from its new link. |
| `article_type` | `article`, `image_post` (图片消息), or another format WeChat names. |
| `is_original` | True when the account marked the article original (原创). |
| `copyright_kind` | `original`, `reprint` (转载) or `none`. |
| `is_repost` | True when the article is a reprint of another account's article. |
| `repost_of` | A reprint's source: its account name, gh id, link and key. |
| `is_paid` | True when the article is a paid one (付费); its text is then the free preview. |
| `region` | The IP region the page shows (发表于): the province, else the country; null on most articles before mid-2022. |
| `region_country` | The country of the IP region. |
| `album_id` | The album (合集) the article is in. |
| `album_title` | The album's title. |
| `album_size` | The album's article count. |
| `album_read_count` | The album's total reads, on rows read from an album link (the one public count). |
| `source_url` | The article's 阅读原文 (read the original) link, when it has one. |
| `account_description` | The account's description. |
| `account_avatar_url` | The account's avatar. |
| `comment_id` | The page's comment thread id (the comments themselves need a signed-in WeChat client). |
| `hashtags` | The article's own hashtags as the page lists them (an empty list where it has none; null on a card row). |
| `text` | The article's text (`includeContent`). |
| `text_markdown` | The article's text as Markdown, with its pictures and links (`includeContent`). |
| `text_html` | The article body's own HTML (`includeHtml`). |
| `text_length` | Characters in `text`. |
| `reading_minutes` | `text_length` ÷ 400, rounded (at least 1). |
| `images` | The article's pictures: URL, width and height ÷ width (`includeContent`). |
| `image_count` | Pictures in the article (`includeContent`). |
| `title_translation` | A machine translation of `title` (`translateTo`). |
| `digest_translation` | A machine translation of `digest` (`translateTo`). |
| `translation_note` | Which language the row was machine-translated into, or why a row has no translation. |
| `row_source` | `page` (read from the article's page), `sogou_card` (the search card, `searchCardsOnly`) or `album_list` (the album's own list). |
| `snippet` | The search card's snippet (Sogou's), on search rows. |
| `account_name_sogou` | The account name on the search card (Sogou's; can be an old name). |
| `indexed_at_sogou` | The search card's time (Sogou's index time, UTC; minutes after the publish second as a rule, days for an article indexed again). |
| `sogou_docid` | The search card's id. |
| `page` | The search page (1–10) the card was on. |
| `position` | The card's place on its page (1–10), or the article's place in its album. |
| `rank` | The row's place in its search: the source's order for relevance, the asked order for latest / oldest. |
| `results_estimate` | On a search row: the index's estimate of its hits (找到约N条结果); on an album row, the album's article count. |
| `verdict` | On a target row: COMPLETE (the list ended), CAPPED (your cap), TRUNCATED (WeChat's list ended at its 100 or under the estimate), PARTIAL (the run stopped: `note` says why), SAMPLE (an account: what the index finds for it). |
| `rows_delivered` | On a target row: the article rows it delivered. |
| `note` | Why a target row has its verdict (and what its filters left out), or what a search-card row's fields are. |
| `scraped_at` | When this row was read (UTC). |

Example record:

```json
{
  "record_type": "article",
  "status": "ok",
  "status_detail": null,
  "input": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw",
  "query": null,
  "title": "“老黄骗人”！5070首批评测：说好1/3价格赛4090，实际不如4070Ti",
  "account_name": "量子位",
  "account_wechat_id": "QbitAI",
  "account_gh_id": "gh_114e76fd6e5d",
  "account_biz": "MzIzNjc1NzUzMw==",
  "author": "示例作者",
  "published_at": "2025-03-05T12:22:09+08:00",
  "published_at_utc": "2025-03-05T04:22:09Z",
  "published_at_epoch": 1741148529,
  "digest": "博主：史上最差70系列",
  "cover_url": "https://mmbiz.qpic.cn/mmbiz_jpg/YicUhk5aAGtB8zqMsOsFEsStNXL6hpuYEEo7paXlpMMYk4vGbXsTSlicpz4ichWzMY4dmQbTRfIsoKl1mr5bPL2CA/0?wx_fmt=jpeg",
  "cover_url_1_1": "https://mmbiz.qpic.cn/mmbiz_jpg/YicUhk5aAGtB8zqMsOsFEsStNXL6hpuYEfWfSgOU6wP5R9gBAn4icvwnmJlIcpfeXf41eNty3NFql6hO7A1OnJsg/0?wx_fmt=jpeg",
  "cover_url_235_1": "https://mmbiz.qpic.cn/mmbiz_jpg/YicUhk5aAGtB8zqMsOsFEsStNXL6hpuYEEo7paXlpMMYk4vGbXsTSlicpz4ichWzMY4dmQbTRfIsoKl1mr5bPL2CA/0?wx_fmt=jpeg",
  "url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw",
  "url_kind": "short",
  "permanent_url": "https://mp.weixin.qq.com/s?__biz=MzIzNjc1NzUzMw==&mid=2247780992&idx=1&sn=24a33e0bf7a46cd28911be93eff3b531&chksm=x#rd",
  "permanent_url_note": null,
  "short_url": "https://mp.weixin.qq.com/s/TSNQKkRpN1qbKsT7BvzqIw",
  "article_key": "MzIzNjc1NzUzMw==_2247780992_1",
  "moved_from": null,
  "article_type": "article",
  "is_original": true,
  "copyright_kind": "original",
  "is_repost": false,
  "repost_of": null,
  "is_paid": false,
  "region": "北京",
  "region_country": "中国",
  "album_id": "1865468163396517889",
  "album_title": "英伟达",
  "album_size": 115,
  "album_read_count": null,
  "source_url": null,
  "account_description": "追踪人工智能新趋势，关注科技行业新突破",
  "account_avatar_url": "http://mmbiz.qpic.cn/mmbiz_png/YicUhk5aAGtCEFSVW5ubo08Zfv1qB5iapricibTBdETkBNtolJxnSUib6UXhjWWz3aib8vETY00P2lKR1uG3qLHicSoWg/0?wx_fmt=png",
  "comment_id": "3884868893382230017",
  "hashtags": null,
  "text": null,
  "text_markdown": null,
  "text_html": null,
  "text_length": null,
  "reading_minutes": null,
  "images": null,
  "image_count": null,
  "title_translation": null,
  "digest_translation": null,
  "translation_note": null,
  "row_source": "page",
  "snippet": null,
  "account_name_sogou": null,
  "indexed_at_sogou": null,
  "sogou_docid": null,
  "page": null,
  "position": null,
  "rank": null,
  "results_estimate": null,
  "verdict": null,
  "rows_delivered": null,
  "note": null,
  "scraped_at": "2026-11-10T13:20:00Z"
}
```

### Pricing

**Pay for the articles a run delivers**, plus one run start; no platform usage is billed to you. The price falls with your Apify plan.

| event | unit | Free | Starter | Scale | Business |
|---|---|---|---|---|---|
| Article (`article`) | per 1,000 | $6.00 | $5.10 | $4.20 | $3.00 |
| Full text (`article_text`) | per 1,000 | $24.00 | $20.40 | $16.80 | $12.00 |
| Translation (`translation`) | per 1,000 | $3.00 | $2.55 | $2.10 | $1.50 |
| Run start (`start`) | per run | $0.05 | $0.05 | $0.05 | $0.05 |

An article row is **$6.00 per 1,000** on the Free plan ($0.006 a row) and $5.10 on Starter, read from its page or, with `searchCardsOnly`, from the search card: the same price. With `includeContent` each row also carries its full text, Markdown and pictures for **$24.00 per 1,000 more** ($30.00 a row and its text together on the Free plan); with `translateTo` the title and digest translation is $3.00 per 1,000 more. An article is charged once a run however many keywords or links name it. Each run that delivers a charged row also pays the **run start, $0.05 once**; a run that delivers none pays nothing at all. So the 20 articles of one keyword cost $0.17 on the Free plan and $0.152 on Starter; the same 20 with their text $0.65 and $0.56; a whole search (100 articles, WeChat's end) $0.65 and $0.56; every input of a run shares one start. Free: every keyword's, account's and album's own summary row, a search with no article, a deleted, closed, blocked or wrong link, an expired temporary link, an article already delivered in the run, a client-only operation refused with its reason, and an input left unread at `maxItems`, your charge limit or the time limit. A run that stops early (a timeout, an abort) is charged for the articles it delivered.

Before the first request the log names the prices at your plan and the most the run can cost: `maxItemsPerKeyword` for each keyword or account (20 when you leave it out, at most 100), one row for each article link, `maxItems` over the whole run, and never more than your charge limit; an album without `maxItems` is read to its end, so its line gives the prices and no maximum. A search that ends sooner (WeChat's own list ends) delivers fewer rows and costs less. Enterprise plans have their own rates — the Actor's Pricing tab shows the price for your plan.

### Usage patterns

- **Keywords** — Put words in `keywords` (Chinese words give the most results). Each keyword reads WeChat's article search, 10 articles a page, up to 100: `maxItemsPerKeyword` (default 20; 0 = all 100) caps each search and `maxItems` the run. Since 2026-11-13 WeChat answers the links a search gives with its verification page (环境异常), so set `searchCardsOnly` (the example input does): each row is the search card (title, account name, index time, snippet, cover), its `url` the temporary link the search gives, beside the article's stable `article_key`. With `searchCardsOnly` off, each walled card is a free row that says so. A search row closes each keyword with its verdict: CAPPED (your cap), TRUNCATED (WeChat's list ended at its 100, or under the index's estimate after a second read), COMPLETE. `excludeKeywords`, `strictKeywordMatch` and a date window leave cards out before their page is read: no page, no row, no charge; the search row counts them.
- **Article links and albums** — Paste any article link in `articleUrls`: permanent, short (`mp.weixin.qq.com/s/…`), a temporary link from a search, or a Sogou result link. Each is one row, or a free row with WeChat's own words (deleted, the account closed, not found, an expired link). An album link in `albumUrls` gives every article of the album, each read from its page, with the album's title, size and total read count on every row. `includeContent` adds the text, its Markdown and its pictures; `includeHtml` the body's own HTML.
- **Accounts** — An account in `accounts` is its WeChat id (rmrbwx), its name (人民日报) or one of its article links. WeChat lists an account's own articles only to a signed-in client, so this Actor searches the account's WeChat id (in our test 32 of 34 hits were the account's own; a name search 3 of 39) and keeps the articles whose page names the account. The account's search row says SAMPLE and how many of the pages read were its own: it is what the search index holds, old articles included, never the whole history. Since 2026-11-13 an account gives no article: its articles come from the search, whose links WeChat answers with its verification page, and each walled card is a free row that says so. Give the account's article links or an album instead.
- **Translation and search cards** — `translateTo` (en, de, ja, pt-BR …) adds a machine translation of each row's title and digest beside the originals, labelled as a machine translation. `searchCardsOnly` skips the article pages for searches and albums: a row from the search card (Sogou's title, account name and index time, labelled) or the album's own list, faster and lighter (`onlyFromAccounts` and the accounts input still read each page: the card names no account id).

### Input configuration

| field | type | default | what it does |
|---|---|---|---|
| `keywords` | `array` | `[]` | Words to search WeChat Official Account articles for, one search each (Chinese words give the lane's results, e.g. 人工智能). A Sogou WeChat search link (weixin.sogou.com/weixin?…query=…) is read as its words. Up to 100 articles a search (the source's own end). |
| `articleUrls` | `array` | `[]` | WeChat article links, one row each: the permanent link (mp.weixin.qq.com/s?\_*biz=…\&sn=…), the short link (mp.weixin.qq.com/s/…), a temporary link from a search (…src=11\&signature=…, served for hours) or a Sogou result link (weixin.sogou.com/link?url=…). A link to a deleted article, a closed account or a wrong id gives a free row with the source's own words. |
| `accounts` | `array` | `[]` | An official account by its WeChat id (rmrbwx), its name (人民日报) or one of its article links. The Actor searches the account's WeChat id and keeps the articles whose page names the account: a sample of what the search index holds, not the account's history (that list needs a WeChat client session). A gh* id or a \_\_biz alone gives a free row asking for one of the three forms. |
| `albumUrls` | `array` | `[]` | Album links (mp.weixin.qq.com/mp/appmsgalbum?\_*biz=…\&album_id=…): every article of the album, with the album's own article count and total read count. |
| `maxItemsPerKeyword` | `integer` | `20` | The most article rows each keyword or account search delivers (the source lists at most 100 a search); 0 = all it lists. Albums read every article unless Max results stops the run. |
| `sortBy` | `relevance` / `latest` / `oldest` / `hot` | `"relevance"` | relevance = the source's own order; latest or oldest = this Actor reads the whole list (up to 100), then reads the pages until it holds the newest (oldest) articles by each page's own publish second (Sogou's index time can trail it by days; oldest assumes Sogou indexed each article within 31 days of its publish second). The source sorts nothing for a logged-out reader. hot (the lane leader's name) is read as relevance: no logged-out count ranks WeChat articles. |
| `publishedWithin` | `any` / `day` / `week` / `month` / `halfYear` / `year` | `"any"` | Only articles published in this period, checked on each article's exact publish second (the source applies no time filter for a logged-out reader). An article outside is left out: no row, no charge. |
| `publishedAfter` | `string` |  | A date like 2026-11-01 (Beijing time, as the articles show it): only articles published on that day or later. |
| `publishedBefore` | `string` |  | A date like 2026-11-09 (Beijing time): only articles published on that day or earlier. |
| `excludeKeywords` | `array` | `[]` | A search card whose title or snippet holds any of these words is left out before its page is read (no row, no charge). |
| `onlyFromAccounts` | `array` | `[]` | Keep only articles of these accounts: names, WeChat ids, gh* ids or \_\_biz values, matched on each article's own page (its current name). Other articles are left out: no row, no charge. |
| `strictKeywordMatch` | `boolean` | `false` | Leave out a search card whose title does not hold the keyword (the source also matches the article body). Words split by spaces: any one of them is enough. |
| `searchCardsOnly` | `boolean` | `false` | For searches and albums: a row from the search card (title, account name, the source's index time, snippet, cover, the temporary link) or the album's list, without reading each article's page. The card's title and account name are the search index's (a renamed account can keep its old name there). Off = every row is read from the article's own page. onlyFromAccounts and the accounts input still read each card's page: the card names no account id. On in the example input: since 2026-11-13 WeChat answers the links a search gives with its verification page. |
| `includeContent` | `boolean` | `false` | Add the article's text, its Markdown and its pictures (URL, width, ratio), the text length and the reading minutes. |
| `includeHtml` | `boolean` | `false` | Add the article body's own HTML (large: inline styles kept). Turns on the full text too. |
| `translateTo` | `string` |  | A language code such as en, de, ja or pt-BR: each row gets a machine translation of its title and digest beside the originals (labelled as a machine translation). Empty = no translation. |
| `maxItems` | `integer` | `0` | The most charged article rows of the whole run; 0 = no cap beyond your charge limit. |
| `feedback` | `string` |  | A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note. |

### Errors

**A run does not fail because of your input.** When an input cannot be used — a date that is not a date, an id in the wrong form, two settings that contradict each other — the run ends **Succeeded**, charges nothing, and says what to change:

- the status message starts with `INPUT REJECTED`;
- the dataset holds one row, `{"error": true, "code": "…", "message": "…"}`, and no results;
- the key-value store record `ERROR` holds the same object.

From code, check `error` on the first row before reading results.

A search that matches nothing is not an error: the dataset is empty and nothing is charged. A run that ends **Failed** is a fault on our side, never your input; it charges nothing, and we are alerted.

### FAQ

**Can I get read counts, likes, 在看 or comments?**

No. WeChat serves those only inside a signed-in WeChat client: on the public page they are empty and the counts call answers without them. This Actor never writes a 0 for a count it cannot read. The one public count is an album's total reads (`album_read_count`).

**Why is `permanent_url` empty on search rows?**

A search gives a temporary link, and its page carries no permanent link; a link built from the article's key alone is refused by WeChat (参数错误). The row carries the temporary link (`url`, served for hours) and the stable `article_key`. Article links you give and album articles carry the permanent link.

**Is a search complete?**

WeChat's logged-out search lists at most 100 articles a keyword, ten pages of ten. A search that reaches them says TRUNCATED with the index's estimate (often thousands). Several narrower keywords, or a date window, reach more.

**Why are `region` and `author` empty on some rows?**

They are the page's own: WeChat shows the IP region on articles from mid-2022 on (130 of the 132 articles from 2022 on in our probe of 150 ordinary articles; the two without were from February and April 2022) and on few older ones, and about half of the accounts sign their articles with a byline (75 of the 150).

**Do I need Apify Proxy or my own proxy?**

No. The Actor uses its own connections, at no extra cost to you.

### Integration

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('hyperbach/wechat-official-account-scraper').call({"keywords": ["\u4eba\u5de5\u667a\u80fd"], "sortBy": "latest", "maxItemsPerKeyword": 20, "searchCardsOnly": true});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('hyperbach/wechat-official-account-scraper').call(run_input={'keywords': ['人工智能'], 'sortBy': 'latest', 'maxItemsPerKeyword': 20, 'searchCardsOnly': True})
items = client.dataset(run['defaultDatasetId']).list_items().items
```

#### CLI

```bash
apify call hyperbach/wechat-official-account-scraper --input '{"keywords": ["\u4eba\u5de5\u667a\u80fd"], "sortBy": "latest", "maxItemsPerKeyword": 20, "searchCardsOnly": true}'
```

#### REST

```bash
curl -X POST "https://api.apify.com/v2/acts/hyperbach~wechat-official-account-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' -d '{"keywords": ["\u4eba\u5de5\u667a\u80fd"], "sortBy": "latest", "maxItemsPerKeyword": 20, "searchCardsOnly": true}'
```

#### AI agents and MCP

Apify's MCP server offers this Actor as a tool to Claude, Cursor, VS Code and any other MCP client. Connect `https://mcp.apify.com?tools=hyperbach/wechat-official-account-scraper` and ask, for example: "Get the latest WeChat Official Account articles about 人工智能 with their titles, accounts, publish times and links". The agent fills the input from the table above and reads the rows from the run's dataset. A field under the name another Actor gives it is read as this Actor's own: `searchQueries`, `queries`, `query`, `keyword` as `keywords`; `links`, `urls`, `url`, `article_urls` as `articleUrls`; `account`, `accountIds`, `wechatIds`, `wechatId` as `accounts`; `album_urls`, `albums`, `albumUrl`, `albumLinks` as `albumUrls` (and more). An agent or a person can add `feedback` to any run and say what was needed and not delivered: a missing field, a wrong or empty result, the Actor switched from or to, and why. The run returns the same rows at the same price, and a person reads every note.

#### n8n, Make and Zapier

The Apify node in n8n, the Apify app in Make and the Apify integration in Zapier run this Actor on a schedule or from a trigger and read its dataset. A webhook on the run's end (Integrations on the Actor page) sends the rows on to your own endpoint. Nothing to install on our side.

### Support

**Disagree with a charge?** Write to apify@hyperbach.com with the run ID. We will ask Apify to compensate you, and the charge comes back to your Apify account as platform credit.

**Did it do the job?** A short [review on the Store](https://apify.com/hyperbach/wechat-official-account-scraper/reviews), at any rating, helps the next buyer choose.

### See also

- **[Telegram Profile Scraper](https://apify.com/hyperbach/telegram-profile-scraper)** — Telegram channels, groups, bots and users by username or link, with the exact subscriber or member count.
- **[YouTube Channel Search Scraper](https://apify.com/hyperbach/youtube-channel-search-scraper)** — the YouTube channels a keyword finds, with subscribers, the exact video and view counts and the country.
- **[Threads Scraper](https://apify.com/hyperbach/threads-scraper)** — Threads profiles with the exact follower count, their posts and replies with view counts, and keyword and tag search, without a login.
- **[Substack Scraper](https://apify.com/hyperbach/substack-scraper)** — the posts of a Substack newsletter with the full text of free posts, the date, the paywall flag and the likes.
- **[Weibo Scraper](https://apify.com/hyperbach/weibo-scraper)** — Weibo posts, profiles, search, comments and the hot-search boards, without a login.
- **[Pinterest Search Scraper](https://apify.com/hyperbach/pinterest-search-scraper)** — the pins of a Pinterest search, with the link each pin points to, the image and the pinner.

*This page is generated from the Actor's schemas and a live sample — it cannot describe a field the Actor does not have.*

# Actor input Schema

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

Words to search WeChat Official Account articles for, one search each (Chinese words give the lane's results, e.g. 人工智能). A Sogou WeChat search link (weixin.sogou.com/weixin?…query=…) is read as its words. Up to 100 articles a search (the source's own end).

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

WeChat article links, one row each: the permanent link (mp.weixin.qq.com/s?\_\_biz=…\&sn=…), the short link (mp.weixin.qq.com/s/…), a temporary link from a search (…src=11\&signature=…, served for hours) or a Sogou result link (weixin.sogou.com/link?url=…). A link to a deleted article, a closed account or a wrong id gives a free row with the source's own words.

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

An official account by its WeChat id (rmrbwx), its name (人民日报) or one of its article links. The Actor searches the account's WeChat id and keeps the articles whose page names the account: a sample of what the search index holds, not the account's history (that list needs a WeChat client session). A gh\_ id or a \_\_biz alone gives a free row asking for one of the three forms.

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

Album links (mp.weixin.qq.com/mp/appmsgalbum?\_\_biz=…\&album_id=…): every article of the album, with the album's own article count and total read count.

## `maxItemsPerKeyword` (type: `integer`):

The most article rows each keyword or account search delivers (the source lists at most 100 a search); 0 = all it lists. Albums read every article unless Max results stops the run.

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

relevance = the source's own order; latest or oldest = this Actor reads the whole list (up to 100), then reads the pages until it holds the newest (oldest) articles by each page's own publish second (Sogou's index time can trail it by days; oldest assumes Sogou indexed each article within 31 days of its publish second). The source sorts nothing for a logged-out reader. hot (the lane leader's name) is read as relevance: no logged-out count ranks WeChat articles.

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

Only articles published in this period, checked on each article's exact publish second (the source applies no time filter for a logged-out reader). An article outside is left out: no row, no charge.

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

A date like 2026-11-01 (Beijing time, as the articles show it): only articles published on that day or later.

## `publishedBefore` (type: `string`):

A date like 2026-11-09 (Beijing time): only articles published on that day or earlier.

## `excludeKeywords` (type: `array`):

A search card whose title or snippet holds any of these words is left out before its page is read (no row, no charge).

## `onlyFromAccounts` (type: `array`):

Keep only articles of these accounts: names, WeChat ids, gh\_ ids or \_\_biz values, matched on each article's own page (its current name). Other articles are left out: no row, no charge.

## `strictKeywordMatch` (type: `boolean`):

Leave out a search card whose title does not hold the keyword (the source also matches the article body). Words split by spaces: any one of them is enough.

## `searchCardsOnly` (type: `boolean`):

For searches and albums: a row from the search card (title, account name, the source's index time, snippet, cover, the temporary link) or the album's list, without reading each article's page. The card's title and account name are the search index's (a renamed account can keep its old name there). Off = every row is read from the article's own page. onlyFromAccounts and the accounts input still read each card's page: the card names no account id. On in the example input: since 2026-11-13 WeChat answers the links a search gives with its verification page.

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

Add the article's text, its Markdown and its pictures (URL, width, ratio), the text length and the reading minutes.

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

Add the article body's own HTML (large: inline styles kept). Turns on the full text too.

## `translateTo` (type: `string`):

A language code such as en, de, ja or pt-BR: each row gets a machine translation of its title and digest beside the originals (labelled as a machine translation). Empty = no translation.

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

The most charged article rows of the whole run; 0 = no cap beyond your charge limit.

## `feedback` (type: `string`):

A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note.

## Actor input object example

```json
{
  "keywords": [
    "人工智能"
  ],
  "articleUrls": [],
  "accounts": [],
  "albumUrls": [],
  "maxItemsPerKeyword": 20,
  "sortBy": "relevance",
  "publishedWithin": "any",
  "excludeKeywords": [],
  "onlyFromAccounts": [],
  "strictKeywordMatch": false,
  "searchCardsOnly": true,
  "includeContent": false,
  "includeHtml": false,
  "maxItems": 0
}
```

# Actor output Schema

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

All scraped records in the default dataset. One row per article (`record_type` article), and one free summary row per keyword, account or album (`record_type` target):

## `runSummary` (type: `string`):

How the run went: rows charged, free rows by status, each search's pages, cards, verdict and the cards its filters left out, and the source counters (requests, exits, bytes, slow and refused exits).

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

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

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

```

## MCP server setup

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