Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Weibo Hot Ranking Timeline

API 文件
https://api.sandbase.ai/v1/api/weibo/web-v2/hot-ranking-timeline

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

價格
$0.001美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 3 個選填

Playground

輸入
Ranking type (required)
Count (default 10)
Pagination cursor, pass "0" for first request
Pagination identifier, default is 0
輸出範例
回應outputs · 11.5 KB · 330 行
[
  {
    "data": {
      "max_id": 2,
      "ok": 1,
      "since_id": 0,
      "statuses": [
        {
          "analysis_extra": "",
          "annotations": [
            {
              "photo_sub_type": "0"
            },
            {
              "client_mblogid": "iPhone-4463DA0C-08F5-4203-B41B-477050710F56"
            },
            "… 2 more items in the full response"
          ],
          "attitudes_count": 22251,
          "attitudes_status": 0,
          "buttons": [
            {
              "actionlog": {
                "act_code": "91",
                "act_type": "1",
                "cardid": "102803_-_mbloglist_5334024317046234",
                "ext": "uid:8431518763|mid:5334024317046234|act:follow|time:1787218924|source:8999|recommend_source:|contributor:|hot_request_id:0",
                "fid": "102803_ctg1_1761_-_ctg1_1761",
                "oid": "8431518763",
                "source": "hot",
                "uicode": ""
              },
              "name": "关注",
              "params": {
                "able_recommend": 1,
                "extparams": {
                  "followcardid": "1028030098_5334024317046234"
                },
                "uid": 6738252869
              },
              "pic": "http://u1.sinaimg.cn/upload/2013/07/02/timeline_card_small_button_icon_add.png",
              "type": "follow"
            }
          ],
          "can_edit": false,
          "cardid": "star_1439",
          "comment_manage_info": {
            "approval_comment_type": 0,
            "comment_anon_type": 0,
            "comment_permission_type": -1,
            "comment_sort_type": 0
          },
          "comments_count": 10856,
          "content_auth": 0,
          "created_at": "Thu Aug 20 16:19:21 +0800 2026",
          "favorited": false,
          "followBtnCode": {
            "followcardid": "1028030098_5334024317046234",
            "uid": 6738252869
          },
          "id": 5334024317046234,
          "idstr": "5334024317046234",
          "isAd": false,
          "isLongText": false,
          "isSinglePayAudio": false,
          "is_controlled_by_server": 1,
          "is_paid": false,
          "is_show_bulletin": 2,
          "is_show_mixed": false,
          "mblog_feed_back_menus_format": [],
          "mblog_vip_type": 0,
          "mblogid": "Reh7Vtz2W",
          "mblogtype": 0,
          "md_render_mark": null,
          "mid": "5334024317046234",
          "mixed_count": 0,
          "mlevel": 0,
          "number_display_strategy": {
            "apply_scenario_flag": 51,
            "display_text": "100万+",
            "display_text_min_number": 1000000
          },
          "pic_bg_new": "http://vip.storage.weibo.com/feed_cover/star_1439_mobile_new.png?version=2026071001",
          "pic_ids": [
            "007m11nTgy1igadcd8gzzj345h2sdu0z"
          ],
          "pic_infos": {
            "007m11nTgy1igadcd8gzzj345h2sdu0z": {
              "bmiddle": {
                "cut_type": 1,
                "height": 241,
                "type": null,
                "url": "https://wx1.sinaimg.cn/wap360/007m11nTgy1igadcd8gzzj345h2sdu0z.jpg",
                "width": 360
              },
              "large": {
                "cut_type": 1,
                "height": 960,
                "type": null,
                "url": "https://wx1.sinaimg.cn/orj960/007m11nTgy1igadcd8gzzj345h2sdu0z.jpg",
                "width": 1429
              },
              "largecover": {
                "cut_type": 1,
                "height": 960,
                "type": null,
                "url": "https://wx1.sinaimg.cn/cmw960/007m11nTgy1igadcd8gzzj345h2sdu0z.jpg",
                "width": 1429
              },
              "largest": {
                "cut_type": 1,
                "height": 1375,
                "type": null,
                "url": "https://wx1.sinaimg.cn/large/007m11nTgy1igadcd8gzzj345h2sdu0z.jpg",
                "width": 2048
              },
              "mw2000": {
                "cut_type": 1,
                "height": 1342,
                "type": null,
                "url": "https://wx1.sinaimg.cn/mw2000/007m11nTgy1igadcd8gzzj345h2sdu0z.jpg",
                "width": 2000
              },
              "object_id": "1042018:5c11740744d4d507accde38f7116d82c",
              "original": {
                "cut_type": 1,
                "height": 1080,
                "type": null,
                "url": "https://wx1.sinaimg.cn/orj1080/007m11nTgy1igadcd8gzzj345h2sdu0z.jpg",
                "width": 1608
              },
              "photo_tag": 0,
              "pic_id": "007m11nTgy1igadcd8gzzj345h2sdu0z",
              "pic_status": 1,
              "thumbnail": {
                "cut_type": 1,
                "height": 120,
                "type": null,
                "url": "https://wx1.sinaimg.cn/wap180/007m11nTgy1igadcd8gzzj345h2sdu0z.jpg",
                "width": 180
              },
              "type": "pic"
            }
          },
          "pic_num": 1,
          "pictureViewerSign": false,
          "rcList": [],
          "readtimetype": "mblog",
          "region_name": "发布于 湖南",
          "reposts_count": 10683,
          "…": "12 more fields in the full response"
        },
        {
          "analysis_extra": "",
          "annotations": [
            {
              "photo_sub_type": "0,0,0,0,0,0,0,0,0,0,0,0"
            },
            {
              "client_mblogid": "iPhone-6EB4F8F1-0C93-4BD3-B772-DDE872C4C8BD"
            },
            "… 2 more items in the full response"
          ],
          "attitudes_count": 23719,
          "attitudes_status": 0,
          "buttons": [
            {
              "actionlog": {
                "act_code": "91",
                "act_type": "1",
                "cardid": "102803_-_mbloglist_5334022269965080",
                "ext": "uid:8431518763|mid:5334022269965080|act:follow|time:1787218924|source:8999|recommend_source:|contributor:|hot_request_id:0",
                "fid": "102803_ctg1_1761_-_ctg1_1761",
                "oid": "8431518763",
                "source": "hot",
                "uicode": ""
              },
              "name": "关注",
              "params": {
                "able_recommend": 1,
                "extparams": {
                  "followcardid": "1028030098_5334022269965080"
                },
                "uid": 1662262590
              },
              "pic": "http://u1.sinaimg.cn/upload/2013/07/02/timeline_card_small_button_icon_add.png",
              "type": "follow"
            }
          ],
          "can_edit": false,
          "comment_manage_info": {
            "approval_comment_type": 0,
            "comment_anon_type": 0,
            "comment_permission_type": -1,
            "comment_sort_type": 0
          },
          "comments_count": 6084,
          "content_auth": 0,
          "created_at": "Thu Aug 20 16:11:13 +0800 2026",
          "favorited": false,
          "followBtnCode": {
            "followcardid": "1028030098_5334022269965080",
            "uid": 1662262590
          },
          "id": 5334022269965080,
          "idstr": "5334022269965080",
          "isAd": false,
          "isLongText": true,
          "isSinglePayAudio": false,
          "is_controlled_by_server": 1,
          "is_paid": false,
          "is_show_bulletin": 2,
          "is_show_mixed": false,
          "mblog_feed_back_menus_format": [],
          "mblog_vip_type": 0,
          "mblogid": "Reh4CFOn6",
          "mblogtype": 0,
          "md_render_mark": null,
          "mid": "5334022269965080",
          "mix_media_info": {
            "items": [
              {
                "actionlog": {
                  "act_code": 799,
                  "act_type": 1,
                  "ext": "uid:8431518763|mid:5334022269965080|objectid:1034%3A5334021992022043|from:1|object_duration:3.158|miduid:1662262590|rootuid:1662262590|rootmid:5334022269965080|authorid:1662262590|video_orientation:vertical|third_vid:|is_album:0|is_contribution:0|video_tags:|isfan:0|ua:Mozilla/5.0 (Windows NT 10.0%3…",
                  "fid": "",
                  "lcardid": "",
                  "mid": "5334022269965080",
                  "oid": "1034:5334021992022043",
                  "source": "video",
                  "uuid": 5334022007292147
                },
                "data": {
                  "act_status": 1,
                  "actionlog": "…",
                  "author_id": "1662262590",
                  "authorid": "1662262590",
                  "content1": "张予曦的微博视频",
                  "content2": "皮影织女限时返场🧚‍♀️#夏日Highlight时刻#",
                  "media_info": "…",
                  "object_id": "1034:5334021992022043",
                  "object_type": "video",
                  "oid": "1662262590",
                  "page_id": "2304445334021992022043",
                  "page_pic": "https://wx3.sinaimg.cn/orj480/63141d3ely1igad30ze6ej20u01hc791.jpg",
                  "page_title": "张予曦的微博视频",
                  "page_url": "sinaweibo://infopage?containerid=2304445334021992022043&containerid=2304445334021992022043&url_type=39&object_type=video&pos=2",
                  "pic_info": "…",
                  "short_url": "http://t.cn/AXpUjpFP",
                  "type": "11",
                  "type_icon": "",
                  "warn": ""
                },
                "id": "1034:5334021992022043",
                "scheme": "",
                "type": "video"
              },
              {
                "actionlog": [],
                "data": {
                  "bmiddle": "…",
                  "focus_point": "…",
                  "large": "…",
                  "largecover": "…",
                  "largest": "…",
                  "mw2000": "…",
                  "object_id": "1042018:936450eaf31d1ba5c7ed276b1c4ab389",
                  "original": "…",
                  "photo_tag": 0,
                  "pic_id": "63141d3ely1igac6fcyxvj25wn3xrhdw",
                  "pic_status": 1,
                  "thumbnail": "…",
                  "type": "pic"
                },
                "id": "63141d3ely1igac6fcyxvj25wn3xrhdw",
                "scheme": "",
                "type": "pic"
              },
              "… 11 more items in the full response"
            ]
          },
          "mixed_count": 0,
          "mlevel": 0,
          "number_display_strategy": {
            "apply_scenario_flag": 51,
            "display_text": "100万+",
            "display_text_min_number": 1000000
          },
          "pic_focus_point": [
            {
              "focus_point": {
                "height": 0.17874396,
                "left": 0.3710145,
                "top": 0.16714975,
                "width": 0.17681159
              },
              "pic_id": "63141d3ely1igac6x6uaej23xr5wne86"
            },
            {

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Weibo Hot Ranking Timeline API

Returns a page of popular Weibo posts from a hot ranking list. It needs a ranking_type value such as hour, and it accepts count, max_id and since_id for paging.

Use cases

  • Pull the posts that currently lead the hourly Weibo hot ranking into a trend dashboard.
  • Compare like and comment counts across ranked posts to find the ones with the most engagement.
  • Collect the super topics attached to hot posts to see which fan communities drive current traffic.
  • Download the image URLs of ranked posts for visual trend or media monitoring.

Request

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"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
ranking_typestringYesRanking type (required)
countintegerNoCount (default 10)
max_idstringNoPagination cursor, pass "0" for first request
since_idstringNoPagination identifier, default is 0

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "max_id": 2,
  "ok": 1,
  "since_id": 0,
  "statuses": [
    {
      "analysis_extra": "",
      "annotations": [
        {
          "photo_sub_type": "0,0,0,0,0,0,0,0,0,0,0"
        }
      ],
      "attitudes_count": 73749,
      "attitudes_status": 0,
      "buttons": [
        {
          "actionlog": {
            "act_code": "91",
            "act_type": "1",
            "cardid": "102803_-_mbloglist_5361174142779827",
            "ext": "uid:1802369094|mid:5361174142779827|act:follow|time:1793691984|source:8999|recom…",
            "fid": "102803_ctg1_1761_-_ctg1_1761",
            "oid": "1802369094",
            "source": "hot",
            "uicode": ""
          },
          "name": "关注",
          "params": {
            "able_recommend": 1,
            "extparams": {
              "followcardid": "1028030098_5361174142779827"
            },
            "uid": 6643123988
          },
          "pic": "http://u1.sinaimg.cn/upload/2013/07/02/timeline_card_small_button_icon_add.png",
          "type": "follow"
        }
      ],
      "can_edit": false,
      "comment_manage_info": {
        "approval_comment_type": 0,
        "comment_anon_type": 0,
        "comment_permission_type": -1,
        "comment_sort_type": 0
      },
      "comments_count": 11539,
      "common_struct": [
        {
          "actionlog": {
            "act_code": "300",
            "cardid": "",
            "ext": "common_struct:topic|containerid:100808|uid:1802369094|mid:5361174142779827|analy…",
            "fid": null,
            "lfid": null,
            "luicode": null,
            "mid": 5361174142779827,
            "oid": "1022:100808f57b3faeb25f86b43a8cc58f02286f40"
          },
          "btn_show_type": "1",
          "buttons": [
            {
              "actionlog": {
                "act_code": 577,
                "cardid": "",
                "ext": "common_struct:topic|containerid:100808|uid:1802369094|mid:5361174142779827|analy…",
                "fid": null,
                "lfid": null,
                "luicode": null,
                "mid": 5361174142779827,
                "oid": "1022:100808f57b3faeb25f86b43a8cc58f02286f40"
              },
              "name": "关注",
              "params": {
                "scheme": "${scheme}",
                "type": "page",
                "uid": "1022:100808f57b3faeb25f86b43a8cc58f02286f40"
              },
              "pic": "https://n.sinaimg.cn/photo/ab36dac5/20170616/follow_hollow.png",
              "type": "follow"
            }
          ],
          "desc": "5.6亿帖子 1537万小飞侠",
          "hidden": 1,
          "img": "http://wx3.sinaimg.cn/thumbnail/e6e53908ly8iiaw440dk5j20u00u0q78.jpg",
          "name": "【超话】肖战",
          "page_id": "100808f57b3faeb25f86b43a8cc58f02286f40"
        }
      ],
      "content_auth": 0,
      "created_at": "Tue Nov 03 14:23:04 +0800 2026",
      "favorited": false
    }
  ],
  "total_number": 100
}

Response fields

FieldMeaning
statuses[]List of ranked posts. Each item is one Weibo post.
statuses[].mblogid / statuses[].mid / statuses[].idIdentifiers of the post. mblogid is a short alphanumeric code, while mid and id hold the same long numeric ID as a string and a number.
statuses[].created_atPublish time of the post as a text date with a +0800 offset, for example Tue Nov 03 14:23:04 +0800 2026.
statuses[].attitudes_count / statuses[].comments_countNumber of likes and number of comments on the post.
statuses[].number_display_strategy.display_textShort label Weibo shows for large counts, for example 100万+.
statuses[].isLongTexttrue when the post has long text content.
statuses[].pic_ids[]IDs of the images in the post. Use each ID as a key in statuses[].pic_infos.
statuses[].pic_infos.*.original.url / statuses[].pic_infos.*.large.urlImage URLs at different sizes, with width and height next to each URL.
statuses[].common_struct[].name / statuses[].common_struct[].descName and short description of the topic or super topic linked to the post, for example 【超话】肖战.
max_id / since_idPaging values returned with the list. Use them in the next request.

Notes

  • Pass max_id as "0" on the first request. Send the max_id value from the response to get the next page.
  • count sets how many posts to return per request. The default is 10.
  • Use the mblogid or id of a post with Weibo Post Detail or Weibo Post Comments to get more about a single post.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 APIs

所有 APIs
API價格回應
Weibo每次呼叫 $0.001JSON
Weibo每次呼叫 $0.001JSON
Weibo每次呼叫 $0.001JSON
Weibo每次呼叫 $0.001JSON
Weibo每次呼叫 $0.001JSON
Weibo每次呼叫 $0.001JSON

指南:Best Weibo API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Weibo Hot Ranking Timeline API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/weibo/web-v2/hot-ranking-timeline。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Weibo Hot Ranking Timeline API 的費用是多少?

每次 $0.001,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Weibo Hot Ranking Timeline API 接受哪些參數?

必要:ranking_type (string)。 選填:count (integer), max_id (string) 和 since_id (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Weibo Hot Ranking Timeline API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Weibo 開發者帳號或 API 金鑰嗎?

不需要。Weibo Hot Ranking Timeline 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Weibo API 存取權。