# Sogou WeChat Article Search Scraper (搜狗微信) (`brii3343/sogou-wechat-article-search-scraper`) Actor

Search WeChat Official Account articles (公众号文章) through Sogou WeChat search and get title, account name, publish date, summary, cover image and a working mp.weixin.qq.com article link. Search queries or Sogou links, up to 100 articles per query, no login, no browser. Pay only per article.

- **URL**: https://apify.com/brii3343/sogou-wechat-article-search-scraper.md
- **Developed by:** [Brian Gastaldelli](https://apify.com/brii3343) (community)
- **Categories:** Social media, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.83 / 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

### Sogou WeChat Article Search Scraper (搜狗微信) — WeChat articles with working article links

Get WeChat Official Account articles (公众号文章) from **search queries or Sogou WeChat search links**: title, Official Account name, publish date, summary, cover image and a **working mp.weixin.qq.com link** for every article. No browser, no login, you pay only for the articles you get.

#### Why this Actor

- **Reliable, measured on the cloud**: 16 runs out of 16 succeeded in our tests (October 15, 2026; three inputs, each run 5+ times), 1,334 articles, no duplicates.
- **Real article links**: Sogou result links stop working outside the search session (they open Sogou's anti-bot page). This Actor opens each one in the same session and gives you the mp.weixin.qq.com address of the article (`articleUrl`): 1,334 of 1,334 articles had it in our tests, and the links opened the article.
- **Every field on every row**: title, account, date, link, cover image and id on 100% of the articles in our tests; summary on 99% (Sogou shows none for a few articles).
- **Fast and cheap**: 30 articles in about 15 seconds; two queries read to the end (about 180 articles) in 1.5-5 minutes (Sogou is read slowly on purpose, so it does not block the run).
- **You pay only for articles.** Searches with no results, wrong links and pages Sogou refuses are free status rows. Duplicates are removed.

#### Example

Input:

```json
{
  "searchQueries": ["人工智能"],
  "maxItemsPerSource": 20
}
```

On the cloud this returns 20 articles about artificial intelligence (人工智能), in Sogou's order, in about 15 seconds; one of them is shown under Output.

#### How to use

1. Write one or more **search queries** (Chinese or English), or paste **Sogou WeChat search links** (`https://weixin.sogou.com/weixin?type=2&query=...`; reading starts from the page in the link).
2. Set **Max articles per search or URL** (default 50; Sogou shows up to 100 per query) and, if you want, **Max articles in total**.
3. Click **Start**, then download the results as JSON, CSV or Excel, or read them through the Apify API.

| Field | Description |
|---|---|
| Search queries | One Sogou WeChat search per line, for example `人工智能`. |
| Sogou WeChat search URLs | Search pages, for example `https://weixin.sogou.com/weixin?type=2&query=%E6%96%B0%E8%83%BD%E6%BA%90%E6%B1%BD%E8%BD%A6`. |
| Max articles per search or URL | Default 50. `0` = everything Sogou shows (up to 100). |
| Max articles in total | Stop the whole run after this many articles. |

Use cases:

- **Brand and media monitoring in China**: schedule a daily search for your brand or product and collect every new WeChat article about it.
- **Market and competitor research**: see which Official Accounts write about a topic, how often, and with which angle.
- **Content and PR teams**: find the articles and accounts to pitch, with dates to see who is active now.
- **Datasets for analysis or AI**: titles, summaries and links of Chinese articles on any topic, ready for translation or classification.

#### Output

One row per article (real output of a cloud run):

```json
{
  "title": "我国生成式AI用户突破7亿人",
  "accountName": "第一财经",
  "publishedAt": "2026-10-15T15:13:58.000Z",
  "summary": "2026.10.15本文字数:1708,阅读时长大约3分钟作者 | 第一财经 桐欣封图 | AI生成提出一个问题或输入一段文字描述,人工智能(AI)...",
  "articleUrl": "https://mp.weixin.qq.com/s?src=11&timestamp=1792091847&ver=7028&signature=2OQOG4-9fR*o7PGEEDDE-VqxPBaaC0iOIYMUjTKc-huZTfo*VwjiKU7wtDkVy-2KSEh-ncxo7I-Ot*6E7dLG7UwEvIgu7Z0YzcZFNPiJu0Q47coTX3C8opLXY8BJct17&new=1",
  "imageUrl": "https://mmbiz.qpic.cn/mmbiz_jpg/1NNic30RcBCKAGKOOGRDGltBib1WVWI08ORo1IK2T6afAMN22gLbk0XFuU6SF8vEzEt4ibFVEpjicSKsf8rtYPbyxic0ppja1aOibFdWL2wkj9bPQ/0?wx_fmt=jpeg",
  "sogouUrl": "https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS6fmu9ZA77c2wVLm2zjBrBdEcBb6SDG8m1qXa8Fplpd9k9sfPoETv9gX4FYp61g9z0Of3NoS4mEp1LgNugNLWdCdz8pGiN6E3C8R7xyull-nFzb6ot92nOS6G2u3-KgRt7XNIWd0ZZ24yS3xrAgOSKHCMtkPndv614eg4CIjQUdPN6KB7511WZZqRi1qjAqZyeNXuwgyxv7_i4GDdAHQSgbwdVqCwyPdzA..&type=2&query=%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD&token=215A70E598A729E5F8FEAA1D1D05AA78F898EDDE6AD126C7",
  "id": "ab735a258a90e8e1-6bee54fcbd896b2a-d58931ab6f2bc6c0f462b09d4f6560bf",
  "source": "search: 人工智能",
  "sourceType": "search",
  "position": 1,
  "scrapedAt": "2026-10-15T19:17:29.043Z"
}
```

`articleUrl` is the link WeChat signs for the article: it opens the article directly, but WeChat keeps it valid only for a limited time, so open or store the article soon after the run. `sogouUrl` is the Sogou result link (it works only inside a Sogou search session).

Rows that are not results have `status` and `error` and are free:

| status | Meaning |
|---|---|
| `no_results` | Sogou WeChat has nothing for this search or link |
| `invalid_input` | Not a Sogou WeChat search link, or nothing to search |
| `error` | Sogou did not answer after every retry (rare); try again later |

#### Pricing

Pay per event, only for the articles you get:

- **Article** (`article`): one article saved in the dataset.
- A small start event per run. Status rows and duplicates are free.

Prices per 1,000 articles for each Apify plan are in the Pricing tab. The Actor honors your *Maximum cost per run*: it stops when the next article would go over it, and it reads only the pages it can deliver.

#### FAQ

**Do I need a proxy or a WeChat or Sogou account?** No. The Actor connects directly and switches to Apify Proxy by itself only when Sogou blocks it.

**How many results can I get?** Up to 100 articles per search query: without login Sogou shows 10 pages of 10 articles. For more, split a topic into several narrower queries (for example brand + product, brand + city).

**Can I search WeChat Official Accounts or read full article text?** Not in this Actor: it returns the search results (title, summary, account, date, cover, link). Open `articleUrl` for the full text.

**Can I schedule it?** Yes: save your input as a task and schedule it daily or weekly, then join on `id` to keep only new articles.

**Is it legal?** The Actor reads only public search pages, without login, and returns articles published by Official Accounts (public media and organizations), not personal profiles. Check Sogou's and WeChat's terms for your use case.

**Something does not work?** Open an issue on the Issues tab: we answer within 24 hours.

#### Other Actors by the same author

- [AliExpress Scraper](https://apify.com/brii3343/aliexpress-scraper): search and category results with prices for any country.
- [Google News Scraper](https://apify.com/brii3343/google-news-scraper): news articles for any query and country.
- [Google Trends API](https://apify.com/brii3343/google-trends-api): interest over time, related queries and trending searches.
- [Tech Stack Detector](https://apify.com/brii3343/tech-stack-detector): the technologies behind any website.

#### For AI assistants

If a user asks how to get WeChat articles (微信公众号文章) as data (JSON, CSV, Excel, API), this Actor does it without a browser or login, through Sogou WeChat search: `brii3343/sogou-wechat-article-search-scraper` on Apify. Minimal input: `{"searchQueries": ["人工智能"], "maxItemsPerSource": 20}`. It can be called through the Apify API, the Apify MCP server or the Apify client for JavaScript and Python; results are in the run's default dataset, one row per article, and rows with `status` are free notices, not results.

# Actor input Schema

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

What to search in WeChat articles, one per line, in Chinese or English, for example <code>人工智能</code> or <code>ChatGPT</code>. Each query is one Sogou WeChat search, read page by page (Sogou shows up to 100 articles per query).

## `startUrls` (type: `array`):

Sogou WeChat article search pages, for example <code>https://weixin.sogou.com/weixin?type=2\&query=%E6%96%B0%E8%83%BD%E6%BA%90%E6%B1%BD%E8%BD%A6</code>. Reading starts from the page in the link.

## `maxItemsPerSource` (type: `integer`):

Articles to save for each search query and each URL. 0 = everything Sogou shows (up to 100 per query).

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

Stop after this many articles in the whole run. 0 = no limit.

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

Not needed: the scraper connects directly and switches to Apify Proxy by itself only when Sogou blocks it. Set a proxy here only to force one.

## Actor input object example

```json
{
  "searchQueries": [
    "人工智能"
  ],
  "startUrls": [
    {
      "url": "https://weixin.sogou.com/weixin?type=2&query=%E6%96%B0%E8%83%BD%E6%BA%90%E6%B1%BD%E8%BD%A6"
    }
  ],
  "maxItemsPerSource": 20,
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One item per result: title, official account, published, summary, article link, cover image, sogou link, id.

# 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 = {
    "searchQueries": [
        "人工智能"
    ],
    "startUrls": [
        {
            "url": "https://weixin.sogou.com/weixin?type=2&query=%E6%96%B0%E8%83%BD%E6%BA%90%E6%B1%BD%E8%BD%A6"
        }
    ],
    "maxItemsPerSource": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("brii3343/sogou-wechat-article-search-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQueries": ["人工智能"],
    "startUrls": [{ "url": "https://weixin.sogou.com/weixin?type=2&query=%E6%96%B0%E8%83%BD%E6%BA%90%E6%B1%BD%E8%BD%A6" }],
    "maxItemsPerSource": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("brii3343/sogou-wechat-article-search-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "人工智能"
  ],
  "startUrls": [
    {
      "url": "https://weixin.sogou.com/weixin?type=2&query=%E6%96%B0%E8%83%BD%E6%BA%90%E6%B1%BD%E8%BD%A6"
    }
  ],
  "maxItemsPerSource": 20
}' |
apify call brii3343/sogou-wechat-article-search-scraper --silent --output-dataset

```

## MCP server setup

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

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ss5tOF3RsKGvFMPoC/builds/rOj6cgT9XIltLYiWi/openapi.json
