Weibo post API
One Weibo post by URL or id: text, author, reposts, comments, likes, pictures and video.
GET /v1/weibo/post1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/weibo/post?url=https://m.weibo.cn/detail/5368869603512186",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "id": "5368869603512186", "mid": "5368869603512186", "bid": "RsTC0eJGa", "created_at": "Tue Nov 24 20:02:05 +0800 2026", "text": "欢迎收看我的街角碎片🧩 ", "reposts_count": 305294, "comments_count": 208478, "attitudes_count": 990734, "user": { "id": 1669879400, "screen_name": "Dear-迪丽热巴", "followers_count": "8258.3万", "verified": true }, "source": "", "region_name": "发布于 上海", "pic_num": 9, "isLongText": false, "url": "https://m.weibo.cn/detail/5368869603512186"}Parameters
| Name | Type | Description |
|---|---|---|
urlquery · required | string | A post URL or id. Example: https://m.weibo.cn/detail/5368869603512186. |
Response fields
200 with a WeiboPost, in Weibo’s own JSON.
| Field | Type | Description |
|---|---|---|
id | string | |
mid | string | |
bid | string | |
created_at | string | |
text | string | |
reposts_count | number | |
comments_count | number | |
attitudes_count | number | Likes. |
user | object | null | |
pics | object | |
page_info | object | |
retweeted_status | object | |
url | string |
Status codes
| Status | Meaning |
|---|---|
200 | The post. |
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 URLs?
m.weibo.cn/detail/<id>, weibo.com/<uid>/<bid> or the id.
Weibo is a trademark of Weibo Corporation. We are not affiliated with or endorsed by Weibo Corporation.