# Weibo Scraper & API | EveryInfra (`blushing_parachute/everyinfra-weibo-api`) Actor

Unofficial Weibo data via one Actor: search, profile, comments, trending, post_detail, user_posts, user_search, reposts, comment_replies, topic_search, user_post_search. Pay per request, no start fee. First 3 requests free across EveryInfra Actors.

- **URL**: https://apify.com/blushing_parachute/everyinfra-weibo-api.md
- **Developed by:** [ECHO](https://apify.com/blushing_parachute) (community)
- **Categories:** Social media, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 28.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $16.10 / 1,000 search requests

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

## Weibo Scraper & API | EveryInfra

Search posts, accounts, topics and one account's posts, and read user profiles, comment threads with their replies, reposts and trending topics using keywords and numeric IDs to track public discussions.

Use keywords to find posts, and user identifiers for profiles. Trending topics are a separate current list.

### Actions

| Action | What you get | Required | Optional | Results per request | Price per request |
|---|---|---|---|---|---|
| `search` | Find Weibo posts that mention a keyword, up to 50 per call. Get text, posting device, repost, comment and like counts, and the author's followers and verification. Use `is_repost` to separate reposts from original posts. Full coverage of a time period is not guaranteed. | keyword | — | 20 (up to 50) | $0.0161 |
| `profile` | Look up a Weibo user by numeric UID or /u/ profile link. Get display name, bio, gender, follower, following and post counts, and any verification note. Handles are not accepted, and the badge does not vouch for the person. Follower lists are not included. | user_id | — | 1 | $0.0040 |
| `comments` | Read comments on a Weibo post, up to 50 per call, with text, likes, commenter and time. Pass a /detail/ link or the numeric post ID. Short links that contain letters do not work, and the full reply tree is not promised. | url | — | 20 (up to 50) | $0.0015 |
| `trending` | Pull Weibo's current hot search list, up to 200 entries. Each entry has rank, topic, category, heat value, badge and hot or new flags. `hot_value` is Weibo's own measure and compares only within the list. No history is kept, so store snapshots yourself. | — | — | 20 (up to 200) | $0.0072 |
| `post_detail` | Open one Weibo post from its link or numeric ID and get the full text, view count, repost, comment and like counts, posting device, images or video, and the author's bio, followers and verification note. For a repost, `original_post_id` points to the original, which you can read with another `post_detail` call. | url | — | 1 | $0.0009 |
| `user_posts` | Page through the posts a Weibo account published itself, newest first, by numeric UID. Up to 20 per page and the count varies; recommended posts from other accounts are left out. Filter to original, video or image posts with `post_type`. Long posts show only their opening lines here, so use `post_detail` for the full text and view count. | user_id | page_token, post_type | all the source returns | $0.0081 |
| `user_search` | Find Weibo accounts by nickname or keyword. Each account has UID, display name, bio, follower and following counts, verification flag and verification note. Up to 20 per page and the count varies; the first page often holds only the one or two closest matches. The UID works in `profile` and `user_posts`. | keyword | page_token | all the source returns | $0.0352 |
| `reposts` | List who reposted a Weibo post and what they wrote, from the post's link or numeric ID. Each repost has text, time, like, comment and repost counts, and the reposting account's followers and verification. Only the first page is available, about 10 to 20 reposts; a post nobody has reposted returns an error. | url | — | 20 (up to 20) | $0.0161 |
| `comment_replies` | Read the replies under one Weibo comment from its numeric ID, taken from a `comments` row. Each reply has text, likes, time, IP region, the replier, and which reply it answers when it is a reply to a reply. Up to 20 from the first page. | comment_id | — | 20 (up to 20) | $0.0145 |
| `topic_search` | Find Weibo #topics# for a keyword with read and discussion counts, the topic's lead text and cover image. Up to 20 per page; pass `next_page_token` back as `page_token` for more. | keyword | page_token | all the source returns | $0.0007 |
| `user_post_search` | Search the posts one Weibo account published in the last 12 months by keyword, up to 50 per page, with text, time, counts and media. | user_id, keyword | page_token | all the source returns | $0.0009 |

### Input

Pick an `action` and fill the fields it uses. Example:

```json
{
  "action": "search",
  "keyword": "\u57ce\u5e02\u9a91\u884c"
}
```

Fields that another action needs are ignored when left empty. API users can also pass `{"action": ..., "params": {...}}`.

### Output

Each result is one dataset row. Rows keep every field the source page exposes for that action; a field the platform hides or leaves empty for a record is omitted rather than filled with a placeholder. When there is a next page, the run's `OUTPUT` record holds `next_page_token`.

- `search`: `id`, `url`, `text`, `posted_at`, `device`, `repost_count`, `comment_count`, `like_count`, `is_repost`, `author_id`, `author_name`, `author_bio`, `author_follower_count`, `author_following_count`, `author_verified`, `author_verified_reason`, `author_avatar_url`, `image_urls`, `video_url`, `platform`
- `profile`: `user_id`, `display_name`, `url`, `bio`, `gender`, `follower_count`, `following_count`, `post_count`, `is_verified`, `verified_reason`, `avatar_url`, `cover_image_url`, `company`, `created_at`, `platform`
- `comments`: `id`, `text`, `like_count`, `author_id`, `author_name`, `author_avatar_url`, `post_id`, `post_url`, `posted_at`, `platform`
- `trending`: `rank`, `title`, `category`, `hot_value`, `label`, `is_hot`, `is_new`, `url`, `platform`
- `post_detail`: `id`, `url`, `text`, `posted_at`, `device`, `repost_count`, `comment_count`, `like_count`, `view_count`, `is_repost`, `original_post_id`, `is_long_text`, `author_id`, `author_name`, `author_bio`, `author_follower_count`, `author_following_count`, `author_verified`, `author_verified_reason`, `author_avatar_url`, `image_urls`, `video_url`, `duration_sec`, `duration_seconds`, `platform`, `next_page_token`
- `user_posts`: `id`, `url`, `text`, `posted_at`, `device`, `repost_count`, `comment_count`, `like_count`, `view_count`, `is_repost`, `original_post_id`, `is_long_text`, `author_id`, `author_name`, `author_bio`, `author_follower_count`, `author_following_count`, `author_verified`, `author_verified_reason`, `author_avatar_url`, `image_urls`, `video_url`, `duration_sec`, `duration_seconds`, `platform`, `next_page_token`
- `user_search`: `user_id`, `display_name`, `url`, `bio`, `follower_count`, `following_count`, `is_verified`, `verified_reason`, `avatar_url`, `next_page_token`, `platform`
- `reposts`: `id`, `url`, `text`, `posted_at`, `device`, `repost_count`, `comment_count`, `like_count`, `is_repost`, `original_post_id`, `author_id`, `author_name`, `author_bio`, `author_follower_count`, `author_following_count`, `author_verified`, `author_verified_reason`, `author_avatar_url`, `platform`
- `comment_replies`: `id`, `text`, `like_count`, `posted_at`, `root_comment_id`, `reply_to_comment_id`, `ip_location`, `author_id`, `author_name`, `author_avatar_url`, `platform`
- `topic_search`: `title`, `url`, `text`, `cover_image_url`, `discuss_count`, `read_count`, `next_page_token`, `platform`
- `user_post_search`: `id`, `url`, `text`, `posted_at`, `device`, `repost_count`, `comment_count`, `like_count`, `is_repost`, `is_long_text`, `author_id`, `author_name`, `author_verified`, `author_avatar_url`, `image_urls`, `video_url`, `duration_sec`, `duration_seconds`, `platform`, `next_page_token`

#### Field notes

- `device`: Client the post was published from (such as an iPhone client).
- `is_repost`: Whether the post is a repost.
- `author_bio`: Author bio.
- `author_following_count`: Number of accounts the author follows.
- `author_verified`: Whether the author carries Weibo verification (the V badge).
- `author_verified_reason`: Verification description (such as a company role); use it to tell what a verified account represents.
- `author_avatar_url`: Author avatar URL.
- `video_url`: Video link of the post.
- `view_count`: Read count Weibo shows for the post (post_detail); user_posts list rows do not carry it.
- `original_post_id`: For a repost, the ID of the original post (post_detail / user_posts); pass it as `url` to post_detail to read the original. Absent when the post is not a repost.
- `is_long_text`: Whether the post is a long post (post_detail / user_posts). On user_posts, a long post's text holds only its opening (about 140 characters).
- `duration_sec`: Video length in seconds (video posts on post_detail / user_posts).
- `verified_reason`: Verification description of the account (user_search).
- `next_page_token`: Page token (user_search, user_posts, topic_search, user_post_search): pass it back unchanged as page_token for the next page. Every row of a page carries the same value, which also appears at the top level of the response; absent on the last page.
- `root_comment_id`: The top-level comment the reply sits under (comment_replies), the same as the requested comment_id.
- `reply_to_comment_id`: The reply this reply answers (comment_replies); absent when it answers the top-level comment directly.
- `ip_location`: IP region shown with the reply (comment_replies), such as Guangdong; absent when Weibo shows none.
- `discuss_count`: Number of discussions under the topic (topic_search).
- `read_count`: Number of reads of the topic (topic_search).

### Pricing

Pay per event, charged only when a run delivers data:

- `search`: $0.0161, one event per started block of 20 results.
- `profile`: $0.0040, one event per non-empty request, whatever the row count.
- `comments`: $0.0015, one event per started block of 20 results.
- `trending`: $0.0072, one event per started block of 20 results.
- `post_detail`: $0.0009, one event per non-empty request, whatever the row count.
- `user_posts`: $0.0081, one event per non-empty request, whatever the row count.
- `user_search`: $0.0352, one event per non-empty request, whatever the row count.
- `reposts`: $0.0161, one event per non-empty request, whatever the row count.
- `comment_replies`: $0.0145, one event per non-empty request, whatever the row count.
- `topic_search`: $0.0007, one event per non-empty request, whatever the row count.
- `user_post_search`: $0.0009, one event per non-empty request, whatever the row count.

Empty or failed requests are never charged. There is no actor-start fee and no per-row fee, and platform usage is included in these prices.

### Free trial

The first 3 accepted data requests per Apify account are free across all EveryInfra Actors combined (a lifetime total, not per Actor and not reset). Invalid input does not use a trial; an accepted request that returns no data still does. After that a paid Apify plan is required.

### Notes

- Results reflect what is publicly visible when the run happens; counts can be lower than requested.
- One run makes one request. For more pages, start another run with `page_token` where the action supports it.
- This is an independent Actor. It is not affiliated with, sponsored by, or endorsed by Weibo or its owner; names and trademarks belong to their respective owners.

### Support

Open an issue on this Actor's Issues tab with the run ID.

# Actor input Schema

## `action` (type: `string`):

What to fetch. Each action uses only the fields listed for it below; other fields are ignored when empty.

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

Used by `search` (required), `user_search` (required), `topic_search` (required), `user_post_search` (required). Specifies the search term for public posts in the search action. The trending action does not use a keyword parameter and returns current hot search topics rather than user posts.

## `user_id` (type: `string`):

Used by `profile` (required), `user_posts` (required), `user_post_search` (required). Specifies the target Weibo user via their numeric UID or a profile URL containing /u/numeric_UID for the profile action. Username handles are not supported, and profile metadata does not include a full list of the user's posts.

## `url` (type: `string`):

Used by `comments` (required), `post_detail` (required), `reposts` (required). Specifies the post URL or numeric post ID for the comments action. Format as /detail/NUMERIC_POST_ID or pass the numeric ID directly. Short links that contain letters are not supported.

## `page_token` (type: `string`):

Used by `user_posts`, `user_search`, `topic_search`, `user_post_search`. Page token for `user_posts`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. Pages hold up to 20 of the account's own posts, newest first, and vary in size; each page is one call. Tokens last 24 hours, and the last page has no `next_page_token`.

## `post_type` (type: `string`):

Used by `user_posts`. Which posts `user_posts` returns: `all` (default), `original` for the account's original posts, `video` or `image`.

## `comment_id` (type: `string`):

Used by `comment_replies` (required). The numeric ID of a top-level comment for `comment_replies`, taken from the `id` of a `comments` row.

## `limit` (type: `integer`):

How many results to request for list actions. Defaults and maximums per action: `search` 20 (max 50); `comments` 20 (max 50); `trending` 20 (max 200); `reposts` 20 (max 20); `comment_replies` 20 (max 20). Billing: `search` one event per started block of 20 results; `comments` one event per started block of 20 results; `trending` one event per started block of 20 results; `reposts` one event per non-empty request, whatever the row count; `comment_replies` one event per non-empty request, whatever the row count.

## `params` (type: `object`):

Optional JSON object with the same fields as above, for API and integration use. Flat fields and params must not disagree.

## Actor input object example

```json
{
  "action": "search",
  "keyword": "城市骑行"
}
```

# Actor output Schema

## `records` (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 = {
    "keyword": "城市骑行"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blushing_parachute/everyinfra-weibo-api").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 = { "keyword": "城市骑行" }

# Run the Actor and wait for it to finish
run = client.actor("blushing_parachute/everyinfra-weibo-api").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 '{
  "keyword": "城市骑行"
}' |
apify call blushing_parachute/everyinfra-weibo-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blushing_parachute/everyinfra-weibo-api"
        }
    }
}
```

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/h2ohPthn6dwl6FqLS/builds/Oh497GsMdJq9gKzlH/openapi.json
