# Weibo AI Search API

> Returns multimodal search results and relevance scores from Weibo intelligent search for a specified keyword or topic query.

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

## Facts

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

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | yes |  |

## FAQ

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

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

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

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

Use this endpoint to query Weibo AI intelligent search results by supplying a search keyword via `query`.

#### Use cases

- Search Weibo content and topics using AI-assisted matching.
- Retrieve multimodal card results with relevance and hit scores.
- Monitor user engagement metrics for specific topic queries.

#### Request

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

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `query` | string | Yes | Search keyword (required, recommend using topic format #TopicName#) |

#### Example response

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

```json
{
  "card_multimodal": {
    "data": [
      {
        "click_num": 0,
        "click_rate": 0,
        "doc_score": 4467,
        "hit_score_final": 82.729683,
        "hit_score_new": 99.902344,
        "type": "p",
        "user_name": "<user>",
        "vtype": 0
      }
    ]
  }
}
```

#### Notes

- The `query` parameter accepts keywords and recommends using the topic format such as #TopicName#.

#### 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 AI Related Search Content](/model/weibo/web-v2/ai-related-search): Returns AI-generated content extensions for a keyword, including related questions, recommended bloggers, and reference posts.
- [Weibo All Groups Information](/model/weibo/web-v2/all-groups): Retrieves complete group information on the Weibo platform.
