# Weibo Keyword Search - Posts, Comments & Images (`amethys/weibo-keyword-search-scraper`) Actor

\[$0.8/1000] Search Weibo by keyword and get every matching post fully enriched - likes, reposts, complete comment threads, author info, and directly downloadable image URLs, no login required.

- **URL**: https://apify.com/amethys/weibo-keyword-search-scraper.md
- **Developed by:** [Amethys](https://apify.com/amethys) (community)
- **Categories:** Social media, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

### Weibo Keyword Search Scraper - Posts, Comments & Images

**Weibo Keyword Search Scraper** searches [Weibo](https://weibo.com/), China's largest microblogging platform, for any keyword or hashtag and returns every matching post fully enriched - no login required. Each result includes likes, reposts, the complete comment thread, author details, and directly downloadable image URLs. Run it on demand, on a schedule, or via the [Apify API](https://docs.apify.com/api/v2) with built-in proxy rotation, monitoring, and integrations.

#### Why use this Actor?

- **Brand & keyword monitoring** - see every public post mentioning your brand, product, or topic on Chinese social media.
- **Sentiment & trend research** - full text plus real comment threads (not just counts) for NLP pipelines.
- **Content discovery** - feed a trending topic (from the companion [Weibo Trending & Content Scraper](https://apify.com)) straight into this Actor to see the posts behind it.
- **No account required** - uses Weibo's own public anonymous-visitor access path.

#### How to use Weibo Keyword Search Scraper

1. Click **Try for free** (or **Start**) on the Actor page.
2. Enter a **Search keyword** - any word, hashtag, or phrase.
3. Adjust `maxResults`, `fetchComments`, and `maxCommentsPerPost` as needed.
4. Click **Start** and watch results land in the **Output** tab as they're scraped.
5. Export results as JSON, CSV, Excel, or connect to your pipeline via API/integrations.

#### Input

| Field | Description |
|---|---|
| `query` | Search keyword, hashtag, or phrase (required) |
| `maxResults` | Maximum number of matching posts to return (default 20) |
| `fetchComments` | Fetch full comment threads, not just counts (default true) |
| `maxCommentsPerPost` | Max comments fetched per post (default 20) |

Example input:

```json
{
  "query": "科技",
  "maxResults": 30,
  "fetchComments": true,
  "maxCommentsPerPost": 10
}
```

#### Output

```json
{
  "searchQuery": "科技",
  "text": "Example matching post text...",
  "author": { "screenName": "example_user", "followersCount": "5.2万", "verified": false },
  "repostsCount": 12,
  "commentsCount": 48,
  "likesCount": 921,
  "images": [{ "downloadUrl": "https://wx1.sinaimg.cn/mw2000/....jpg" }],
  "comments": [{ "text": "...", "author": { "screenName": "..." }, "likeCount": 3 }],
  "url": "https://m.weibo.cn/status/abc123"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

#### Data table

| Field | Description |
|---|---|
| `text` / `textHtml` | Post text, plain and raw HTML |
| `author` | Screen name, avatar, follower count, verification badge |
| `repostsCount` / `commentsCount` / `likesCount` | Engagement counts |
| `images` | Direct download URLs, thumbnail and full resolution |
| `videoUrl` | Direct video stream URL, when present |
| `comments` | Full comment thread: author + text + like count |
| `retweetedStatus` | Original post, when the matching post is a repost |

#### Cost of usage

Priced at **$0.8/1000** results - cheaper than most comparable Weibo scrapers on Apify Store. Each returned post and each fetched comment counts as a result, so lower `maxCommentsPerPost` for tighter budgets.

#### Tips

- Need the hot-search ranking board or live content feeds instead of keyword search? Use the companion [Weibo Trending & Content Scraper](https://apify.com).
- Set `fetchComments: false` for the cheapest, fastest run when you only need post-level data.

#### FAQ

**Is this legal?** This Actor only reads Weibo's public, unauthenticated pages and APIs - the same data any anonymous visitor sees in a browser. You are responsible for complying with Weibo's Terms of Service and applicable law in your jurisdiction.

**Why did I get fewer results than `maxResults`?** Weibo's search index may simply have fewer matching posts, or some results may sit behind a login wall this Actor does not attempt to bypass.

Found a bug or need a custom variant? Open an issue on the Actor's Issues tab.

# Actor input Schema

## `query` (type: `string`):

Keyword, hashtag, or phrase to search for on Weibo.

## `maxResults` (type: `integer`):

Maximum number of matching posts to return.

## `fetchComments` (type: `boolean`):

Fetch the full comment thread (author + text) for every matching post, not just the comment count.

## `maxCommentsPerPost` (type: `integer`):

Maximum number of comments to fetch per post when 'Fetch comments' is enabled.

## Actor input object example

```json
{
  "maxResults": 20,
  "fetchComments": true,
  "maxCommentsPerPost": 20
}
```

# Actor output Schema

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

No description

## `runInfo` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("amethys/weibo-keyword-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("amethys/weibo-keyword-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 '{}' |
apify call amethys/weibo-keyword-search-scraper --silent --output-dataset

```

## MCP server setup

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