# Weibo Real-Time Search API

> Search the latest Weibo posts for a keyword, sorted by time: post text, author, publish time and interaction counts.

Source: https://www.sandbase.ai/apis/weibo/web-v2/realtime-search
API reference: https://www.sandbase.ai/apis/weibo/web-v2/realtime-search/docs

## Facts

- Provider: Weibo
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/weibo/web-v2/realtime-search`
- Price: $0.0015 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, weibo
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/weibo/web-v2/realtime-search` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | yes |  |
| `page` | integer | no |  |

## FAQ

### How do I use the Weibo Real-Time Search API?

Send a POST request to https://api.sandbase.ai/v1/api/weibo/web-v2/realtime-search with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Weibo Real-Time Search API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Weibo Real-Time Search API accept?

Required: query (string). Optional: page (integer). The Parameters table and the Playground on this page list every field.

### What does the Weibo Real-Time Search API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

### Do I need a Weibo developer account or API key?

No. Weibo Real-Time Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Weibo API access separately.

## README

### Weibo Real-Time Search API

Search Weibo for a keyword and get the newest matching posts first.

#### Use cases

- Real-time brand and crisis monitoring.
- Track breaking discussion on a topic.
- Feed social listening dashboards.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/realtime-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "OpenAI"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `query` | string | Yes | Search keyword (required) |
| `page` | integer | No | Page number (default 1) |

#### Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

```json
{
  "parsed_data": {
    "results": [
      {
        "weibo_id": "5351092588119068",
        "content": "OpenAI发布了textGrain文本水印技术，走的是\"非默认、API用户自选开启\"路线——不改动原文内容，只嵌入人…",
        "publish_time": "6分钟前",
        "weibo_type": "original",
        "user_name": "<user>",
        "interaction": {
          "comment_count": 0,
          "like_count": 0,
          "repost_count": 0
        }
      }
    ]
  }
}
```

#### Related APIs

- [Weibo Advanced Search](/model/weibo/web-v2/advanced-search): Search Weibo posts by keyword with filters for time range, post type (hot, original, verified, media) and content type (images, video, links).
- [Weibo Real-Time Hot Search](/model/weibo/web-v2/hot-search): Get the Weibo real-time hot search ranking: trending keywords with rank, heat value and labels such as new or hot.
- [Weibo Hot Search List](/model/weibo/web-v2/hot-search-summary): Get the complete real-time Weibo hot search ranking (top 50): keyword, rank, heat tag and search link for each trending topic.
