# Weibo Advanced Search API

> Search Weibo posts by keyword with filters for time range, post type (hot, original, verified, media) and content type (images, video, links). Returns post text, author, time and engagement.

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

## Facts

- Provider: Weibo
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/weibo/web-v2/advanced-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/advanced-search` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `q` | string | yes |  |
| `include_type` | any | no |  |
| `page` | integer | no |  |
| `search_type` | any | no |  |
| `timescope` | any | no |  |

## FAQ

### How do I use the Weibo Advanced Search API?

Send a POST request to https://api.sandbase.ai/v1/api/weibo/web-v2/advanced-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 Advanced 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 Advanced Search API accept?

Required: q (string). Optional: include_type (any), page (integer), search_type (any) and timescope (any). The Parameters table and the Playground on this page list every field.

### What does the Weibo Advanced 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 Advanced 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 Advanced Search API

Search Weibo for a keyword and narrow the results by time range, post type and content type. Each result includes the post text, author, publish time, link and interaction counts.

#### Use cases

- Monitor brand or product mentions on Weibo.
- Collect posts about an event within a custom date range.
- Find original or verified-account posts on a topic.

#### Request

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

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `q` | string | Yes | Search keyword (required) |
| `page` | integer | No | Page number (default 1) |
| `timescope` | string | No | Time scope (format: custom:start_date:end_date, e.g. custom:2025-09-01-0:2025-09-08-23) |
| `search_type` | string | No | Search type (all/hot/original/verified/media/viewpoint) |
| `include_type` | string | No | Include type (all/pic/video/music/link) |

#### Example response

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

```json
{
  "parsed_data": {
    "result_count": 19,
    "results": [
      {
        "weibo_id": "5350554563773695",
        "content": "OpenAI Codex 承诺连续 28 天：每天上新，否则重置额度OpenAI 给 Codex 用户立了个 28 天的规矩：每天要么上线一项多数人用得上的明…",
        "publish_time": "10月05日 07:04",
        "user_nick": "<user>",
        "post_url": "//weibo.com/1727858283/Rld9CfPI3",
        "interaction": {
          "comment_count": 0,
          "like_count": 0,
          "repost_count": 0
        }
      }
    ]
  }
}
```

#### Notes

- `timescope` format: `custom:YYYY-MM-DD-H:YYYY-MM-DD-H`, e.g. `custom:2025-09-01-0:2025-09-08-23`.
- Use `page` to paginate.

#### Related APIs

- [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.
- [Weibo Post Detail](/model/weibo/web-v2/post-detail): Get the full data of a single Weibo post by its ID: text (including long posts), author, publish time, location and repost, comment and like counts.
- [Weibo AI Search Content Extension](/model/weibo/web-v2/ai-related-search): Get content extensions related to keyword (related questions, blogger recommendations, reference posts).
