100 free credits. No credit card required. Get a key

Weibo hot search API

Weibo’s real-time hot search list with rank, heat and labels, promoted entries marked.

GET /v1/weibo/trending2 credits per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/weibo/trending",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 2 credits
{
"data": [
{
"rank": null,
"word": "习近平主席向世界推介中国这四座城市",
"hot": null,
"label": "pinned",
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"promoted": false,
"url": "https://s.weibo.com/weibo?q=%E4%B9%A0%E8%BF%91%E5%B9%B3%E4%B8%BB%E5%B8%AD%E5%90%91%E4%B8%96%E7%95%8C%E6%8E%A8%E4%BB%8B%E…"
},
{
"rank": 1,
"word": "巴基斯坦航天员手指国旗向镜头敬礼",
"hot": 1988486,
"label": "hot",
"icon": "https://simg.s.weibo.com/moter/flags/2_0.png",
"promoted": false,
"url": "https://s.weibo.com/weibo?q=%E5%B7%B4%E5%9F%BA%E6%96%AF%E5%9D%A6%E8%88%AA%E5%A4%A9%E5%91%98%E6%89%8B%E6%8C%87%E5%9B%BD%E…"
},
"… 20 more"
],
"meta": {
"result_count": 22
}
}

Parameters

NameTypeDescription
include_promotedquery"true" | "false"One of true, false.
limitqueryintegerEntries per page, 1 to 60. Defaults to 50.
Response fields

200 with a WeiboTrending, in Weibo’s own JSON.

FieldTypeDescription
dataWeiboTrend[]
metaobject
Status codes
StatusMeaning
200The list, in rank order.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The user, post or comment does not exist or has nothing public.
429Too many requests. Wait for Retry-After seconds.
503Weibo is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Questions

Are ads included?

Only with include_promoted=true, and they carry no rank.

Weibo is a trademark of Weibo Corporation. We are not affiliated with or endorsed by Weibo Corporation.