# WeChat Official Accounts Scraper (`sian.agency/wechat-official-accounts-scraper`) Actor

📣 Scrape WeChat (Weixin) Official Accounts — user posts, full article content, comments with reader province, engagement metrics, and keyword search. Five operations in one actor. No setup. Independent third-party tool; not affiliated with Tencent / WeChat / Weixin.

- **URL**: https://apify.com/sian.agency/wechat-official-accounts-scraper.md
- **Developed by:** [SIÁN OÜ](https://apify.com/sian.agency) (community)
- **Categories:** Social media, Marketing, Automation
- **Stats:** 5 total users, 2 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 keyword searches

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## WeChat Official Accounts Scraper — Posts, Articles, Comments, Engagement, Search 📣

[![SIÁN Agency Store](https://img.shields.io/badge/Store-SI%C3%81N%20Agency-1AE392)](https://apify.com/sian.agency?fpr=sian) [![WeChat](https://img.shields.io/badge/Platform-WeChat-07C160)](https://apify.com/sian.agency/wechat-official-accounts-scraper?fpr=sian) [![Weixin](https://img.shields.io/badge/Platform-Weixin-07C160)](https://apify.com/sian.agency/wechat-official-accounts-scraper?fpr=sian)

#### 🎉 Five scrapers in one — WeChat user posts, article detail, comments, engagement metrics, and keyword search
##### Built for China-market researchers, social listening teams, brand monitors, and anyone who needs clean WeChat OA data without the setup headache

> ⚠️ **Independent third-party tool.** Not affiliated with, endorsed by, or sponsored by Tencent, WeChat, or Weixin. All trademarks are property of their respective owners.

---

### 📋 Overview

**Tired of scraping WeChat Official Accounts by hand?** This actor gives you reliable, structured data from any public WeChat OA — one clean run per task, one tidy dataset out.

**Why thousands of China-market professionals choose SIÁN scrapers:**
- ✅ **Five operations, one actor**: User posts, article detail, comments, engagement metrics, and keyword search — pick what you need
- ⚡ **Fully structured output**: Every response pre-flattened into a flat row — no parsing nested Chinese JSON
- 🌏 **Comments with reader location**: Province and country fields on every comment — geo-segment sentiment instantly
- 💰 **Best price on the market**: Pay-per-result — you only pay for data you actually receive
- 💎 **No account, no API key, no setup**: Just paste a `wxid` or article URL and run — works out of the box
- 🔁 **Automatic retry on transient errors**: WeChat's data layer occasionally rate-limits — we retry with exponential backoff so your run completes

---

### ✨ Features

- 📣 **User Posts**: Full post history for a WeChat Official Account by `wxid` — titles, cover images, article URLs, publish timestamps
- 📄 **Article Detail**: Complete article content — title, full body text, author, publish time, account nickname
- 💬 **Article Comments**: Reader comments with text, like counts, country, province (geo!), top-comment flag, and reply threads
- 📊 **Article Engagement**: Read count, like count, watch count, share count, and comment count for any article
- 🔍 **Keyword Search**: Search WeChat by query across 13 content types — articles, accounts, channels, mini-programs, news, moments, live streams, books, music, and more
- 🌏 **Chinese-native + English keywords**: Mixed-language search supported (e.g. `双十一`, `iPhone 15`, `electric vehicles`)
- 📍 **Reader geolocation**: Every comment carries `province` and `country` — segment sentiment by region
- 🔗 **Article URL chaining**: Run `User Posts` first to harvest URLs, then feed them into Detail / Comments / Engagement
- 📄 **Paginated keyword search**: Set `maxPages` to control scope (1–50 pages, ~20 results/page)
- 🔁 **Resilient by default**: Transient `503 / FAILED, RETRY` upstream errors auto-retry with exponential backoff

---

### 🎬 Quick Start

```bash
curl -X POST "https://api.apify.com/v2/acts/sian.agency~wechat-official-accounts-scraper/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"operation": "userPosts", "wxid": "rmrbwx"}'
````

***

### 🎯 Which Operation Should I Use?

| I want to... | Use this |
|---|---|
| Pull a competitor's full post history | **User Posts** with their `wxid` |
| Find the `wxid` of an account by display name | **Keyword Search** → `searchType: accounts` |
| Read an article's full body text | **Article Detail** with the article URL |
| Get reader sentiment with location data | **Article Comments** → filter by `province` |
| Measure a viral post's true reach | **Article Engagement** → `readNum`, `shareNum` |
| Find trending articles on a topic | **Keyword Search** → `searchType: articles` + `sortType: _4` (hot) |
| Discover rising Official Accounts in a niche | **Keyword Search** → `searchType: accounts` |
| Chain content + engagement in one pipeline | **User Posts** → loop URLs into **Article Engagement** |

***

### 🚀 Getting Started (3 Simple Steps)

#### Step 1: Pick an Operation

Choose one of five modes: 📣 User Posts, 📄 Article Detail, 💬 Article Comments, 📊 Article Engagement, or 🔍 Keyword Search.

#### Step 2: Provide the Key Input

- **User Posts** → a `wxid` (e.g. `rmrbwx` for People's Daily, `Apple` for Apple official China)
- **Article Detail** / **Comments** / **Engagement** → an `articleUrl` (the `mp.weixin.qq.com/s?...` link)
- **Keyword Search** → any `keyword` (Chinese, English, or mixed)

#### Step 3: Run It

Click **Start**. Paginated operations (Keyword Search) respect `maxPages` (default 3, max 50).

***

### 📥 Input Configuration

| Field | Type | Required | Description |
|---|---|---|---|
| `operation` | enum | ✅ | `userPosts` | `articleDetail` | `articleComments` | `articleFeedback` | `keywordSearch` |
| `wxid` | string | for userPosts | WeChat Official Account ID (e.g. `rmrbwx`) |
| `articleUrl` | string | for articleDetail / Comments / Feedback | Full `mp.weixin.qq.com/s?...` URL |
| `keyword` | string | for keywordSearch | Search query (Chinese, English, mixed) |
| `searchType` | enum | — | `articles` (default) | `accounts` | `all` | `channels` | `mini_programs` | `news` | `moments` | `live_streams` | `books` | `music` | `emoji` | `encyclopedia` | `weixin_index` |
| `sortType` | enum | — | `_0` (default) | `_4` (hot) | `_2` (recency) | `_3` (relevance) |
| `maxPages` | integer | — | Pages to fetch for paginated ops (1–50, default 3) |

***

### 📤 Output Schema

Every row is annotated with metadata for filtering:

| Metadata field | What it tells you |
|---|---|
| `_operation` | Which operation produced the row (`userPosts`, `articleDetail`, etc.) |
| `_fetchedAt` | ISO timestamp the row was scraped |
| `_page` | Page number (1 for non-paginated ops) |
| `_sourceWxid` | Original input wxid (User Posts) |
| `_sourceArticleUrl` | Original input URL (Article ops) |
| `_sourceKeyword` | Original input keyword (Keyword Search) |
| `status` | `success` or `error` |
| `errorMessage` | Human-readable error if `status: error` |

**Per-operation key fields:**

- **User Posts** → `title`, `cover`, `url`, `postTime`, `postDate`, `articleSeqInPost`
- **Article Detail** → `title`, `content` (full body), `publishTime`, `author`, `accountNickname`
- **Article Comments** → `commentNickname`, `commentContent`, `likeCount`, `country`, `province`, `commentDate`, `replyCount`, `replies[]`
- **Article Engagement** → `readNum`, `likeNum`, `watchNum`, `shareNum`, `commentCount`, `commentsEnabled`
- **Keyword Search (articles)** → `title`, `desc`, `articleUrl`, `publishDate`, `relativeDate`, `accountTitle`, `cover`
- **Keyword Search (accounts)** → `wxid`, `accountName`, `accountDesc`, `signature`, `headImgUrl`, `verifyFlag`, `verifySource`

All upstream fields are also passed through as-is — power users get the full payload alongside our curated aliases.

***

### 💰 Pricing

Transparent pay-per-result pricing. You only pay for successful rows.

| Event | Price |
|---|---|
| Actor run start | $0.001 |
| User Posts row | $0.013 |
| Article Detail row | $0.130 |
| Article Comments row | $0.017 |
| Article Engagement row | $0.050 |
| Keyword Search row | $0.007 |

Error rows are never charged.

***

### 🆚 Which WeChat / China Social Scraper Is Right For You?

| Use case | Best fit |
|---|---|
| WeChat Official Accounts (公众号) deep data | **This actor** ✅ |
| Weibo posts and trending topics | A dedicated Weibo scraper |
| Douyin / TikTok China videos | A dedicated Douyin scraper |
| Xiaohongshu / RedNote posts | A dedicated Xiaohongshu scraper |
| Zhihu Q\&A | A dedicated Zhihu scraper |
| Taobao / Tmall product data | [Taobao & Tmall Product Scraper](https://apify.com/sian.agency/taobao-tmall-product-scraper?fpr=sian) |

**Vocabulary translation** for adjacent China-platform terms:

| WeChat term | Approximate equivalent |
|---|---|
| `gongzhonghao` / 公众号 | Official Account (a brand's WeChat publication) |
| `wxid` / aliasName | Account short ID (like `@handle` on Twitter) |
| `mp.weixin.qq.com` | The article hosting domain (like Medium) |
| `小程序` (mini program) | Embedded mini-app inside WeChat |
| `视频号` (Channels) | Short-form video feed (similar to Douyin) |
| `朋友圈` (Moments) | Friend-of-friend post feed (similar to FB feed) |

***

### ⚠️ Trademark & Legal Notice

This is an **independent third-party scraping tool**. It is **not affiliated with, endorsed by, or sponsored by Tencent Holdings Limited, WeChat, or Weixin**.

- "WeChat" and "Weixin" are trademarks of Tencent Holdings Limited.
- This actor only retrieves data that is publicly accessible from WeChat Official Accounts.
- Users are responsible for complying with applicable terms of service, copyright, and privacy laws when using the scraped data.

***

### 🛠️ Need Help?

- 🐛 **Bug reports**: Use the Issues tab in Apify Console for this actor
- 💡 **Feature requests**: Same place — we ship community-requested features regularly
- 📧 **Direct contact**: apify@sian-agency.online
- ⭐ **Love this tool?** Leave a 5-star review — it helps the next person find it

***

### 🔑 Hidden SEO keywords

# Actor input Schema

## `operation` (type: `string`):

🎯 **PICK ONE OPERATION PER RUN.** Each run produces one clean dataset matching the chosen mode.

- **📣 User Posts** — full post history for a WeChat OA, by `wxid` (e.g. `rmrbwx` = People's Daily)
- **📄 Article Detail** — full article content (title, body text, publish time, author) by `articleUrl`
- **💬 Article Comments** — reader comments with text, likes, country, province, and reply threads
- **📊 Article Engagement** — read count, like count, watch count, share count, and comment count for one article
- **🔍 Keyword Search** — search WeChat by keyword across articles, accounts, channels, or other content types

💡 **TIP:** Run `User Posts` first to discover article URLs, then chain into `Article Detail` / `Comments` / `Engagement` for deep enrichment.

## `wxid` (type: `string`):

📣 **Required for `User Posts` operation.**

The short ID of the WeChat Official Account. Examples:

- `rmrbwx` — 人民日报 (People's Daily)
- `iMacTalk` — 移动新发现
- `Apple` — Apple official China

💡 **TIP:** Use the `Keyword Search` operation with searchType `accounts` to discover the `wxid` of any account by its display name. The wxid appears in the `aliasName` field of the results.

⚠️ **Ignored** for other operations.

## `articleUrl` (type: `string`):

📄 **Required for `Article Detail`, `Article Comments`, and `Article Engagement` operations.**

The full WeChat article URL. Format: `https://mp.weixin.qq.com/s/...` or `http://mp.weixin.qq.com/s?__biz=...&mid=...&idx=...&sn=...`

Find these URLs:

- In the `url` field of any `User Posts` result row
- In the `doc_url` field of any keyword-search result row
- Direct copy from any shared WeChat article

💡 **TIP:** Both `http://` and `https://` URLs work. Hash fragments (`#rd`) are optional.

⚠️ **Ignored** for User Posts and Keyword Search operations.

## `keyword` (type: `string`):

🔍 **Required for `Keyword Search` operation.**

Any search query. Supports Chinese, English, and mixed:

- `人工智能` (AI)
- `电动汽车` (electric vehicles)
- `iPhone 15`
- `双十一` (Singles Day)

💡 **TIP:** Pair with `Search Type` to target accounts (`accounts`), articles (`articles`), or specific content like news (`news`) or mini-programs (`mini_programs`).

## `searchType` (type: `string`):

🗂️ **Applies to `Keyword Search` only.** What kind of content to return.

- `all` — All result types (default)
- `accounts` — Official Accounts (公众号) — best for discovering `wxid` values
- `articles` — Articles (文章) — best for trend research
- `channels` — WeChat Channels videos
- `mini_programs` — Mini Programs
- `news` — News results
- `moments` — Moments posts
- `live_streams` — Live streams
- `books` — Books
- `music` — Music
- `emoji` — Emoji / stickers
- `encyclopedia` — Encyclopedia entries
- `weixin_index` — WeChat Index trends

## `sortType` (type: `string`):

📊 **Applies to `Keyword Search` only.** How to order results.

- `_0` — Default sort
- `_4` — By popularity (hot)
- `_2` — By recency
- `_3` — By relevance

## `maxPages` (type: `integer`):

📄 **Applies to paginated operations** (User Posts, Keyword Search, Article Comments). Ignored for Article Detail and Article Engagement.

- **User Posts:** posts are returned in a single call; pagination unused
- **Keyword Search:** ~20 results per page (offset increments by 20)
- **Article Comments:** all comments returned in a single call; pagination unused

💡 **TIP:** Start small (1–3 pages) to preview results before scaling up.

⚠️ Hard cap: 50 pages to prevent runaway runs.

## Actor input object example

```json
{
  "operation": "userPosts",
  "wxid": "rmrbwx",
  "articleUrl": "http://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667011655&idx=1&sn=b8768e2b7aa99556cfa7f628f76b5f70&chksm=bcf28138e8d1e3300acfeaa3a68e6315e69e22c6a36a63295fb2270dacec7b984f54bb86a2bc&scene=126&sessionid=0#rd",
  "keyword": "AI",
  "searchType": "articles",
  "sortType": "_0",
  "maxPages": 3
}
```

# Actor output Schema

## `output` (type: `string`):

WeChat Official Account articles, comments, engagement metrics, accounts, or search results — one flat row per upstream item, with full article URLs, cover images, comment text, reviewer location, and engagement counts.

## `report` (type: `string`):

HTML report with run status, success/error row counts, success rate, pages fetched, duration, and the inputs used — written even on fatal crash.

# 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 = {
    "wxid": "rmrbwx",
    "articleUrl": "http://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667011655&idx=1&sn=b8768e2b7aa99556cfa7f628f76b5f70&chksm=bcf28138e8d1e3300acfeaa3a68e6315e69e22c6a36a63295fb2270dacec7b984f54bb86a2bc&scene=126&sessionid=0#rd",
    "keyword": "AI"
};

// Run the Actor and wait for it to finish
const run = await client.actor("sian.agency/wechat-official-accounts-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 = {
    "wxid": "rmrbwx",
    "articleUrl": "http://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667011655&idx=1&sn=b8768e2b7aa99556cfa7f628f76b5f70&chksm=bcf28138e8d1e3300acfeaa3a68e6315e69e22c6a36a63295fb2270dacec7b984f54bb86a2bc&scene=126&sessionid=0#rd",
    "keyword": "AI",
}

# Run the Actor and wait for it to finish
run = client.actor("sian.agency/wechat-official-accounts-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "wxid": "rmrbwx",
  "articleUrl": "http://mp.weixin.qq.com/s?__biz=MjM5MjAxNDM4MA==&mid=2667011655&idx=1&sn=b8768e2b7aa99556cfa7f628f76b5f70&chksm=bcf28138e8d1e3300acfeaa3a68e6315e69e22c6a36a63295fb2270dacec7b984f54bb86a2bc&scene=126&sessionid=0#rd",
  "keyword": "AI"
}' |
apify call sian.agency/wechat-official-accounts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=sian.agency/wechat-official-accounts-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "WeChat Official Accounts Scraper",
        "description": "📣 Scrape WeChat (Weixin) Official Accounts — user posts, full article content, comments with reader province, engagement metrics, and keyword search. Five operations in one actor. No setup. Independent third-party tool; not affiliated with Tencent / WeChat / Weixin.",
        "version": "1.1",
        "x-build-id": "AfbGDjxAEmaraFfwV"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/sian.agency~wechat-official-accounts-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-sian.agency-wechat-official-accounts-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/sian.agency~wechat-official-accounts-scraper/runs": {
            "post": {
                "operationId": "runs-sync-sian.agency-wechat-official-accounts-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/sian.agency~wechat-official-accounts-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-sian.agency-wechat-official-accounts-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "operation"
                ],
                "properties": {
                    "operation": {
                        "title": "🎯 Operation — what do you want to scrape?",
                        "enum": [
                            "userPosts",
                            "articleDetail",
                            "articleComments",
                            "articleFeedback",
                            "keywordSearch"
                        ],
                        "type": "string",
                        "description": "🎯 **PICK ONE OPERATION PER RUN.** Each run produces one clean dataset matching the chosen mode.\n\n- **📣 User Posts** — full post history for a WeChat OA, by `wxid` (e.g. `rmrbwx` = People's Daily)\n- **📄 Article Detail** — full article content (title, body text, publish time, author) by `articleUrl`\n- **💬 Article Comments** — reader comments with text, likes, country, province, and reply threads\n- **📊 Article Engagement** — read count, like count, watch count, share count, and comment count for one article\n- **🔍 Keyword Search** — search WeChat by keyword across articles, accounts, channels, or other content types\n\n💡 **TIP:** Run `User Posts` first to discover article URLs, then chain into `Article Detail` / `Comments` / `Engagement` for deep enrichment.",
                        "default": "userPosts"
                    },
                    "wxid": {
                        "title": "📣 WeChat Account ID (wxid)",
                        "type": "string",
                        "description": "📣 **Required for `User Posts` operation.**\n\nThe short ID of the WeChat Official Account. Examples:\n- `rmrbwx` — 人民日报 (People's Daily)\n- `iMacTalk` — 移动新发现\n- `Apple` — Apple official China\n\n💡 **TIP:** Use the `Keyword Search` operation with searchType `accounts` to discover the `wxid` of any account by its display name. The wxid appears in the `aliasName` field of the results.\n\n⚠️ **Ignored** for other operations."
                    },
                    "articleUrl": {
                        "title": "📄 Article URL",
                        "type": "string",
                        "description": "📄 **Required for `Article Detail`, `Article Comments`, and `Article Engagement` operations.**\n\nThe full WeChat article URL. Format: `https://mp.weixin.qq.com/s/...` or `http://mp.weixin.qq.com/s?__biz=...&mid=...&idx=...&sn=...`\n\nFind these URLs:\n- In the `url` field of any `User Posts` result row\n- In the `doc_url` field of any keyword-search result row\n- Direct copy from any shared WeChat article\n\n💡 **TIP:** Both `http://` and `https://` URLs work. Hash fragments (`#rd`) are optional.\n\n⚠️ **Ignored** for User Posts and Keyword Search operations."
                    },
                    "keyword": {
                        "title": "🔍 Search Keyword",
                        "type": "string",
                        "description": "🔍 **Required for `Keyword Search` operation.**\n\nAny search query. Supports Chinese, English, and mixed:\n- `人工智能` (AI)\n- `电动汽车` (electric vehicles)\n- `iPhone 15`\n- `双十一` (Singles Day)\n\n💡 **TIP:** Pair with `Search Type` to target accounts (`accounts`), articles (`articles`), or specific content like news (`news`) or mini-programs (`mini_programs`)."
                    },
                    "searchType": {
                        "title": "🗂️ Search Type",
                        "enum": [
                            "articles",
                            "accounts",
                            "all",
                            "channels",
                            "mini_programs",
                            "news",
                            "moments",
                            "live_streams",
                            "books",
                            "music",
                            "emoji",
                            "encyclopedia",
                            "weixin_index"
                        ],
                        "type": "string",
                        "description": "🗂️ **Applies to `Keyword Search` only.** What kind of content to return.\n\n- `all` — All result types (default)\n- `accounts` — Official Accounts (公众号) — best for discovering `wxid` values\n- `articles` — Articles (文章) — best for trend research\n- `channels` — WeChat Channels videos\n- `mini_programs` — Mini Programs\n- `news` — News results\n- `moments` — Moments posts\n- `live_streams` — Live streams\n- `books` — Books\n- `music` — Music\n- `emoji` — Emoji / stickers\n- `encyclopedia` — Encyclopedia entries\n- `weixin_index` — WeChat Index trends",
                        "default": "articles"
                    },
                    "sortType": {
                        "title": "📊 Sort Order",
                        "enum": [
                            "_0",
                            "_4",
                            "_2",
                            "_3"
                        ],
                        "type": "string",
                        "description": "📊 **Applies to `Keyword Search` only.** How to order results.\n\n- `_0` — Default sort\n- `_4` — By popularity (hot)\n- `_2` — By recency\n- `_3` — By relevance",
                        "default": "_0"
                    },
                    "maxPages": {
                        "title": "📄 Max pages to fetch",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "📄 **Applies to paginated operations** (User Posts, Keyword Search, Article Comments). Ignored for Article Detail and Article Engagement.\n\n- **User Posts:** posts are returned in a single call; pagination unused\n- **Keyword Search:** ~20 results per page (offset increments by 20)\n- **Article Comments:** all comments returned in a single call; pagination unused\n\n💡 **TIP:** Start small (1–3 pages) to preview results before scaling up.\n\n⚠️ Hard cap: 50 pages to prevent runaway runs.",
                        "default": 3
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
