Weibo search API
Search Weibo posts: all, real-time, hot, original, verified, videos or images.
GET /v1/weibo/search2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/weibo/search?q=%E5%92%96%E5%95%A1&tab=latest",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "data": [ { "id": "5369080393500929", "mid": "5369080393500929", "bid": "RsZ5ZeGKB", "created_at": "Wed Nov 25 09:59:41 +0800 2026", "text": "我滴妈 太冷了我应该喝热咖啡 ", "reposts_count": 0, "comments_count": 0, "attitudes_count": 0, "user": { "id": 6445881464, "screen_name": "我和啾啾和家人身体特别健康", "followers_count": "74", "verified": false }, "source": "iPhone客户端", "region_name": "发布于 内蒙古", "pic_num": 1, "isLongText": false, "url": "https://m.weibo.cn/detail/5369080393500929" }, { "id": "5369080389569493", "mid": "5369080389569493", "bid": "RsZ5YE9sF", "created_at": "Wed Nov 25 09:59:40 +0800 2026", "text": "30岁 发现姨妈量少了 第一次上楼梯发现膝盖疼 连全年喝冰的人都要喝热咖啡了<span class=\"url-icon\"><img alt=\"[揣手]\" src=\"https://face.t.sinajs.cn/t4/appstyle/e…", "reposts_count": 0, "comments_count": 0, "attitudes_count": 0, "user": { "id": 2283280622, "screen_name": "一口豆包就饱了", "followers_count": "1549", "verified": false }, "source": "", "region_name": "发布于 广西", "pic_num": 1, "isLongText": false, "url": "https://m.weibo.cn/detail/5369080389569493" }, "… 6 more" ], "meta": { "result_count": 8, "total": 1000, "next_token": "2" }}Parameters
| Name | Type | Description |
|---|---|---|
qquery · required | string | Search terms. Example: 北京. |
tabquery | "latest" | "all" | "original" | "verified" | "top" | "hot" | "videos" | "media" | "images" | One of latest, all, original, verified, top, hot, videos, media, images. |
limitquery | integer | Posts per page, 1 to 50. Defaults to 20. |
afterquery | string | The previous page’s meta.next_token. |
sincequery | string | Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Example: 2026-01-01. |
untilquery | string | Only rows published on or before this date: YYYY-MM-DD (that whole UTC day) or an ISO 8601 timestamp. Example: 2026-12-31. |
Response fields
200 with a WeiboPosts, in Weibo’s own JSON.
| Field | Type | Description |
|---|---|---|
data | WeiboPost[] | |
meta | object |
Status codes
| Status | Meaning |
|---|---|
200 | A page of posts. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The user, post or comment does not exist or has nothing public. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Weibo is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Which tabs?
all, latest, hot, top, original, verified, videos, media, images.
Weibo is a trademark of Weibo Corporation. We are not affiliated with or endorsed by Weibo Corporation.