# WeChat Search Scraper - Sogou Article Search by Keyword (`scrape_api/sogou-wechat-search`) Actor

Search public WeChat Official Account articles through Sogou. Export clean titles, snippets, publisher names, dates, images and positions, with optional temporary article URLs. Up to 100 articles per keyword for brand monitoring and China market research.

- **URL**: https://apify.com/scrape_api/sogou-wechat-search.md
- **Developed by:** [Scrape_API](https://apify.com/scrape_api) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 results

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 Search Scraper

WeChat Search Scraper finds public articles from WeChat (also written Weixin) Official Accounts through Sogou. Turn a list of keywords into structured article rows for brand monitoring, China market research, campaign analysis and agency reporting.

The dataset contains article titles, search snippets, publisher names, publication times, images and positions within each keyword. You can also request temporary WeChat article URLs. The actor searches public material without signing in to a WeChat account. It does not return private messages or private account data.

### What WeChat Search Scraper returns

Each dataset row represents one article for one search term. Articles repeated on later pages are removed using the source article identifier. The same article can still appear once under each of two different keywords, because each search is a separate set of results.

Positions start at one for each keyword and continue across collected pages. They describe the search order after duplicate removal. They are not an estimate of readership, an engagement score or a publication ranking. Search results can move between requests, so a later run may return different articles or a different order.

Use the publisher field to group mentions by Official Account display name. Use the publication timestamp to organise collected results by date in your own analysis. Display names are not stable account identifiers: this actor does not provide a verified account ID.

### Input

Set `keywords` to an array of search strings. Chinese names and Latin brand names are supported. For example, the supplied examples use `比亚迪` and `Shein`. Leading and trailing whitespace is removed. Empty strings are ignored and repeated trimmed keywords are searched once. Supply up to 100 keywords, with at most 200 characters in each non-empty term.

`maxPagesPerQuery` defaults to ten and accepts values from one to ten. A source page contains at most ten articles and can contain fewer. The actor stops earlier if the source has no next page.

`maxItems` defaults to 100 and is a limit **per keyword**. It is not a total limit across the run. With two keywords and a limit of ten, collection can therefore produce up to twenty rows for a paying user, provided each search has enough results. The free-user delivery cap described below applies to the entire run.

Set `resolveArticleUrls` to true when you need links that can be opened as WeChat article destinations. It is false by default. Resolution adds work for each article. If a destination cannot be resolved, the article remains in the dataset with `article_url` set to null and an explicit warning in the run output.

### Output

The default dataset contains the results. Download it from Apify in JSON, CSV, Excel or another supported dataset format. The run output record reports collection status, warnings and delivery counts.

The main fields are `query`, `title`, `url`, `position`, `publisher`, `published_at`, `snippet` and `image_url`. `fetched_at` records when the search page was retrieved. `published_at` is the publication time supplied by the source, converted to UTC. A missing snippet is null rather than invented text.

Additional fields include `page`, `article_id`, `published_timestamp`, `thumbnail_url`, `article_url` and `total_results`. The total is the approximate count shown on the first search page. It is not a promise that all those articles can be retrieved. A search can report thousands of matches while only its first ten pages are available.

The required `url` field always contains the Sogou result link. Opening that link in a fresh browser may show a challenge. The optional `article_url` field contains a signed temporary `mp.weixin.qq.com` destination when resolution succeeds. These two fields have different purposes and are never substituted for each other.

#### Example row

The row below is one real delivered record, copied unchanged from the supplied example `examples/byd.json`, which is parsed from the fetched source page `research/fixtures/search-byd-p1.html` (retrieved 2026-11-06T11:50:34Z). Only the long result `url` and the image fields are omitted for readability. `article_url` is null because this example was collected without link resolution.

```json
{
  "query": "比亚迪",
  "title": "比亚迪海豚",
  "position": 1,
  "publisher": "尊驰汽贸-伟",
  "published_at": "2026-11-06T09:27:23Z",
  "snippet": "新到[庆祝][庆祝]2023比亚迪海豚 420km本地一手,原版原漆,7万多公里电动座椅、旋转大屏、一键启动保险到 27 年 11,精品车况,...",
  "article_id": "07c26c1a58a9d7a4d0a55ed3e15b82a4",
  "article_url": null,
  "total_results": 42003,
  "page": 1,
  "fetched_at": "2026-11-06T11:50:34Z"
}
```

Live measurement for this build: one run that walked all ten source pages for this keyword delivered 89 unique articles in 36 seconds, and one run with link resolution delivered ten rows with resolved destinations in 15 seconds. Your own timing depends on the keyword and on how fast the source answers.

### Search depth and article link limits

Anonymous search exposes at most 100 source positions per keyword across ten pages. Short pages and duplicates often reduce the number of unique rows. Asking for 100 therefore does not guarantee delivery of 100. A source list that ends earlier is a complete result for that search.

There is no source date filter, account filter or date sort in this actor. Results follow Sogou relevance order and may include related matches rather than exact occurrences. For a busy keyword, the first ten pages can cover a short period. For another keyword, the same search depth can include much older articles. This actor cannot guarantee historical coverage.

Resolved article URLs are temporary, not permanent archive links. Research confirmed one such URL still worked after 26 minutes; its lifetime beyond that was not established. Resolve close to the moment you need to open a link. Keep the article identifier and descriptive fields for your own records.

### Use cases

**Brand monitoring for the China market.** Search your brand name in Chinese and in Latin script on a schedule. Compare `article_id` inside each keyword between runs, so a recurring article is not counted again as a new publication. Group the rows by `publisher` to see which Official Accounts keep mentioning you.

**Market and competitor research.** See who publishes about a topic, what they write in the snippet, how the source ranks the results and when the articles appeared. The `position` field keeps that ranking per keyword across the collected pages, and `total_results` gives the approximate size the source reports for the search.

**Agency and analyst reporting.** Export the dataset as CSV or Excel and join it with the mention records you already keep. `fetched_at` tells you when each search page was read, so every figure in your report can point back to a collection moment.

**Campaign coverage checks.** Follow the keywords of a campaign and check whether campaign articles appear at all, at which positions, and within which publication dates. Because there is no source date filter, you filter the returned timestamps in your own processing.

**Buzz tracking over time.** Run the same keyword list at a fixed interval and compare `total_results` between runs as an approximate popularity signal. It is the count the source displays, not a measured audience figure.

### How WeChat Search Scraper compares with the alternatives

**Searching by hand.** You can open the WeChat section of the search engine yourself, type a keyword and read page after page. That works for a quick look, but nothing is exported, nothing is repeatable, the order changes between visits, and every new keyword costs you the same manual work. A Sogou WeChat search is exactly what this actor automates.

**Official WeChat publishing tools.** Accounts you administer yourself can be managed through the platform's own interfaces. Those cover your own publications; they do not give you a keyword search across other people's public articles.

**Full-text account scrapers.** If you start from one account link or one article link and need the complete body text, a full-text tool is the better job. WeChat Search Scraper starts from keywords and runs a WeChat article search for each of them: title, snippet, account display name, publication date, position and link fields come back as rows. Full text stays out of scope, as the FAQ explains.

**General web search scrapers.** Public WeChat articles are barely covered by general search engines, so a general search rarely surfaces them. This actor queries the source's own WeChat index directly, which is why the same search can return thousands of matches even when general search returns none.

**Building it yourself.** Collection code, pagination, duplicate removal, link handling and maintenance are yours to keep. This actor ships those steps as a maintained Apify product with a charged result event, a free-plan delivery cap and a dataset you can schedule.

### Pricing

The result event counts the unique dataset rows actually delivered. Duplicate rows removed during collection are not counted. Empty searches produce no result charges. A failed article-URL resolution does not create another row or another result charge. Consult the current Pricing tab for the applicable event price and platform costs.

Users on a free Apify plan receive at most ten dataset rows per run. Collection stops at that delivery cap. The actor records whether the cap affected the run in its output. This cap does not imply that delivered rows have no event charge; account credits and the listed pricing still apply.

### Automation and monitoring

On Apify, the actor automatically collects continuation pieces for larger keyword lists and optional link resolution. You do not need to manage the internal continuation input. Review the run warnings when a requested operation is incomplete. Earlier successful articles remain available if a later search page fails.

For recurring monitoring, save the input and schedule runs at an interval that suits your reporting workflow. Compare `article_id` within each keyword between runs. Combine the results with your existing mention records rather than treating every recurring appearance as a new publication.

### FAQ

#### Does it return full article text or reading statistics?

No. It returns public search titles, snippets, account display names, publication dates and image links. Full text, read counts and verified account identifiers are outside this actor's output.

#### Can I get more than 100 articles for one keyword?

No. The public source ends after ten pages. The actor honours that boundary and does not sign in to fetch additional results.

#### Why is article_url null?

Resolution is disabled by default. When enabled, a failed destination lookup leaves it null and adds a warning. The original result fields are retained.

#### Are the article links permanent?

No. The resolved WeChat destinations are signed temporary URLs. Their maximum lifetime is unknown, and long-term validity is not promised.

#### Can I search only articles published yesterday?

There is no source date filter. You can filter the returned timestamps in your own processing, but that does not expand the source's ten-page search window.

#### How is this different from a WeChat Official Account scraper?

An account scraper starts from account links or account identifiers and pulls the articles of that account. WeChat Search Scraper starts from your keywords, runs a Sogou WeChat search and returns the matching articles with account display names, publication dates and positions. It does not enumerate an account's full archive, and it does not deliver article bodies.

# Actor input Schema

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

One to 100 search terms. Empty entries are removed and duplicate trimmed terms are searched once. Sogou may return related matches.

## `maxPagesPerQuery` (type: `integer`):

Maximum source pages for each keyword. Anonymous search ends after page 10; a page may contain fewer than ten articles.

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

Unique article limit PER KEYWORD, not a global run limit. At most 100; source depth and duplicates can reduce the number delivered.

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

Add article_url by requesting each result link. These signed URLs expire; lifetime is unknown beyond the measured 26 minutes. Failed resolution keeps the article with a warning.

## Actor input object example

```json
{
  "keywords": [
    "比亚迪",
    "Shein"
  ],
  "maxPagesPerQuery": 10,
  "maxItems": 100,
  "resolveArticleUrls": false
}
```

# Actor output Schema

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

One row per unique article per keyword.

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

Run counts, warnings and free-tier status.

# 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": [
        "比亚迪",
        "Shein"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrape_api/sogou-wechat-search").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": [
        "比亚迪",
        "Shein",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("scrape_api/sogou-wechat-search").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": [
    "比亚迪",
    "Shein"
  ]
}' |
apify call scrape_api/sogou-wechat-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrape_api/sogou-wechat-search"
        }
    }
}
```

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/B7U1Fk7wVIl3hCFQU/builds/mAzG9TBmykqjdvo2V/openapi.json
