uidstring必填
Bilibili User ID (UID).
https://api.sandbase.ai/v1/api/bilibili/user-video-listGet videos published by a Bilibili user identified by UID, with an optional continuation parameter from a prior response. Use it to browse a creator's uploads or continue through their video list.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Returns a page of videos published by one Bilibili user, with title, BV ID, cover, play and danmaku counts, and publish time for each video. It needs the creator's numeric uid. An optional param value continues from a previous response.
play and danmaku counts to find their top content.bvid values for a creator, then fetch details or comments for each video.curl -X POST "https://api.sandbase.ai/v1/api/bilibili/user-video-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "546195"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | Bilibili User ID (UID). |
param | string | No | Pagination parameter from previous response. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"count": 682,
"episodic_button": {
"text": "播放全部",
"uri": "bilibili://music/playlist/spacepage/546195?desc=1&offset=0&oid=0&order=time&page…"
},
"has_next": true,
"has_prev": false,
"item": [
{
"author": "老番茄",
"badges": [
{
"bg_color": "#FB7299",
"bg_color_night": "#BB5B76",
"bg_style": 1,
"border_color": "#FB7299",
"border_color_night": "#BB5B76",
"text": "热门",
"text_color": "#FEFEFE",
"text_color_night": "#E5E5E5"
}
],
"bvid": "BV1pkxi66ErX",
"cover": "http://i1.hdslb.com/bfs/archive/53540400bc50b20d9354aa57444966395e99b2d5.jpg",
"cover_icon": "",
"cover_left_icon": "",
"cover_left_text": "",
"ctime": 1793417100,
"cursor_attr": {
"is_last_watched_arc": false,
"rank": 0
},
"danmaku": 2829,
"duration": 675,
"first_cid": 43184029788
}
],
"last_watched_locator": {
"display_threshold": 10,
"insert_ranking": 6,
"text": "定位至上次观看"
},
"next_cursor": "116819889232434",
"order": [
{
"title": "最新发布",
"value": "pubdate"
}
]
},
"message": "OK",
"ttl": 1
}
| Field | Meaning |
|---|---|
data.count | Total number of videos for this user. |
data.has_next / data.has_prev | Whether a next or previous page exists. |
data.next_cursor | Cursor value for the next page. It looks like a video ID. |
data.item[].bvid | The BV ID of the video. |
data.item[].title | Video title. |
data.item[].author | Display name of the uploader. Joint uploads show text such as "等联合创作" after the name, and is_cooperation is true. |
data.item[].play / data.item[].danmaku | Play count and danmaku (on-screen comment) count for the video. |
data.item[].view_content | Play count as shown in the app, as a short text such as "224.8万". |
data.item[].duration | Video length. The value is a number, for example 675. |
data.item[].ctime | Publish time as a Unix timestamp. |
data.item[].tname | Name of the video's category. |
data.order[].title / data.order[].value | Sort options shown by the platform: pubdate (latest) and click (most played). |
uid of the creator. The example 546195 is the account of the uploader named 老番茄 in the sample. If you only have a profile link, call Bilibili User ID Extraction first.data.next_cursor from the previous response as param. Keep going while data.has_next is true.bvid. Pass it to Bilibili Video Details to get the full video record.param field inside each item is a video ID. Do not confuse it with the request parameter param.$0.014286 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/bilibili/user-video-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "546195"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
uidstring必填Bilibili User ID (UID).
paramstringPagination parameter from previous response.
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
Bilibili | 每次呼叫 $0.014286 | JSON |
Bilibili | 每次呼叫 $0.001 | JSON |
Bilibili | 每次呼叫 $0.001 | JSON |
Bilibili | 每次呼叫 $0.001 | JSON |
Bilibili | 每次呼叫 $0.001 | JSON |
Bilibili | 每次呼叫 $0.001 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/bilibili/user-video-list。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.014286,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:uid (string)。 選填:param (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Bilibili User Published Videos 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Bilibili API 存取權。