cidstring必填
Collection ID (required, get from fetch_user_video_collection_list)
https://api.sandbase.ai/v1/api/weibo/web-v2/user-video-collection-detailRetrieves detailed information and video listings for a specified Weibo video collection. Supports sorting by default, hottest, or latest videos, alongside cursor-based pagination.
您的输出将显示在这里
完成输入,然后点击运行。
Returns the videos in one Weibo video collection, plus a header with the collection's page segments and sort tabs. It needs the collection ID in cid. You can sort by default, hottest or latest and page with a cursor.
attitudes_count, comments_count and reposts_count to find the best performers.curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/user-video-collection-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"cid": "4883992307236954"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
cid | string | Yes | Collection ID (required, get from fetch_user_video_collection_list) |
cursor | string | No | Pagination cursor, pass empty for first request, use returned cursor for subsequent |
tab_code | integer | No | Sort type (0=default, 1=hottest, 2=latest) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"header": {
"page_segment_size": 20,
"page_segments": [
{
"action_log": {
"act_code": 5599,
"ext": "type:2|t_id:4883992307236954|t_name:%E5%89%AA%E8%BE%91|mid:null|oid:null"
},
"first_cursor": 4883992359471289,
"first_cursorStr": "4883992359471289",
"last_cursor": 4890466766557477,
"last_cursorStr": "4890466766557477",
"page_index": 0,
"part_name": "1-20",
"part_state": 1
}
],
"tabs": [
{
"code": 0,
"name": "默认",
"type": 0
}
]
},
"list": [
{
"analysis_extra": "",
"annotations": [
[]
],
"attitudes_count": 121,
"attitudes_status": 0,
"can_edit": false,
"cardid": "star_329",
"comment_manage_info": {
"approval_comment_type": 0,
"comment_anon_type": 0,
"comment_permission_type": -1,
"comment_sort_type": 0
},
"comments_count": 1,
"content_auth": 0,
"created_at": "Mon Mar 27 19:53:01 +0800 2023",
"favorited": false,
"id": 4883992359471289
}
],
"next_cursor": 4890787378892026
}
| Field | Meaning |
|---|---|
list[] | One video post in the collection. Each item is a Weibo post with its counts, time and video details. |
list[].mid / list[].idstr | Post ID as a number-like string. id holds the same value as a number. |
list[].mblogid | Short post ID. It is a different format from mid. |
list[].created_at | Publish time as a text date, for example Mon Mar 27 19:53:01 +0800 2023. |
list[].attitudes_count / list[].comments_count / list[].reposts_count | Counts of likes, comments and reposts on the post. |
list[].region_name | Region label shown with the post, for example 发布于 辽宁. |
list[].page_info.content2 | Short label shown on the video card. In this response it holds a person's name. |
list[].page_info.media_info.author_name | Display name of the account that posted the video. |
list[].page_info.media_info.duration | Video length. The values are small whole numbers, such as 16. |
list[].page_info.media_info.big_pic_info.pic_big.url | Cover image URL at the largest size. pic_middle and pic_small hold smaller versions with width and height. |
next_cursor | Cursor value to send as cursor to get the next page of videos. |
header.tabs[] | Sort options with code and name. The codes match the tab_code values 0, 1 and 2. |
cid from the Weibo User Video Collection List API.cursor empty on the first call. Then pass next_cursor from the previous response.header.page_segments[] splits the collection into ranges such as 1-20 and 21-30. Each range has first_cursorStr and last_cursorStr.tab_code to 0 for default, 1 for hottest or 2 for latest order.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/user-video-collection-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"cid": "4883992307236954"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
cidstring必填Collection ID (required, get from fetch_user_video_collection_list)
cursorstringPagination cursor, pass empty for first request, use returned cursor for subsequent
tab_codeintegerSort type (0=default, 1=hottest, 2=latest)
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| 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 |
问题
向 https://api.sandbase.ai/v1/api/weibo/web-v2/user-video-collection-detail 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:cid (string)。 可选:cursor (string) 和 tab_code (integer)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Weibo User Video Collection Detail 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Weibo API 访问权限。