containeridstring
Container ID (usually same as group_id)
https://api.sandbase.ai/v1/api/weibo/web-v2/user-recommend-timelineReturns recommended timeline posts from the Weibo homepage feed. Supports filtering by group ID or container ID, custom feed counts, refresh types, and cursor-based pagination.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns a page of recommended posts from the Weibo homepage feed. All parameters are optional, so you can call it with an empty body. Narrow the feed with group_id or containerid, and page through it with max_id.
comments_count and attitudes_count on recommended posts to see which ones draw reactions.curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/user-recommend-timeline" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
containerid | string | No | Container ID (usually same as group_id) |
count | integer | No | Count (default 10, suggested 5-20) |
extparam | string | No | Extended parameters (default "discover/new_feed") |
group_id | string | No | Group ID (can be obtained through fetch_all_groups) |
max_id | string | No | Pagination cursor, pass "0" for first request |
refresh | integer | No | Refresh type (0=normal refresh, 1=force refresh) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"max_id": 1,
"ok": 1,
"since_id": "{\"ul_sid\":\"\",\"ul_hid\":\"\",\"since_id\":\"5355421545268322\"}",
"statuses": [
{
"analysis_extra": "recommend_source:251|hot_request_id:179369199166779500000065799989854242|gid:534…",
"annotations": [
{
"photo_sub_type": ""
}
],
"attitudes_count": 16655,
"attitudes_status": 0,
"buttons": [
{
"actionlog": {
"act_code": "91",
"act_type": "1",
"cardid": "102803_-_mbloglist_5355421545268322",
"ext": "uid:6579998985|mid:5355421545268322|act:follow|time:1793691992|source:_|recommen…",
"fid": "102803_ctg1_1761_-_ctg1_1761",
"oid": "6579998985",
"source": "hot",
"uicode": ""
},
"name": "关注",
"params": {
"able_recommend": 1,
"extparams": {
"followcardid": "1028030000_5355421545268322_95e29e61",
"followscene": "hotweibo"
},
"uid": 7740247568
},
"pic": "http://u1.sinaimg.cn/upload/2013/07/02/timeline_card_small_button_icon_add.png",
"type": "follow"
}
],
"can_edit": false,
"cardid": "raresvip_0113001563",
"comment_manage_info": {
"approval_comment_type": 0,
"comment_anon_type": 0,
"comment_permission_type": 0,
"comment_sort_type": 0
},
"comments_count": 326,
"content_auth": 0,
"created_at": "Sun Oct 18 17:24:18 +0800 2026",
"extra_button_info": {
"actionlog": {
"act_code": "1558",
"act_type": "1",
"code": "",
"ext": "",
"fid": null,
"lfid": null,
"luicode": null,
"mark": ""
},
"extra_button_highlight_image": "http://h5.sinaimg.cn/upload/2016/09/27/555/timeline_icon_delete_highlighted.png",
"extra_button_image": "http://h5.sinaimg.cn/upload/2016/09/27/555/timeline_icon_delete.png",
"extra_button_type": 0
}
}
],
"total_number": 100
}
| Field | Meaning |
|---|---|
statuses[] | The list of recommended posts in this page. |
statuses[].mid / statuses[].idstr / statuses[].id | The post ID, as a string in the first two and as a number in id. |
statuses[].mblogid | Short post ID string, such as RnfLAm6wW. |
statuses[].created_at | Publish time as a text date, for example Sun Oct 18 17:24:18 +0800 2026. |
statuses[].attitudes_count / statuses[].comments_count | Number of likes (attitudes) and comments on the post. |
statuses[].isAd | Whether the post is marked as an ad. |
statuses[].region_name | Publish location label, such as 发布于 北京. Not every post has it. |
statuses[].page_info.object_type | Type of the attached object, such as video. Only posts with an attachment have page_info. |
statuses[].page_info.media_info.duration | Length of the attached video. Read it together with author_name and author_info.followers_count in the same object. |
statuses[].page_info.cards[].content2 | Description text of the attached video card. |
statuses[].buttons[].params.uid | User ID of the post author, attached to the follow button. |
since_id | Cursor text for the next position in the feed. It is a JSON string that contains a since_id value. |
0 as max_id on the first request. The response also returns max_id and since_id for the next step.group_id values from Weibo All Groups Information. containerid is usually the same value.$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/web-v2/user-recommend-timeline" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
containeridstringContainer ID (usually same as group_id)
countintegerCount (default 10, suggested 5-20)
extparamstringExtended parameters (default "discover|new_feed")
group_idstringGroup ID (can be obtained through fetch_all_groups)
max_idstringPagination cursor, pass "0" for first request
refreshintegerRefresh type (0=normal refresh, 1=force refresh)
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
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/web-v2/user-recommend-timeline โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: containerid (string), count (integer), extparam (string), group_id (string), max_id (string) และ refresh (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Weibo Recommended Homepage Feed ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Weibo API แยกต่างหาก