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

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 failure
import 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

NameTypeDescription
handlequerystringScreen name (昵称), matched exactly.
idquerystringNumeric user id (uid). Example: 1669879400.
urlquerystringOr the profile URL.
media_onlyquery"true" | "false"One of true, false.
limitqueryintegerPosts per page, 1 to 50. Defaults to 20.
afterquerystringThe previous page’s meta.next_token.
sincequerystringOnly rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Example: 2026-01-01.
untilquerystringOnly 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.

FieldTypeDescription
dataWeiboPost[]
metaobject
Status codes
StatusMeaning
200A page of posts.
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

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.