uidstringจำเป็น
User ID (required)
https://api.sandbase.ai/v1/api/weibo/app/user-articlesReturns a list of articles released by a specified Weibo user. Supports pagination via a cursor parameter.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns a list of feed items posted by a Weibo user, based on the user's uid. Each item carries post data such as like counts and image URLs, and the response includes a cursor for the next page.
curl -X POST "https://api.sandbase.ai/v1/api/weibo/app/user-articles" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "1725941200"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | User ID (required) |
since_id | string | No | Pagination cursor, don't pass for first request, use returned since_id for subsequent requests |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"__profile_card_server__": {
"from": "SHANHAI-SERVER"
},
"config": "{}",
"items": [
{
"category": "cell",
"span": {
"style": {
"height": 10
}
},
"type": "span"
}
],
"loadedInfo": "{}",
"moreInfo": {
"error": "网络加载失败,请稍后尝试",
"loading": "正在加载更多",
"moreType": "default",
"pagingType": "cursor",
"params": {
"count": 20,
"max_id": 0,
"since_id": "5344278831435751_0_0"
}
},
"navInfo": "{}",
"pageData": "{}",
"refreshInfo": "{}"
}
| Field | Meaning |
|---|---|
items[] | List of entries on the page. Entries with category set to feed are posts. Entries with category set to cell and type set to span are spacing elements with no post data. |
items[].category / items[].type | Kind of entry. Use category to tell post entries (feed) apart from layout entries (cell). |
items[].data.attitudes_count | Number of likes on the post. |
items[].data.bmiddle_pic | URL of the medium-size picture attached to the post, when the post has one. |
items[].data.ad_marked | Boolean that shows whether the post is marked as an ad. |
items[].data.annotations[] | List of small objects with extra post details, such as client_mblogid. The keys differ from one object to the next. |
items[].itemExt.anchorId / items[].itemExt.extraItemId | Identifiers for the entry within the feed, for example 2319121725941200_-_ordinary. |
moreInfo.params.since_id | Cursor value for the next page, for example 5344278831435751_0_0. |
moreInfo.params.count | Page size that the cursor uses. The sample value is 20. |
moreInfo.pagingType | Paging method. The value cursor means you page with since_id. |
since_id on the first request. For the next page, pass the value from moreInfo.params.since_id as since_id.config, loadedInfo, navInfo, pageData and refreshInfo, are JSON strings that hold {} in the sample.items[] on category equal to feed to skip the spacing entries.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/weibo/app/user-articles" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "1725941200"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
uidstringจำเป็นUser ID (required)
since_idanyPagination cursor, don't pass for first request, use returned since_id for subsequent requests
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Weibo User ArticlesAPI นี้ Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
Weibo | $0.001 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/weibo/app/user-articles โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: uid (string). ตัวเลือก: since_id (any). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Weibo User Articles ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Weibo API แยกต่างหาก