Weibo Real-Time Hot Search
https://api.sandbase.ai/v1/api/weibo/web-v2/hot-searchGet the Weibo real-time hot search ranking: trending keywords with rank, heat value and labels such as new or hot.
- 價格
- $0.001美元/次呼叫
- 方法
- POST
- 回應
- JSON
- 參數
- 0 個必填 · 0 個選填
Playground
[
{
"data": {
"hotgov": {
"flag": 2,
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"icon_desc": "热",
"icon_desc_color": "#ff9406",
"icon_height": 24,
"icon_width": 24,
"is_gov": 1,
"is_hot": 1,
"mid": "5329248484331851",
"name": "#夯实基础开新局#",
"note": "#夯实基础开新局#",
"pos": 1,
"small_icon_desc": "热",
"small_icon_desc_color": "#ff9406",
"stime": 1786088961,
"topic_flag": 1,
"url": "http://weibo.com/2656274875/RcgSYiaUz",
"word": "#夯实基础开新局#"
},
"hotgovs": [
{
"flag": 2,
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"icon_desc": "热",
"icon_desc_color": "#ff9406",
"icon_height": 24,
"icon_width": 24,
"name": "#夯实基础开新局#",
"pos": 1,
"small_icon_desc": "热",
"small_icon_desc_color": "#ff9406",
"topic_flag": 1,
"word": "#夯实基础开新局#"
}
],
"realtime": [
{
"emoticon": "",
"flag": 1,
"icon": "https://simg.s.weibo.com/moter/flags/1_0.png",
"icon_desc": "新",
"icon_desc_color": "#ff3852",
"icon_height": 24,
"icon_width": 24,
"label_name": "新",
"note": "南航 西梅汁",
"num": 3563978,
"rank": 0,
"realpos": 1,
"small_icon_desc": "新",
"small_icon_desc_color": "#ff3852",
"topic_flag": 0,
"word": "南航 西梅汁",
"word_scheme": "南航 西梅汁"
},
{
"emoticon": "",
"flag": 1,
"flag_desc": "剧集",
"icon": "https://simg.s.weibo.com/moter/flags/1_0.png",
"icon_desc": "新",
"icon_desc_color": "#ff3852",
"icon_height": 24,
"icon_width": 24,
"label_name": "新",
"note": "曝念相思停拍换男主",
"num": 1463648,
"rank": 1,
"realpos": 2,
"small_icon_desc": "新",
"small_icon_desc_color": "#ff3852",
"topic_flag": 1,
"word": "曝念相思停拍换男主",
"word_scheme": "#曝念相思停拍换男主#"
},
{
"emoticon": "",
"flag": 1,
"icon": "https://simg.s.weibo.com/moter/flags/1_0.png",
"icon_desc": "新",
"icon_desc_color": "#ff3852",
"icon_height": 24,
"icon_width": 24,
"label_name": "新",
"note": "前7个月货物贸易进出口超30万亿元",
"num": 913461,
"rank": 2,
"realpos": 3,
"small_icon_desc": "新",
"small_icon_desc_color": "#ff3852",
"topic_flag": 1,
"word": "前7个月货物贸易进出口超30万亿元",
"word_scheme": "#前7个月货物贸易进出口超30万亿元#"
},
"… 49 more items in the full response"
]
}
}
]範例
選擇一個範例,將其輸入與結果載入 playground。
API README
Weibo Real-Time Hot Search API
Returns a Weibo board snapshot. Ordinary, promotional and pinned entries can have different fields; preserve missing values and supplied positions separately. The request takes no input parameters, so you send an empty JSON object.
Use cases
- Inspect and store one returned board snapshot with its own observation time; no refresh timing or repeated monitoring was verified.
- Review supplied topic words for a selected research question; this task sends no alerts and does not assume every row has word.
- Display supplied heat and label fields while separating advertisements and pinned entries from ordinary positions.
- Preserve new-label text as a reported label, not proof of when a story began.
Request
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"hotgov": {
"flag": 2,
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"icon_desc": "热",
"icon_desc_color": "#ff9406",
"icon_height": 24,
"icon_width": 24,
"is_gov": 1,
"is_hot": 1,
"mid": "5361069742886874",
"name": "#乌镇网事#",
"note": "#乌镇网事#",
"pos": 1
},
"hotgovs": [
{
"flag": 2,
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"icon_desc": "热",
"icon_desc_color": "#ff9406",
"icon_height": 24,
"icon_width": 24,
"name": "#乌镇网事#",
"pos": 1,
"small_icon_desc": "热",
"small_icon_desc_color": "#ff9406",
"topic_flag": 1,
"word": "#乌镇网事#"
}
],
"realtime": [
{
"emoticon": "",
"flag": 2,
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"icon_desc": "热",
"icon_desc_color": "#ff9406",
"icon_height": 24,
"icon_width": 24,
"label_name": "热",
"note": "赴港看演唱会女孩低保已被取消",
"num": 2173490,
"rank": 0,
"realpos": 1
}
]
}
Response fields
| Field | Meaning |
|---|---|
realtime[].word | The hot search keyword as plain text. |
realtime[].word_scheme | Reported topic-tag representation when present. An independently selected search query is a separate task; do not auto-chain it. |
realtime[].num | Provider heat value with unverified formula; not search volume, views or measured growth. |
realtime[].rank | Supplied rank; promotional rows can duplicate it. Do not substitute array position for organic rank. |
realtime[].realpos | Supplied ordinary position when present; advertisement rows can omit it. |
realtime[].label_name | Text label for the topic, such as 热 (hot) or 新 (new). |
realtime[].icon_desc / realtime[].icon_desc_color | The text and color code of the label badge shown beside the topic. |
realtime[].icon | URL of the label badge image. |
hotgov.word / hotgov.url | The pinned topic shown at the top of the board, with a link to the related Weibo post. hotgov.name holds the topic name. |
hotgovs[].word / hotgovs[].pos | Pinned topics in a list, with the position of each one. |
Notes
- The request has no parameters. Send
{}as the body. - realtime can contain ordinary and promotional entries. Keep hotgov/hotgovs separate and avoid double-counting their repeated pinned representation.
- For a list with a search link for each topic, call Weibo Hot Search List.
- To read posts about a trending keyword, pass it to Weibo Real-Time Search or Weibo Advanced Search.
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Inspect one board snapshot without choosing a topic automatically
Send an empty object. This web-v2/hot-search schema declares no keyword, limit, page or period input. Do not substitute an App endpoint, hot-search-summary or an advanced search contract.
Read the direct business object's realtime array. A valid empty array differs from an absent or malformed list. The August 20 full saved reference has 52 rows: 50 ordinary rows with realpos 1–50 and two explicit is_ad: 1 rows. Promotional rows duplicate rank 2 and 5 and omit realpos. Array position, rank and realpos are different fields; this is not a 52-position organic ranking or a guaranteed response length.
Preserve supplied advertisement flags; an absent flag is not a verified false value. The saved ordinary first entry has num 3563978, rank 0 and realpos 1. num is a provider heat value, not independently verified searches, post counts, readers or views. One snapshot cannot establish growth, future demand or representative sentiment. A new label is a display label, not an exact publication time.
The sample's hotgov and hotgovs repeat a pinned topic. Keep those representations separate from realtime and avoid double-counting. Provider stime, saved-reference creation time and a local observation time are different clocks. Do not assign one timestamp to every topic.
The full reference has word_scheme on 50 ordinary rows; the two advertisements omit it. The README's different one-row excerpt omits word and word_scheme too. Preserve missing fields rather than forcing a universal word shape or silently using note as a selected query. A name in a board is not an instruction to investigate an account.
If you independently choose a topic to inspect, use one keyword search as a separate task. No automatic board-to-search chain or refresh cadence was tested.
Give your agent one snapshot task
Give your agent the setup Skill, Markdown quickstart, selected endpoint and requested output. Keep SANDBASE_API_KEY locally and use Bearer authentication with POST /v1/api/. Choose a board snapshot or an explicit query. Do not choose the first topic automatically, fan out searches, fetch profiles/media or start a polling loop.
Require valid HTTP/JSON, completed SandBase status and an object exactly at outputs[0].data. The board has realtime directly; search has parsed_data. Neither reference declares a business code or ok flag. Validate the selected shape instead of borrowing another Weibo endpoint's status rule or defaulting malformed data to an empty success. Preserve unknown optional values separately from zero.
November 8 inspection lists $0.001 per selected route, both eligible for 100 daily calls shared across eligible APIs within the organization, reset at 00:00 UTC. This is eligibility, not remaining allowance or measured charge. An independently selected pair lists at $0.002 before quota effects; no pair was executed here. No new business, paid, continuation, polling or media calls were made. The Weibo Python guide links to the earlier monitoring design; use this page's current boundaries for the first request.
開始建置
送出您的第一個請求
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. 驗證
請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
3. 參數
這個 API 尚未發布參數 Schema。
4. 回應
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
[
{
"data": {
"hotgov": {
"flag": 2,
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"icon_desc": "热",
"icon_desc_color": "#ff9406",
"icon_height": 24,
"icon_width": 24,
"is_gov": 1,
"is_hot": 1,
"mid": "5329248484331851",
"name": "#夯实基础开新局#",
"note": "#夯实基础开新局#",
"pos": 1,
"small_icon_desc": "热",
"small_icon_desc_color": "#ff9406",
"stime": 1786088961,
"topic_flag": 1,
"url": "http://weibo.com/2656274875/RcgSYiaUz",
"word": "#夯实基础开新局#"
},
"hotgovs": [
{
"flag": 2,
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"icon_desc": "热",
"icon_desc_color": "#ff9406",
"icon_height": 24,
"icon_width": 24,
"name": "#夯实基础开新局#",
"pos": 1,
"small_icon_desc": "热",
"small_icon_desc_color": "#ff9406",
"topic_flag": 1,
"word": "#夯实基础开新局#"
}
],
"realtime": [
{
"emoticon": "",
"flag": 1,
"icon": "https://simg.s.weibo.com/moter/flags/1_0.png",
"icon_desc": "新",
"icon_desc_color": "#ff3852",
"icon_height": 24,
"icon_width": 24,
"label_name": "新",
"note": "南航 西梅汁",
"num": 3563978,
"rank": 0,
"realpos": 1,
"small_icon_desc": "新",
"small_icon_desc_color": "#ff3852",
"topic_flag": 0,
"word": "南航 西梅汁",
"word_scheme": "南航 西梅汁"
},
{
"emoticon": "",
"flag": 1,
"flag_desc": "剧集",
"icon": "https://simg.s.weibo.com/moter/flags/1_0.png",
"icon_desc": "新",
"icon_desc_color": "#ff3852",
"icon_height": 24,
"icon_width": 24,
"label_name": "新",
"note": "曝念相思停拍换男主",
"num": 1463648,
"rank": 1,
"realpos": 2,
"small_icon_desc": "新",
"small_icon_desc_color": "#ff3852",
"topic_flag": 1,
"word": "曝念相思停拍换男主",
"word_scheme": "#曝念相思停拍换男主#"
},
{
"emoticon": "",
"flag": 1,
"icon": "https://simg.s.weibo.com/moter/flags/1_0.png",
"icon_desc": "新",
"icon_desc_color": "#ff3852",
"icon_height": 24,
"icon_width": 24,
"label_name": "新",
"note": "前7个月货物贸易进出口超30万亿元",
"num": 913461,
"rank": 2,
"realpos": 3,
"small_icon_desc": "新",
"small_icon_desc_color": "#ff3852",
"topic_flag": 1,
"word": "前7个月货物贸易进出口超30万亿元",
"word_scheme": "#前7个月货物贸易进出口超30万亿元#"
},
"… 49 more items in the full response"
]
}
}
]探索更多
相關 APIs
| API | 價格 | 回應 |
|---|---|---|
Weibo | 每次呼叫 $0.001 | JSON |
Weibo | 每次呼叫 $0.001 | JSON |
Weibo | 每次呼叫 $0.001 | JSON |
Weibo | 每次呼叫 $0.001 | JSON |
Weibo | 每次呼叫 $0.001 | JSON |
Weibo | 每次呼叫 $0.001 | JSON |
問題
常見問題
我要如何使用 Weibo Real-Time Hot Search API?
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
Weibo Real-Time Hot Search API 的費用是多少?
每次 $0.001。每個組織每個 UTC 日可免費呼叫 100 次,並可在包含此 API 在內的所有符合資格之 SandBase APIs 間共用;超過後,每次呼叫都會從您的 SandBase 餘額中以此價格計費。沒有訂閱方案。
Weibo Real-Time Hot Search API 接受哪些參數?
Weibo Real-Time Hot Search 不接受任何輸入參數;請送出空的 JSON 主體。
Weibo Real-Time Hot Search API 會回傳什麼?
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
我需要 Weibo 開發者帳號或 API 金鑰嗎?
不需要。Weibo Real-Time Hot Search 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Weibo API 存取權。
是否所有 52 筆已保存的看板列都是自然排序?
不是。完整保存的參考資料有 50 筆一般列,以及兩筆 is_ad: 1 列,這兩筆有重複的 rank 值且沒有 realpos。請分別保留提供的欄位與置頂主題表示;陣列順序或回應長度都不能保證是自然排名。
num 是在量測搜尋、瀏覽,還是討論成長嗎?
它是供應商的熱度欄位,計算公式在此未經驗證。單一快照無法證明搜尋量、觸及、情緒、成長或未來需求。顯示標籤與供應商時間戳並不是精確的主題發布時間。
檢視看板時,會自動搜尋第一個主題嗎?
不會。看板只接受空物件,且任務會在一個快照後結束。查詢是刻意的獨立選擇。缺少的 word 欄位不會被靜默替換,也不會接著進行搜尋擴散、輪詢或媒體擷取。
