Weibo comments API
Comments on a Weibo post, hot or latest first, with likes and reply counts.
GET /v1/weibo/post/comments2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/weibo/post/comments?url=5368869603512186&sort=hot",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "data": [ { "id": "5368869734843613", "created_at": "Tue Nov 24 20:02:36 +0800 2026", "text": "迪迪好美啊", "like_count": 21013, "total_number": 1516, "user": { "id": 2091469304, "screen_name": "冠珠瓷砖官方微博", "profile_image_url": "https://tvax3.sinaimg.cn/crop.0.0.1080.1080.180/7ca949f8ly8i94homl1jtj20u00u0mxw…", "profile_url": "https://m.weibo.cn/u/2091469304?launchid=10000360-page_H5", "close_blue_v": false, "description": "冠珠瓷砖,新明珠集团历时三十多载倾力打造的核心品牌,被誉为建陶行业的东方明珠,成长为行业翘楚。", "follow_me": false, "following": false, "follow_count": 78, "followers_count": "187.1万", "…": "18 more fields" }, "source": "来自 广东", "rootid": "5368869734843613", "rootidstr": "5368869734843613", "floor_number": 1947, "…": "25 more fields" }, "… 7 more" ], "meta": { "result_count": 8, "total": 208516, "next_token": "855915303625793:0" }}Parameters
| Name | Type | Description |
|---|---|---|
urlquery · required | string | A post URL or id. |
sortquery | "hot" | "latest" | One of hot, latest. |
limitquery | integer | Comments 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 WeiboComments, in Weibo’s own JSON.
| Field | Type | Description |
|---|---|---|
data | WeiboComment[] | |
meta | object |
Status codes
| Status | Meaning |
|---|---|
200 | A page of comments. |
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
Are replies included?
The first replies are; use weibo_comment_replies for the rest.
Weibo is a trademark of Weibo Corporation. We are not affiliated with or endorsed by Weibo Corporation.