# Weibo Hot Ranking Timeline API

> Returns popular posts from Weibo hot rankings based on a specified ranking type. Supports pagination using cursor and identifier parameters.

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

## Facts

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

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `ranking_type` | string | yes |  |
| `count` | integer | no |  |
| `max_id` | string | no |  |
| `since_id` | string | no |  |

## FAQ

### How do I use the Weibo Hot Ranking Timeline API?

Send a POST request to https://api.sandbase.ai/v1/api/weibo/web-v2/hot-ranking-timeline 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 Hot Ranking Timeline 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 Hot Ranking Timeline API accept?

Required: ranking_type (string). Optional: count (integer), max_id (string) and since_id (string). The Parameters table and the Playground on this page list every field.

### What does the Weibo Hot Ranking Timeline 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 Hot Ranking Timeline 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 Hot Ranking Timeline API

This endpoint retrieves trending Weibo posts for a specified `ranking_type`. Use `count`, `max_id`, and `since_id` to page through ranked timeline entries.

#### Use cases

- Monitoring trending topics and top-ranked posts on Weibo in real time.
- Analyzing engagement metrics such as likes and comment volumes on viral content.
- Tracking popular discussions within Weibo super topics.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/hot-ranking-timeline" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ranking_type": "hour"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `ranking_type` | string | Yes | Ranking type (required) |
| `count` | integer | No | Count (default 10) |
| `max_id` | string | No | Pagination cursor, pass "0" for first request |
| `since_id` | string | No | Pagination identifier, default is 0 |

#### Example response

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

```json
{
  "statuses": [
    {
      "attitudes_count": 149055,
      "attitudes_status": 0,
      "comments_count": 28209,
      "content_auth": 0,
      "id": 5351100492286270,
      "isLongText": false,
      "mblog_vip_type": 0,
      "mblogtype": 0,
      "mixed_count": 0,
      "pic_num": 1,
      "comment_manage_info": {
        "approval_comment_type": 0,
        "comment_anon_type": 0,
        "comment_permission_type": -1,
        "comment_sort_type": 0
      },
      "number_display_strategy": {
        "display_text": "100万+",
        "display_text_min_number": 1000000
      },
      "title_source": {
        "name": "黄星Eliot超话",
        "url": "https://huati.weibo.com/k/%E9%BB%84%E6%98%9FEliot"
      },
      "user": {
        "following": false,
        "id": 2211239502,
        "mbrank": 2,
        "mbtype": 12,
        "profile_image_url": "https://tvax1.sinaimg.cn/crop.0.0.1080.1080.50/83ccd64ely8hxgoqcpkn1j20u00u0q5f.…",
        "profile_url": "/u/2211239502"
      }
    }
  ]
}
```

#### Notes

- Specify the category or timeframe using `ranking_type`.
- Pass "0" to `max_id` on the initial call to start pagination from the beginning.
- Control the number of returned posts per request with `count`, which defaults to 10.

#### 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 AI Search](/model/weibo/web-v2/ai-search): Returns multimodal search results and relevance scores from Weibo intelligent search for a specified keyword or topic query.
