Weibo Hot Search
https://api.sandbase.ai/v1/api/weibo/hot-searchGet the current Weibo hot-search ranking. Use it to identify trending topics for newsroom monitoring, content planning, or timely topic discovery.
- ราคา
- $0.014286USD / คำขอ
- Method
- POST
- การตอบกลับ
- JSON
- พารามิเตอร์
- 0 จำเป็น · 0 ไม่บังคับ
Playground
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
API README
Weibo Hot Search API
Returns the current Weibo hot-search ranking as a list of trending topics with a heat number, rank and label. It takes no input, so you send an empty JSON object {}.
Use cases
- Track which topics are trending on Weibo right now for newsroom monitoring.
- Spot newly listed topics by checking the
label_namevalue新on each entry. - Rank topics by
numto plan content around the busiest conversations. - Check which topic currently holds the pinned government or promoted slot in
data.hotgov.
Request
curl -X POST "https://api.sandbase.ai/v1/api/weibo/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.
{
"curTab": "hot",
"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": "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
}
]
},
"logs": {
"act_code": 7948,
"ext": "cate:1003|words:#赴港看演唱会女孩低保已被取消#,#警方通报九寨沟景区游客冲突事件#,#本届乌镇峰会分论坛数量创新高#,#九寨沟打人事件双方已和…"
},
"ok": 1,
"topLogs": {
"act_code": 7948,
"ext": "cate:1002|words:#乌镇网事#"
}
}
Response fields
| Field | Meaning |
|---|---|
data.realtime[] | The ranked list of hot-search topics, in display order. |
data.realtime[].word / data.realtime[].note | The topic text. In the sample both hold the same plain text without hash marks. |
data.realtime[].word_scheme | The topic written as a Weibo hashtag with # marks on both sides. Use it as a search term. |
data.realtime[].num | A numeric heat value for the topic. Higher values appear earlier in the list. |
data.realtime[].rank | Zero-based rank of the topic in the list. The first item has 0. |
data.realtime[].realpos | One-based position of the topic in the list. The first item has 1. |
data.realtime[].label_name / data.realtime[].icon_desc | The short label shown beside the topic, such as 热 (hot) or 新 (new). |
data.realtime[].icon | URL of the label icon image for the topic. |
data.hotgov.word / data.hotgov.url | The pinned topic at the top of the board and a link to the related post. |
data.hotgovs[] | List of pinned topics. Each entry has word, pos and label icon fields. |
Notes
- The request has no parameters. Send
{}as the body. data.realtime[].rankstarts at0, whiledata.realtime[].realposstarts at1. Pick one and use it consistently.data.hotgov.stimelooks like a Unix timestamp in seconds.- For other Weibo ranking views, see Weibo Real-Time Hot Search or Weibo Hot Search Categories.
Pricing
$0.014286 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/hot-search" \
-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 นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
APIs ที่เกี่ยวข้อง
| API | ราคา | การตอบกลับ |
|---|---|---|
Weibo Hot SearchAPI นี้ Weibo | $0.014286 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
คำถาม
คำถามที่พบบ่อย
ฉันจะใช้ Weibo Hot Search API ได้อย่างไร?
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/weibo/hot-search โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
Weibo Hot Search API ราคาเท่าไร?
$0.014286 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
Weibo Hot Search API รับพารามิเตอร์อะไรบ้าง?
Weibo Hot Search ไม่รับพารามิเตอร์อินพุต ส่ง JSON body ว่างเปล่า
Weibo Hot Search API ส่งคืนอะไร?
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Weibo ไหม?
ไม่จำเป็น Weibo Hot Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Weibo API แยกต่างหาก
