# Weibo Keyword Search API

> Search Weibo posts by keyword within a required day-and-hour time range, with page-based pagination, hot or time sorting, and filters for pictures, video, music, or links.

Source: https://www.sandbase.ai/model/weibo/search-all
API reference: https://www.sandbase.ai/model/weibo/search-all/docs

## Facts

- Provider: Weibo
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/weibo/search-all`
- Price: $0.02 per call
- Capabilities: api, weibo, social media
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

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

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `q` | string | yes |  |
| `startDay` | string | yes |  |
| `startHour` | integer | yes |  |
| `endDay` | string | yes |  |
| `endHour` | integer | yes |  |
| `hotSort` | boolean | no |  |
| `contains` | string | no | ALL, PICTURE, VIDEO, MUSIC, LINK |
| `page` | integer | no |  |

## FAQ

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

Send a POST request to https://api.sandbase.ai/v1/api/weibo/search-all 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 Keyword Search API cost?

$0.02 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Weibo Keyword Search API accept?

Required: q (string), startDay (string), startHour (integer), endDay (string) and endHour (integer). Optional: hotSort (boolean), contains (one of ALL, PICTURE, VIDEO, MUSIC, LINK) and page (integer). The Parameters table and the Playground on this page list every field.

### What does the Weibo Keyword Search API return?

A JSON response returned in the same HTTP request (synchronous).

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

No. Weibo Keyword 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 Keyword Search API

Search Weibo posts by keyword within a required day-and-hour time range, with page-based pagination, hot or time sorting, and filters for pictures, video, music, or links.

The response is the platform's original data structure.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "weibo/search-all", "q": "新闻", "startDay": "2026-10-22", "startHour": "0", "endDay": "2026-10-29", "endHour": "23"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `q` | string | Yes | Search Keywords. |
| `startDay` | string | Yes | Start Day (yyyy-MM-dd). |
| `startHour` | integer | Yes | Start Hour (0-23). |
| `endDay` | string | Yes | End Day (yyyy-MM-dd). |
| `endHour` | integer | Yes | End Hour (0-23). |
| `hotSort` | boolean | No | Hot sort, true for hot sort, false for time sort. Default is false. |
| `contains` | string | No | Contains filter for the result set. |
| `page` | integer | No | Page number, starting with 1. |

#### Pricing

Flat price per call. Failed calls and empty results are not charged.
