# WeChat Official Account Scraper: Search & Articles 微信公众号 (`dataxapi/wechat-official-account-articles`) Actor

Search WeChat (微信) articles by keyword, get the articles a WeChat Official Account (微信公众号) published, an article's full text by its link, and its current reads, likes, shares and comments. No login, no cookie, no QR code. Pay only for results returned.

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

## Pricing

from $4.00 / 1,000 account articles

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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: Search & Articles 微信公众号

Search WeChat articles by keyword, get what a WeChat Official Account (微信公众号) published, read an article's full text by its link, and read its current reads, likes, recommends, shares, saves and comments. Paste links, share text or IDs as you have them. No login, no cookie, no QR code.

**You pay only for results you get.** An input that does not exist, a search that finds nothing and a call that fails cost you nothing. Nothing is charged twice in a run.

| You give | You get | Price |
|---|---|---|
| Accounts by original ID | One article in an account's list: title, digest, link, time published, position, format, cover. | $4.00 per 1,000 |
| Search keywords | One article or Channels video found by a keyword: title, digest or description, account name, time published, link. | $1.00 per 1,000 |
| Article links | One article with its full text, byline, account, IP location. | $20.00 per 1,000 |
| Article links to read counts of | One article's current reads, likes, recommends, shares, saves and comments. | $20.00 per 1,000 |
| Tick "Full text of each listed article" | One article with its full text, byline, account, IP location. | $20.00 per 1,000 |
| Tick "Reads, likes, shares, comments" | One article's current reads, likes, recommends, shares, saves and comments. | $20.00 per 1,000 |

One result as it comes back, from a recorded WeChat Official Account articles call (IDs, names, text and links masked as "…"):

```json
{
  "kind": "article",
  "input": "gh_13c97ab93ce8",
  "id": "…",
  "url": "https://example.com/…",
  "type": "article",
  "title": "…",
  "text": null,
  "published_at": "2026-10-12T13:35:48.000Z",
  "author": {
    "id": "…"
  },
  "fetched_at": "2026-10-12T19:02:58.000Z"
}
```

### What it is for

- Brand and topic monitoring: the newest articles that mention a keyword, across all accounts.
- Media monitoring: every new article of the accounts you follow, with full text.
- Content research: which articles of an account were read most.
- Archiving and AI: full article text for search, summaries and RAG.
- Reporting: current reads and likes of a list of articles.

### Why this Actor

- **Paste what you have.** Browser links, the share text the app copies, short links and IDs all work; you do not have to dig an ID out of a link.
- **Several jobs in one run.** Fill any of the sections below; each row says which input it came from.
- **No charge for nothing.** Not found, private, deleted, an empty search or a failed call: no row and no charge. The same item met twice in a run is charged once.
- **Your spending limit holds.** Set a maximum cost per run and the run stops before it, saying so in the log and in `OUTPUT`.
- **Same field names everywhere.** `text`, `author`, `metrics`, `published_at` (ISO 8601, UTC) mean the same in all our Actors for Chinese platforms, so one pipeline reads them all.
- **Small and fast.** Runs in 256 MB; results arrive page by page as they are fetched.

### How to use

1. Fill one or more sections of the input: keywords, links or IDs, one per line.
2. Set how many results you want per entry.
3. Click **Start**. Results appear in the **Output** tab as they come; export them as JSON, CSV, Excel or HTML, or read them through the Apify API.

### Input examples

**Account articles**

```json
{
  "accounts": [
    "gh_13c97ab93ce8"
  ],
  "maxArticlesPerAccount": 10
}
```

**Search articles**

```json
{
  "searchQueries": [
    "咖啡店开业"
  ],
  "maxResultsPerQuery": 20
}
```

**Single articles**

```json
{
  "articleUrls": [
    "https://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667038683&idx=1&sn=0422127e651acd7f6cf6ef7e1cff04bc"
  ]
}
```

**Reads and likes only**

```json
{
  "countArticleUrls": [
    "https://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667038683&idx=1&sn=0422127e651acd7f6cf6ef7e1cff04bc"
  ]
}
```

Add `"fullText": true` to any of the above that lists `accounts`: Also read the full text of every article listed for the accounts above. Each full text is one more charged result.

Add `"counts": true` to any of the above that lists `accounts` or `articleUrls`: Also read each article's current counts. Each set of counts is one more charged result.

### Output

One row per result. `kind` says what the row is and `input` which of your entries it came from. Each kind has its own table view in the Output tab.

| Field | What it is |
|---|---|
| `kind` | What the row is |
| `input` | The keyword, link or ID you gave |
| `id` | The platform's ID of the item; it works as is in this Actor's ID inputs |
| `url` | Link that opens the post |
| `type` | Content format |
| `title` | Title |
| `text` | Body text |
| `published_at` | When it was published |
| `author` | Author: `id`, `username`, `name`, `avatar_url`, `verified`, `followers` |
| `metrics` | Engagement counts: `likes`, `comments`, `shares`, `favorites`, `views`, `reposts` |
| `position` | Its place in the push it went out in: 1 is the lead article, 2 and on the ones below it |
| `content_type` | The account's own content format: article (text and pictures), video, audio, images (a picture post), text (words only) or repost |
| `cover_url` | Cover image |
| `duration` | Length of the video, in seconds; null for an article |
| `reads_label` | The band of reads an article's card shows, in the platform's words, such as 阅读 N万+ (reads N0k+): a band, not an exact count; null where the card shows none, and for a video |
| `digest` | The digest its author wrote for the article; null where none was written |
| `byline` | The author the article is signed by (not the account); null where it is unsigned |
| `source_url` | The link of the article's "read the original" at its end; null where there is none |
| `ip_location` | Where the article was posted from, as its page shows it: the province, or the country for one posted from abroad |
| `markdown` | The article as Markdown: headings, paragraphs, bold, lists, quotes, links and pictures, each picture at its own address (mmbiz.qpic.cn). Fetch the pictures without a Referer header: with another site's Referer, what comes back is a placeholder saying the picture may not be used |
| `recommends` | Recommends (formerly "wow") |
| `fetched_at` | When the data was fetched |

A field the platform does not show for an item is `null`; counts are as of the moment of the run. A run also writes a summary to the `OUTPUT` record: rows per input, what was charged, and any input that returned nothing and why.

### Pricing

Pay per result. Apify shows the same prices on the Pricing tab.

| Result | Price per 1,000 | Price per result |
|---|---|---|
| Account article | $4.00 | $0.004 |
| Search result | $1.00 | $0.001 |
| Article full text | $20.00 | $0.02 |
| Article counts | $20.00 | $0.02 |

For example, 100 keywords at 10 each is 1,000 results: $4.00.

On Apify's free plan a run is a sample: the first entry, one page, without the extras. Runs on any paid Apify plan have no such limit.

### Use it from code or an AI agent

Run it and get the rows in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/dataxapi~wechat-official-account-articles/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"accounts":["gh_13c97ab93ce8"],"maxArticlesPerAccount":10}'
```

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("dataxapi/wechat-official-account-articles").call(run_input={"accounts":["gh_13c97ab93ce8"],"maxArticlesPerAccount":10})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row)
```

AI agents (Claude, ChatGPT, Cursor and others) can call it as a tool through the Apify MCP server at `https://mcp.apify.com`: add the Actor `dataxapi/wechat-official-account-articles`. Schedules, webhooks and the Apify integrations (Make, Zapier, n8n, Google Sheets and more) work as with any Actor.

### Good to know

- Only public data is read. Nothing is posted and no account is logged in.
- Counts (likes, plays, reads) are those at the moment of the run; run it again or on a schedule to follow them.
- This Actor is not affiliated with WeChat Official Accounts.

### More Chinese platforms from the same developer

- [Xiaohongshu (RedNote) Scraper: Notes, Comments, Profiles 小红书](https://apify.com/dataxapi/xiaohongshu-scraper)
- [Douyin Scraper: Videos, Comments, Play Counts, Trends 抖音](https://apify.com/dataxapi/douyin-scraper)
- [Zhihu Scraper: Search Answers, Articles, Questions 知乎](https://apify.com/dataxapi/zhihu-scraper)
- [Weibo Scraper: Search Posts, Hot Search, User Posts 微博热搜](https://apify.com/dataxapi/weibo-scraper)
- [Bilibili Scraper: Video Search, Comments, Uploads 哔哩哔哩 B站](https://apify.com/dataxapi/bilibili-scraper)
- [China Social Media Scraper: Douyin, RedNote, Weibo 多平台搜索](https://apify.com/dataxapi/china-social-media-scraper)
- [Douyin Comments Scraper: Text, Likes, IP Location 抖音评论](https://apify.com/dataxapi/douyin-comments-scraper)
- [Xiaohongshu Comments Scraper: Text, Likes, Commenters 小红书评论](https://apify.com/dataxapi/xiaohongshu-comments-scraper)

### 中文说明

按关键词搜微信文章，取一个微信公众号发过的文章，按链接读一篇文章的全文，读它当前的阅读、点赞、在看、转发、收藏和评论数。链接、App 复制的分享文案、短链接、编号都能直接粘贴。不用登录，不用 Cookie，不用扫码。

\*\*只为拿到的结果付钱。\*\*输入的内容不存在、搜索没结果、调用出错，都不收费；同一次运行里同一条只收一次。可以给每次运行设花费上限，到上限前就停。

| 你给 | 你拿到 | 价格（每千条） |
|---|---|---|
| 公众号原始 ID | 微信公众号文章列表 | $4.00 |
| 搜索词 | 微信搜一搜综合搜索 | $1.00 |
| 文章链接 | 微信公众号文章详情 | $20.00 |
| 要查阅读数的文章 | 微信公众号文章互动数据 | $20.00 |
| 勾选“文章全文” | 微信公众号文章详情 | $20.00 |
| 勾选“阅读点赞数” | 微信公众号文章互动数据 | $20.00 |

Apify 免费版每次运行只取第一个输入的一页、不带附加数据；任何付费版都没有这个限制。结果可以导出 JSON、CSV、Excel，也可以用 Apify API 或 AI 助手（Apify MCP）调用。

# Actor input Schema

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

One account per line. Returns its articles newest first: title, digest, link, time published, lead or below, format, cover. The account's original ID, mostly starting with gh\_ but not always, not the account's name.

## `maxArticlesPerAccount` (type: `integer`):

How many to return for each entry above, 10 at least (one page). Each one returned is one charged result.

## `searchQueries` (type: `array`):

One keyword or phrase per line, in Chinese for the best results. Returns what WeChat Search finds: Official Account articles (and Channels videos unless you choose articles only) with title, digest, the account's name, time published and link.

## `resultType` (type: `string`):

Official Account articles only (article) or Channels videos only (video); both mixed when left out.

## `searchSort` (type: `string`):

By relevance, by time published (newest first) or by how hot.

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

Only those published in the last day, week or half year.

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

How many to return for each entry above, 20 at least (one page). Each one returned is one charged result.

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

One article per line. Returns the whole article: title, full text, byline, the account's name and IDs, time published, IP location. Works with: Link to the article, pasted as it is: the long link with \_\_biz, mid, idx and sn, the short /s/ link, or a share text with one of them in it.

## `countArticleUrls` (type: `array`):

One article per line, the long link with \_\_biz, mid, idx and sn. Returns its current reads, likes, recommends, shares, saves and comments. Works with: The article's long link, with \_\_biz, mid, idx and sn.

## `fullText` (type: `boolean`):

Also read the full text of every article listed for the accounts above. Each full text is one more charged result.

## `counts` (type: `boolean`):

Also read each article's current counts. Each set of counts is one more charged result.

## Actor input object example

```json
{
  "accounts": [
    "gh_13c97ab93ce8"
  ],
  "maxArticlesPerAccount": 10,
  "searchSort": "relevance",
  "maxResultsPerQuery": 20,
  "fullText": false,
  "counts": false
}
```

# Actor output Schema

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

All rows of the run.

## `summary` (type: `string`):

Rows per input, events charged, inputs that returned nothing and 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 = {
    "accounts": [
        "gh_13c97ab93ce8"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataxapi/wechat-official-account-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 = { "accounts": ["gh_13c97ab93ce8"] }

# Run the Actor and wait for it to finish
run = client.actor("dataxapi/wechat-official-account-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 '{
  "accounts": [
    "gh_13c97ab93ce8"
  ]
}' |
apify call dataxapi/wechat-official-account-articles --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataxapi/wechat-official-account-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/zQd49Q1iVBMEMeXHX/builds/kU7UuW6zdTlkUCaBX/openapi.json
