Weibo Hot Search Index
https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search-indexReturns the top 10 hot search ranking items currently trending on Weibo. It delivers active search topics without requiring any input parameters.
- ราคา
- $0.001USD / คำขอ
- Method
- POST
- การตอบกลับ
- JSON
- พารามิเตอร์
- 0 จำเป็น · 0 ไม่บังคับ
Playground
[
{
"data": {
"hotgovs": [
{
"emoticon_url": "",
"flag": 2,
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"icon_desc": "热",
"icon_desc_color": "#ff9406",
"icon_height": 24,
"icon_info": "<i class=\"icon-txt icon-txt-len-1\" style=\"background-color:#ff9406;\">热</i>",
"icon_width": 24,
"name": "英魂不朽山河永念",
"pos": 1,
"search_url": "/weibo?q=%23%E8%8B%B1%E9%AD%82%E4%B8%8D%E6%9C%BD%E5%B1%B1%E6%B2%B3%E6%B0%B8%E5%BF%B5%23&Refer=new_time",
"show_idx": 1,
"small_icon_desc": "热",
"small_icon_desc_color": "#ff9406",
"small_icon_info": "<i class=\"icon-txt\" style=\"background-color:#ff9406;\">热</i>",
"text_icon_content": "",
"topic_flag": 1,
"view_word": "英魂不朽山河永念",
"word": "英魂不朽山河永念"
}
],
"list": [
{
"description": "6261229",
"emoticon": "",
"emoticon_url": "",
"flag": 1,
"icon": "https://simg.s.weibo.com/moter/flags/1_0.png",
"icon_desc": "新",
"icon_desc_color": "#ff3852",
"icon_height": 24,
"icon_info": "<i class=\"icon-txt icon-txt-len-1\" style=\"background-color:#ff3852;\">新</i>",
"icon_width": 24,
"label_name": "新",
"note": "金鹰奖获奖名单",
"num": 6261229,
"realpos": 1,
"search_url": "/weibo?q=%E9%87%91%E9%B9%B0%E5%A5%96%E8%8E%B7%E5%A5%96%E5%90%8D%E5%8D%95&t=31&band_rank=1&Refer=top",
"show_idx": 1,
"small_icon_desc": "新",
"small_icon_desc_color": "#ff3852",
"small_icon_info": "<i class=\"icon-txt\" style=\"background-color:#ff3852;\">新</i>",
"suda_data": "key=tblog_search_weibo&value=seqid:1790691729380021854111|type:0|t:0|pos:1-0|q:|ext:cate:112,click:ad_hotword_index",
"text_icon_content": "",
"topic_flag": 0,
"url2_click": "",
"url2_show": "",
"url_click": "",
"url_show": "",
"view_word": "金鹰奖获奖名单",
"word": "金鹰奖获奖名单",
"word_scheme": "金鹰奖获奖名单"
},
{
"description": "剧集 2528098",
"emoticon": "",
"emoticon_url": "",
"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_info": "<i class=\"icon-txt icon-txt-len-1\" style=\"background-color:#ff3852;\">新</i>",
"icon_width": 24,
"label_name": "新",
"note": "宋佳金鹰视后",
"num": 2528098,
"realpos": 2,
"search_url": "/weibo?q=%23%E5%AE%8B%E4%BD%B3%E9%87%91%E9%B9%B0%E8%A7%86%E5%90%8E%23&t=31&band_rank=2&Refer=top",
"show_idx": 2,
"small_icon_desc": "新",
"small_icon_desc_color": "#ff3852",
"small_icon_info": "<i class=\"icon-txt\" style=\"background-color:#ff3852;\">新</i>",
"suda_data": "key=tblog_search_weibo&value=seqid:1790691729380021854111|type:0|t:0|pos:1-0|q:|ext:cate:112,click:ad_hotword_index",
"text_icon_content": "剧集",
"topic_flag": 1,
"url2_click": "",
"url2_show": "",
"url_click": "",
"url_show": "",
"view_word": "宋佳金鹰视后",
"word": "宋佳金鹰视后",
"word_scheme": "#宋佳金鹰视后#"
},
{
"description": "1970796",
"emoticon": "",
"emoticon_url": "",
"flag": 0,
"label_name": "",
"note": "遵义三日",
"num": 1970796,
"realpos": 3,
"search_url": "/weibo?q=%23%E9%81%B5%E4%B9%89%E4%B8%89%E6%97%A5%23&t=31&band_rank=3&Refer=top",
"show_idx": 3,
"suda_data": "key=tblog_search_weibo&value=seqid:1790691729380021854111|type:0|t:0|pos:1-0|q:|ext:cate:112,click:ad_hotword_index",
"text_icon_content": "",
"topic_flag": 1,
"url2_click": "",
"url2_show": "",
"url_click": "",
"url_show": "",
"view_word": "遵义三日",
"word": "遵义三日",
"word_scheme": "#遵义三日#"
},
"… 9 more items in the full response"
]
}
}
]ตัวอย่าง
เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
API README
Weibo Hot Search Index API
Returns the current Weibo hot search ranking as a list of trending topics, each with its rank, label and a numeric heat value. It needs no input, so send an empty JSON object {}.
Use cases
- Show the current top Weibo topics on a media monitoring dashboard.
- Log the ranking at set times to see which topics enter or leave the list.
- Flag topics carrying a
新(new) label to catch fresh stories early. - Build search links to open the Weibo results page for each trending topic.
Request
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search-index" \
-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.
{
"hotgovs": [
{
"emoticon_url": "",
"flag": 2,
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"icon_desc": "热",
"icon_desc_color": "#ff9406",
"icon_height": 24,
"icon_info": "<i class=\"icon-txt icon-txt-len-1\" style=\"background-color:#ff9406;\">热</i>",
"icon_width": 24,
"name": "乌镇网事",
"pos": 1,
"search_url": "/weibo?q=%23%E4%B9%8C%E9%95%87%E7%BD%91%E4%BA%8B%23&Refer=new_time",
"show_idx": 1
}
],
"list": [
{
"description": "2173490",
"emoticon": "",
"emoticon_url": "",
"flag": 2,
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"icon_desc": "热",
"icon_desc_color": "#ff9406",
"icon_height": 24,
"icon_info": "<i class=\"icon-txt icon-txt-len-1\" style=\"background-color:#ff9406;\">热</i>",
"icon_width": 24,
"label_name": "热",
"note": "赴港看演唱会女孩低保已被取消"
}
]
}
Response fields
| Field | Meaning |
|---|---|
list[].word / list[].note | The topic text as shown in the ranking. Both hold the same phrase in the sample. |
list[].word_scheme | The topic wrapped in # hashtag marks, for example #赴港看演唱会女孩低保已被取消#. |
list[].num / list[].description | The numeric heat value for the topic. description holds the same number as a string. |
list[].realpos / list[].show_idx | The rank position of the topic in the list, starting at 1. |
list[].label_name / list[].icon_desc | The short label on the topic, such as 热 (hot) or 新 (new). |
list[].flag | A numeric code for the label type. In the sample, 2 goes with 热 and 1 goes with 新. |
list[].icon / list[].icon_desc_color | The label icon image URL and the hex color used for the label. |
list[].search_url | A relative Weibo search path for the topic. It carries the encoded hashtag query and the band_rank value. |
hotgovs[].word / hotgovs[].pos | A separate short list of topics with their position. The sample shows one item with pos set to 1. |
hotgovs[].search_url | A relative Weibo search path for the topic in hotgovs. |
Notes
- The request takes no parameters. Send
{}as the body. - The
search_urlvalues are relative paths that start with/weibo?q=. Add the Weibo host yourself to build a full link. - For a longer ranking, try Weibo Real-Time Hot Search or Weibo Hot Search List.
- To find posts about a topic, pass its
wordto Weibo Topic Search.
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
ส่งคำขอแรกของคุณ
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search-index" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. การยืนยันตัวตน
ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
3. พารามิเตอร์
ยังไม่มีการเผยแพร่ schema ของพารามิเตอร์สำหรับ API นี้
4. การตอบกลับ
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"hotgovs": [
{
"emoticon_url": "",
"flag": 2,
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"icon_desc": "热",
"icon_desc_color": "#ff9406",
"icon_height": 24,
"icon_info": "<i class=\"icon-txt icon-txt-len-1\" style=\"background-color:#ff9406;\">热</i>",
"icon_width": 24,
"name": "英魂不朽山河永念",
"pos": 1,
"search_url": "/weibo?q=%23%E8%8B%B1%E9%AD%82%E4%B8%8D%E6%9C%BD%E5%B1%B1%E6%B2%B3%E6%B0%B8%E5%BF%B5%23&Refer=new_time",
"show_idx": 1,
"small_icon_desc": "热",
"small_icon_desc_color": "#ff9406",
"small_icon_info": "<i class=\"icon-txt\" style=\"background-color:#ff9406;\">热</i>",
"text_icon_content": "",
"topic_flag": 1,
"view_word": "英魂不朽山河永念",
"word": "英魂不朽山河永念"
}
],
"list": [
{
"description": "6261229",
"emoticon": "",
"emoticon_url": "",
"flag": 1,
"icon": "https://simg.s.weibo.com/moter/flags/1_0.png",
"icon_desc": "新",
"icon_desc_color": "#ff3852",
"icon_height": 24,
"icon_info": "<i class=\"icon-txt icon-txt-len-1\" style=\"background-color:#ff3852;\">新</i>",
"icon_width": 24,
"label_name": "新",
"note": "金鹰奖获奖名单",
"num": 6261229,
"realpos": 1,
"search_url": "/weibo?q=%E9%87%91%E9%B9%B0%E5%A5%96%E8%8E%B7%E5%A5%96%E5%90%8D%E5%8D%95&t=31&band_rank=1&Refer=top",
"show_idx": 1,
"small_icon_desc": "新",
"small_icon_desc_color": "#ff3852",
"small_icon_info": "<i class=\"icon-txt\" style=\"background-color:#ff3852;\">新</i>",
"suda_data": "key=tblog_search_weibo&value=seqid:1790691729380021854111|type:0|t:0|pos:1-0|q:|ext:cate:112,click:ad_hotword_index",
"text_icon_content": "",
"topic_flag": 0,
"url2_click": "",
"url2_show": "",
"url_click": "",
"url_show": "",
"view_word": "金鹰奖获奖名单",
"word": "金鹰奖获奖名单",
"word_scheme": "金鹰奖获奖名单"
},
{
"description": "剧集 2528098",
"emoticon": "",
"emoticon_url": "",
"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_info": "<i class=\"icon-txt icon-txt-len-1\" style=\"background-color:#ff3852;\">新</i>",
"icon_width": 24,
"label_name": "新",
"note": "宋佳金鹰视后",
"num": 2528098,
"realpos": 2,
"search_url": "/weibo?q=%23%E5%AE%8B%E4%BD%B3%E9%87%91%E9%B9%B0%E8%A7%86%E5%90%8E%23&t=31&band_rank=2&Refer=top",
"show_idx": 2,
"small_icon_desc": "新",
"small_icon_desc_color": "#ff3852",
"small_icon_info": "<i class=\"icon-txt\" style=\"background-color:#ff3852;\">新</i>",
"suda_data": "key=tblog_search_weibo&value=seqid:1790691729380021854111|type:0|t:0|pos:1-0|q:|ext:cate:112,click:ad_hotword_index",
"text_icon_content": "剧集",
"topic_flag": 1,
"url2_click": "",
"url2_show": "",
"url_click": "",
"url_show": "",
"view_word": "宋佳金鹰视后",
"word": "宋佳金鹰视后",
"word_scheme": "#宋佳金鹰视后#"
},
{
"description": "1970796",
"emoticon": "",
"emoticon_url": "",
"flag": 0,
"label_name": "",
"note": "遵义三日",
"num": 1970796,
"realpos": 3,
"search_url": "/weibo?q=%23%E9%81%B5%E4%B9%89%E4%B8%89%E6%97%A5%23&t=31&band_rank=3&Refer=top",
"show_idx": 3,
"suda_data": "key=tblog_search_weibo&value=seqid:1790691729380021854111|type:0|t:0|pos:1-0|q:|ext:cate:112,click:ad_hotword_index",
"text_icon_content": "",
"topic_flag": 1,
"url2_click": "",
"url2_show": "",
"url_click": "",
"url_show": "",
"view_word": "遵义三日",
"word": "遵义三日",
"word_scheme": "#遵义三日#"
},
"… 9 more items in the full response"
]
}
}
]สำรวจเพิ่มเติม
APIs ที่เกี่ยวข้อง
| API | ราคา | การตอบกลับ |
|---|---|---|
Weibo Hot Search IndexAPI นี้ 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 Hot Search Index API ได้อย่างไร?
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search-index โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
Weibo Hot Search Index API ราคาเท่าไร?
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
Weibo Hot Search Index API รับพารามิเตอร์อะไรบ้าง?
Weibo Hot Search Index ไม่รับพารามิเตอร์อินพุต ส่ง JSON body ว่างเปล่า
Weibo Hot Search Index API ส่งคืนอะไร?
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Weibo ไหม?
ไม่จำเป็น Weibo Hot Search Index ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Weibo API แยกต่างหาก
