Weibo user posts API
A Weibo account’s posts, newest first, with counts, pictures, video and reposts, page after page.
GET /v1/weibo/user/posts2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/weibo/user/posts?id=1669879400",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "data": [ { "id": "5368869603512186", "mid": "5368869603512186", "bid": "RsTC0eJGa", "created_at": "Tue Nov 24 20:02:05 +0800 2026", "text": "欢迎收看我的街角碎片🧩 ", "reposts_count": 305277, "comments_count": 208452, "attitudes_count": 990719, "user": { "id": 1669879400, "screen_name": "Dear-迪丽热巴", "followers_count": "8258.2万", "verified": true }, "source": "", "region_name": "发布于 上海", "pic_num": 9, "isLongText": false, "url": "https://m.weibo.cn/detail/5368869603512186" }, { "id": "5363838444901644", "mid": "5363838444901644", "bid": "RqMJekz8M", "created_at": "Tue Nov 10 22:50:03 +0800 2026", "text": "把敬意送给云端的守护者!<a href=\"https://m.weibo.cn/search?containerid=231522type%3D1%26t%3D10%26q%3D%231111%E6%98%AF%E4%BA%BA%E6%B…", "reposts_count": 30424, "comments_count": 1000000, "attitudes_count": 408606, "user": { "id": 1669879400, "screen_name": "Dear-迪丽热巴", "followers_count": "8258.2万", "verified": true }, "source": "", "region_name": "发布于 上海", "pic_num": 0, "isLongText": false, "url": "https://m.weibo.cn/detail/5363838444901644" }, "… 6 more" ], "meta": { "result_count": 8, "total": 1943, "next_token": "2" }}Parameters
| Name | Type | Description |
|---|---|---|
handlequery | string | Screen name (昵称), matched exactly. |
idquery | string | Numeric user id (uid). Example: 1669879400. |
urlquery | string | Or the profile URL. |
media_onlyquery | "true" | "false" | One of true, false. |
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
Only posts with media?
Pass media_only=true.
Weibo is a trademark of Weibo Corporation. We are not affiliated with or endorsed by Weibo Corporation.