Weibo Hot Search List
https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search-summaryGet the complete real-time Weibo hot search ranking (top 50): keyword, rank, heat tag and search link for each trending topic.
- Harga
- $0.0015USD / panggilan
- Metode
- POST
- Respons
- JSON
- Parameter
- 0 wajib · 0 opsional
Playground
[
{
"data": {
"data": [
{
"heat": "",
"is_top": true,
"keyword": "总书记指引宣传思想文化工作",
"keyword_url": "/weibo?q=%23%E6%80%BB%E4%B9%A6%E8%AE%B0%E6%8C%87%E5%BC%95%E5%AE%A3%E4%BC%A0%E6%80%9D%E6%83%B3%E6%96%87%E5%8C%96%E5%B7%A5%E4%BD%9C%23&Refer=new_time",
"rank": 0,
"tag": "热"
},
{
"heat": "",
"is_top": false,
"keyword": "疑似缅北电诈园区图片曝光",
"keyword_url": "/weibo?q=%E7%96%91%E4%BC%BC%E7%BC%85%E5%8C%97%E7%94%B5%E8%AF%88%E5%9B%AD%E5%8C%BA%E5%9B%BE%E7%89%87%E6%9B%9D%E5%85%89&t=31&band_rank=1&Refer=top",
"rank": 1,
"tag": ""
},
{
"heat": "",
"is_top": false,
"keyword": "华为PuraXView",
"keyword_url": "/weibo?q=%E5%8D%8E%E4%B8%BAPuraXView&t=31&band_rank=2&Refer=top",
"rank": 2,
"tag": "新"
},
"… 49 more items in the full response"
],
"total": 52
}
}
]Contoh
Pilih contoh untuk memuat input dan hasilnya ke playground.
README API
Weibo Hot Search List API
Returns the current Weibo hot search ranking as a list of trending topics. Each entry has a keyword, rank, tag and a search link. The request takes no input parameters.
Use cases
- Track which topics trend on Weibo right now and log the list at set times.
- Send an alert when a brand name or product keyword appears in the hot list.
- Build a daily report of trending topics and how long each stays in the ranking.
- Feed trending keywords into a post search to collect the discussion around each topic.
Request
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search-summary" \
-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.
{
"data": [
{
"heat": "",
"is_top": true,
"keyword": "乌镇网事",
"keyword_url": "/weibo?q=%23%E4%B9%8C%E9%95%87%E7%BD%91%E4%BA%8B%23&Refer=new_time",
"rank": 0,
"tag": "热"
}
],
"total": 51
}
Response fields
| Field | Meaning |
|---|---|
data[].keyword | The trending topic text as shown on the hot search list. |
data[].rank | Position of the topic in the list. The first entry has rank set to 0, so the count starts at zero. |
data[].tag | Short label for the topic, such as 热 (hot) or 新 (new). |
data[].keyword_url | Relative Weibo search path for the topic. The q value is the URL-encoded keyword wrapped in # hashtag marks. |
data[].is_top | true for the pinned entry at the top of the list, false for the others. |
data[].heat | Heat value for the topic. It can be an empty string, as in the sample response. |
total | Number of items counted for the list. It can be one higher than the number of ranked entries. |
Notes
- The request body is an empty JSON object
{}. There is no pagination. keyword_urlis a relative path. Add the Weibo domain before you open it in a browser.- To read the posts behind a topic, pass the
keywordto Weibo Real-Time Search or Weibo Topic Search. - For a different view of the ranking, see Weibo Real-Time Hot Search.
Pricing
$0.0015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Mulai membangun
Kirim permintaan pertama Anda
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search-summary" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Autentikasi
Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
3. Parameter
Tidak ada schema parameter yang dipublikasikan untuk API ini.
4. Respons
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
[
{
"data": {
"data": [
{
"heat": "",
"is_top": true,
"keyword": "总书记指引宣传思想文化工作",
"keyword_url": "/weibo?q=%23%E6%80%BB%E4%B9%A6%E8%AE%B0%E6%8C%87%E5%BC%95%E5%AE%A3%E4%BC%A0%E6%80%9D%E6%83%B3%E6%96%87%E5%8C%96%E5%B7%A5%E4%BD%9C%23&Refer=new_time",
"rank": 0,
"tag": "热"
},
{
"heat": "",
"is_top": false,
"keyword": "疑似缅北电诈园区图片曝光",
"keyword_url": "/weibo?q=%E7%96%91%E4%BC%BC%E7%BC%85%E5%8C%97%E7%94%B5%E8%AF%88%E5%9B%AD%E5%8C%BA%E5%9B%BE%E7%89%87%E6%9B%9D%E5%85%89&t=31&band_rank=1&Refer=top",
"rank": 1,
"tag": ""
},
{
"heat": "",
"is_top": false,
"keyword": "华为PuraXView",
"keyword_url": "/weibo?q=%E5%8D%8E%E4%B8%BAPuraXView&t=31&band_rank=2&Refer=top",
"rank": 2,
"tag": "新"
},
"… 49 more items in the full response"
],
"total": 52
}
}
]Jelajahi lebih lanjut
API Terkait
| API | Harga | Respons |
|---|---|---|
Weibo Hot Search ListAPI ini Weibo | $0.0015 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Pertanyaan
FAQ
Bagaimana cara menggunakan API Weibo Hot Search List?
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search-summary dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
Berapa biaya API Weibo Hot Search List?
$0.0015 per panggilan. Setiap organisasi mendapat 100 panggilan gratis per hari UTC, dibagi di seluruh API SandBase yang memenuhi syarat termasuk yang ini; setelah itu setiap panggilan ditagihkan dengan harga ini dari saldo SandBase Anda. Tidak ada langganan.
Parameter apa yang diterima API Weibo Hot Search List?
Weibo Hot Search List tidak memiliki parameter input; kirim body JSON kosong.
Apa yang dikembalikan API Weibo Hot Search List?
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Apakah saya memerlukan akun developer atau kunci API Weibo?
Tidak. Weibo Hot Search List berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Weibo secara terpisah.
