uidstringzorunlu
User ID (required)
https://api.sandbase.ai/v1/api/weibo/web-v2/user-postsGet the posts published by a Weibo user: text, publish time, images, videos and repost, comment and like counts, with pagination.
[
{
"data": {
"code": 200,
"data": {
"message": "Invalid uid. Pass the numeric Weibo user id, for example 7277477906.",
"message_zh": "uid 非法。请传入纯数字的微博用户 ID,例如 7277477906。",
"ok": 0,
"param": "uid"
},
"docs": null,
"message": "Invalid uid. Pass the numeric Weibo user id, for example 7277477906.",
"message_zh": "uid 非法。请传入纯数字的微博用户 ID,例如 7277477906。",
"params": {
"feature": "0",
"page": "1",
"since_id": "",
"uid": "example"
},
"request_id": "a558d6fd-9290-4cfb-ac9f-3dc0a119f0e7",
"router": "/api/weibo/web_v2/fetch_user_posts",
"time": "2026-08-20 17:39:29",
"time_stamp": 1787218769,
"time_zone": "Asia/Shanghai"
}
}
]Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
Returns the posts published by a Weibo account, newest pinned post first, with text, publish time, images and engagement counts. It needs the numeric user ID in uid, and it pages through older posts.
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/user-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "2803301701"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | User ID (required) |
feature | integer | No | Data feature value (default 0) |
page | integer | No | Page number, starts from 1 (default 1) |
since_id | string | No | Pagination identifier for next page |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"bottom_tips_text": "",
"bottom_tips_visible": false,
"list": [
{
"analysis_extra": "follow:0",
"annotations": [
{
"photo_sub_type": "0,0,0,0,0,0,0,0,0"
}
],
"attitudes_count": 1103,
"attitudes_status": 0,
"can_edit": false,
"cardid": "star_1624",
"comment_manage_info": {
"approval_comment_type": 0,
"comment_anon_type": 0,
"comment_permission_type": -1,
"comment_sort_type": 0
},
"comments_count": 567,
"content_auth": 3,
"content_auth_list": [
{
"content_auth": 3,
"rank": 90,
"show_type": 0
}
],
"created_at": "Tue Nov 03 07:44:51 +0800 2026",
"favorited": false
}
],
"since_id": "5360945434198751kp2",
"status_visible": 0,
"topicList": [],
"total": 154903
},
"ok": 1
}
| Field | Meaning |
|---|---|
data.list[] | One post per item. Each item holds the post text, time, media and counts. |
data.list[].id / idstr / mid | Numeric and string forms of the post ID. idstr and mid are the same value as a string. |
data.list[].mblogid | Short code for the post. Use it to identify the post in other calls. |
data.list[].created_at | Publish time as a text date with a +0800 offset, for example Tue Nov 03 07:44:51 +0800 2026. |
data.list[].attitudes_count / comments_count | Number of likes and number of comments on the post. |
data.list[].isTop | Shows 1 when the post is pinned to the top of the account's page. |
data.list[].pic_ids[] | IDs of the images attached to the post. Each ID is a key in pic_infos. |
data.list[].pic_infos.<pic_id>.original.url / large.url / bmiddle.url | Image URLs at different sizes for one picture. Each size also gives width and height. |
data.list[].isLongText | Tells you whether the post is marked as long text. |
data.list[].number_display_strategy.display_text | Short display form of a large count, for example 100万+. |
uid from a Weibo profile. Use Weibo User Search to find it from a name.page starting at 1 to get later pages. You can also pass the since_id value from the previous response.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Send a real uid string for the selected account. A saved example may contain the literal example placeholder; the teaching API request replaces that placeholder with the current schema example, while the saved Playground example remains unchanged. Replace the illustrative account with the account you actually intend to inspect.
For this first request, set page to 1 and feature to 0, matching the current parameter descriptions, and omit since_id. This is User Posts, which may include reposts; it is not the separate original-only endpoint. Do not claim that the first page is a full account history or that its total field is the number of posts you downloaded.
The current reference payload has integer ok equal to 1 and a data.list array. Require both before using the posts. A saved failed example shows why an outer code 200 is insufficient: inspect the business ok value and reject a missing or malformed list instead of reporting zero posts. Keep absent engagement counts unknown and do not automatically select the highest-count post for another request.
The reference describes since_id for later pages, but this update does not test continuation. The separate User Original Posts reference has conflicting wording about the initial since_id; the tutorial retains its older experiment as historical evidence rather than guessing a new continuation sequence. Need the account record instead? Use User Profile independently.
Already have a SandBase key? Keep SANDBASE_API_KEY in your local environment and use the API tab for POST /v1/api/ with Bearer authentication. If the agent is already connected, give it the exact endpoint and account identifier. For a new project, share the setup Skill, Markdown quickstart and one question. Ask it to save one response and stop before post detail, comments, ranking or pagination.
Read outputs[0].data only after checking the SandBase completed status. Then validate this endpoint's business payload. A successful HTTP status or an outer code 200 alone does not establish a successful Weibo result. Do not use a top-level output fallback or replace missing objects and arrays with empty results.
Pricing checked on 2026-11-08: these two endpoints list $0.001 per call and eligibility for 100 daily calls shared across eligible data APIs in the organization, resetting at 00:00 UTC. Eligibility is not a remaining-quota reading. Inspect current pricing and allowance before running. No new business query or continuation was executed for this update. The Weibo Python first-request tutorial separates current code from the dated original-posts experiment.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/user-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "2803301701",
"page": 1,
"feature": 0
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
uidstringzorunluUser ID (required)
featureintegerData feature value (default 0)
pageintegerPage number, starts from 1 (default 1)
since_idstringPagination identifier for next page
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
[
{
"data": {
"code": 200,
"data": {
"message": "Invalid uid. Pass the numeric Weibo user id, for example 7277477906.",
"message_zh": "uid 非法。请传入纯数字的微博用户 ID,例如 7277477906。",
"ok": 0,
"param": "uid"
},
"docs": null,
"message": "Invalid uid. Pass the numeric Weibo user id, for example 7277477906.",
"message_zh": "uid 非法。请传入纯数字的微博用户 ID,例如 7277477906。",
"params": {
"feature": "0",
"page": "1",
"since_id": "",
"uid": "example"
},
"request_id": "a558d6fd-9290-4cfb-ac9f-3dc0a119f0e7",
"router": "/api/weibo/web_v2/fetch_user_posts",
"time": "2026-08-20 17:39:29",
"time_stamp": 1787218769,
"time_zone": "Asia/Shanghai"
}
}
]Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Weibo User PostsBu API Weibo | $0.001 çağrı başına | JSON |
Weibo | $0.001 çağrı başına | JSON |
Weibo | $0.001 çağrı başına | JSON |
Weibo | $0.001 çağrı başına | JSON |
Weibo | $0.001 çağrı başına | JSON |
Weibo | $0.001 çağrı başına | JSON |
Kılavuzlar:Best Weibo API in 2026: Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/weibo/web-v2/user-posts adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.001. Her kuruluş, UTC günü başına 100 ücretsiz çağrı alır; bu hak, bu API dahil uygun SandBase API'leri arasında ortaktır. Sonrasında her çağrı, SandBase bakiyenizden bu fiyat üzerinden ücretlendirilir. Abonelik yoktur.
Gerekli: uid (string). İsteğe bağlı: feature (integer), page (integer) ve since_id (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Weibo User Posts, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Weibo API erişimi için ayrıca başvuru yapmanız gerekmez.
Gerçek bir uid dizesi, açık page 1 ve feature 0 kullanın ve bu ilk istek için since_id’yi çıkarın. Kaydedilmiş bir anlık görüntüdeki literal örnek yer tutucusu kullanılabilir bir hesap kimliği değildir. Öğretici şema örneğini amaçladığınız UID ile değiştirin.
Tek başına değil. SandBase completed durumunu ve outputs[0].data’yı kontrol edin, ardından sağlayıcının tamsayı ok değeri 1’i ve bir data.list dizisini zorunlu kılın. Sağlayıcı hatasını veya eksik listeyi reddedin; bunları boş bir akış olarak raporlamayın.
Hayır. Bu, tek bir akış sayfasıdır ve yeniden paylaşımları içerebilir. Ayrı olan yalnızca orijinal gönderiler uç noktasının farklı bir sayfalama ifadesi vardır. Bu kılavuz devamı doğrulamaz, tüm hesap geçmişini indirmez ya da bir total alanını dönen liste uzunluğuyla eşitlemez.