user_idstringbắt buộc
User ID (required)
https://api.sandbase.ai/v1/api/bilibili/app/user-videosReturns uploaded video listings for a specified Bilibili creator account. Supports pagination controls and filtering by post types such as archives or seasons.
[
{
"data": {
"code": 0,
"data": {
"count": 1926,
"episodic_button": {
"text": "播放全部",
"uri": "bilibili://music/playlist/spacepage/203680252?desc=1&offset=0&oid=0&order=time&page_type=1&playlist_intro=UP%E4%B8%BB%E7%9A%84%E5%85%A8%E9%83%A8%E8%A7%86%E9%A2%91&ps=20&sort_field=1&total_count=1926&user_name=AYCS2"
},
"item": [
{
"author": "AYCS2",
"bvid": "BV13y8j6GEu3",
"cover": "http://i0.hdslb.com/bfs/archive/effaff314233717ffdc26b6224ee46d4f5d1110f.jpg",
"cover_icon": "",
"cover_left_icon": "",
"cover_left_text": "",
"ctime": 1787105392,
"danmaku": 91,
"duration": 108,
"first_cid": 41048148639,
"goto": "av",
"icon_type": 0,
"is_cooperation": false,
"is_fold": false,
"is_live_playback": false,
"is_oneself": false,
"is_pgc": false,
"is_popular": false,
"is_pugv": false,
"is_steins": false,
"is_ugcpay": false,
"length": "",
"param": "117119731635242",
"play": 232656,
"publish_time_text": "昨天 10:09",
"state": false,
"sub_title_icon": "",
"subtitle": "",
"three_point": [
{
"icon": "https://i0.hdslb.com/bfs/activity-plat/static/0X5s0d3xaY.png",
"text": "添加至稍后再看",
"translate": null,
"type": "addtoview"
},
{
"icon": "https://i0.hdslb.com/bfs/activity-plat/static/EtmLXpmBLI.png",
"share_fail_toast": "分享失败",
"share_path": "pages/video/video?avid=117119731635242",
"share_subtitle": "已观看23.3万次",
"share_succ_toast": "分享成功",
"short_link": "https://b23.tv/BV13y8j6GEu3",
"text": "分享",
"translate": null,
"type": "share"
}
],
"title": "这么帅?gr1ks面对绿龙打出双盲狙+飞天跳射终结残局!",
"tname": "网络游戏",
"translate_status": "",
"translated_title": "",
"ugc_pay": 0,
"uri": "bilibili://video/117119731635242?cid=41048148639&history_progress=0&player_height=1080&player_preload=%7B%22expire_time%22%3A1787221895%2C%22cid%22%3A41048148639%2C%22quality%22%3A16%2C%22url%22%3A%22http%3A%2F%2Fupos-sz-mirrorcosov.bilivideo.com%2Fupgcxcode%2F39%2F86%2F41048148639%2F41048148639_qe1-1-16.mp4%3Fe%3Dig8euxZM2rNcNbRVhwdVhwdlhWdVhwdVhoNvNC8BqJIzNbfqXBvEuENvNC8aNEVEtEvE9IMvXBvE2ENvNCImNEVEIj0Y2J_aug859r1qXg8xNEVE5XREto8GuFGv2U7SuxI72X6fTr859IB_%5Cu0026trid%3D0e8cf795e3774478bbe2a44551e3388U%5Cu0026uipk%3D5%5Cu0026oi%3D1075282217%5Cu0026mid%3D0%5Cu0026deadline%3D1787225495%5Cu0026nb…",
"videos": 1,
"view_content": "23.3万",
"view_self_type": 0
},
{
"author": "AYCS2",
"bvid": "BV1ZabY6hEkb",
"cover": "http://i0.hdslb.com/bfs/archive/f9347b2ea01d15b6e317fa6dd98f39da450516fc.jpg",
"cover_icon": "",
"cover_left_icon": "",
"cover_left_text": "",
"ctime": 1786939387,
"danmaku": 50,
"duration": 106,
"first_cid": 40980778298,
"goto": "av",
"icon_type": 0,
"is_cooperation": false,
"is_fold": false,
"is_live_playback": false,
"is_oneself": false,
"is_pgc": false,
"is_popular": false,
"is_pugv": false,
"is_steins": false,
"is_ugcpay": false,
"length": "",
"param": "117108843286973",
"play": 101456,
"publish_time_text": "3天前",
"state": false,
"sub_title_icon": "",
"subtitle": "",
"three_point": [
{
"icon": "https://i0.hdslb.com/bfs/activity-plat/static/0X5s0d3xaY.png",
"text": "添加至稍后再看",
"translate": null,
"type": "addtoview"
},
{
"icon": "https://i0.hdslb.com/bfs/activity-plat/static/EtmLXpmBLI.png",
"share_fail_toast": "分享失败",
"share_path": "pages/video/video?avid=117108843286973",
"share_subtitle": "已观看10.1万次",
"share_succ_toast": "分享成功",
"short_link": "https://b23.tv/BV1ZabY6hEkb",
"text": "分享",
"translate": null,
"type": "share"
}
],
"title": "思路清晰!野榜哥化身残局大师拿下关键1v4!助力A队杀入淘汰赛!",
"tname": "网络游戏",
"translate_status": "",
"translated_title": "",
"ugc_pay": 0,
"uri": "bilibili://video/117108843286973?cid=40980778298&history_progress=0&player_height=1080&player_preload=%7B%22expire_time%22%3A1787221895%2C%22cid%22%3A40980778298%2C%22quality%22%3A16%2C%22url%22%3A%22http%3A%2F%2Fupos-sz-mirrorcosov.bilivideo.com%2Fupgcxcode%2F98%2F82%2F40980778298%2F40980778298-1-16.mp4%3Fe%3Dig8euxZM2rNcNbRVhwdVhwdlhWdVhwdVhoNvNC8BqJIzNbfqXBvEuENvNC8aNEVEtEvE9IMvXBvE2ENvNCImNEVEIj0Y2J_aug859r1qXg8xNEVE5XREto8GuFGv2U7SuxI72X6fTr859IB_%5Cu0026uipk%3D5%5Cu0026oi%3D1075282217%5Cu0026platform%3Dandroid%5Cu0026trid%3D0e8cf795e3774478bbe2a44551e3388U%5Cu0026gen%3Dplayurlv3%5Cu0026o…",
"videos": 1,
"view_content": "10.1万",
"view_self_type": 0
},
{
"author": "AYCS2",
"bvid": "BV184bR65ECj",
"cover": "http://i0.hdslb.com/bfs/archive/da1a865a974d5f63a581985973439fdba001c210.jpg",
"cover_icon": "",
"cover_left_icon": "",
"cover_left_text": "",
"ctime": 1786892878,
"danmaku": 283,
"duration": 184,
"first_cid": 40971340002,
"goto": "av",
"icon_type": 0,
"is_cooperation": false,
"is_fold": false,
"is_live_playback": false,
"is_oneself": false,
"is_pgc": false,
"is_popular": false,
"is_pugv": false,
"is_steins": false,
"is_ugcpay": false,
"length": "",
"param": "117105789768131",
"play": 215639,
"publish_time_text": "8月16日",
"state": false,
"sub_title_icon": "",
"subtitle": "",
"three_point": [
{
"icon": "https://i0.hdslb.com/bfs/activity-plat/static/0X5s0d3xaY.png",
"text": "添加至稍后再看",
"translate": null,
"type": "addtoview"
},
{
"icon": "https://i0.hdslb.com/bfs/activity-plat/static/EtmLXpmBLI.png",
"share_fail_toast": "分享失败",
"share_path": "pages/video/video?avid=117105789768131",
"share_subtitle": "已观看21.6万次",
"share_succ_toast": "分享成功",
"short_link": "https://b23.tv/BV184bR65ECj",
"text": "分享",
"translate": null,
"type": "share"
}
],
"title": "无情碾压!Zywoo残血暴力点头1v3!全图2.17Rating助力小蜜蜂挺进淘汰赛!",
"tname": "网络游戏",
"translate_status": "",
"translated_title": "",
"ugc_pay": 0,
"uri": "bilibili://video/117105789768131?cid=40971340002&history_progress=0&player_height=1080&player_preload=%7B%22expire_time%22%3A1787221895%2C%22cid%22%3A40971340002%2C%22quality%22%3A16%2C%22url%22%3A%22http%3A%2F%2Fupos-sz-mirrorcosov.bilivideo.com%2Fupgcxcode%2F02%2F00%2F40971340002%2F40971340002_qe1-1-16.mp4%3Fe%3Dig8euxZM2rNcNbRVhwdVhwdlhWdVhwdVhoNvNC8BqJIzNbfqXBvEuENvNC8aNEVEtEvE9IMvXBvE2ENvNCImNEVEIj0Y2J_aug859r1qXg8xNEVE5XREto8GuFGv2U7SuxI72X6fTr859IB_%5Cu0026gen%3Dplayurlv3%5Cu0026os%3Dcosovbv%5Cu0026og%3Dhw%5Cu0026platform%3Dandroid%5Cu0026deadline%3D1787225495%5Cu0026nbs%3D1%5Cu0026uipk…",
"videos": 1,
"view_content": "21.6万",
"view_self_type": 0
},
"… 17 more items in the full response"
],
"order": [
{
"title": "最新发布",
"value": "pubdate"
},
{
"title": "最多播放",
"value": "click"
}
]
},
"message": "OK",
"ttl": 1
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns a page of uploaded videos for one Bilibili creator account. You send the creator's numeric user_id, and you can set the page, page size and post filter.
data.item.data.count.curl -X POST "https://api.sandbase.ai/v1/api/bilibili/app/user-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "203680252"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | User ID (required) |
page | integer | No | Page number |
post_filter | string | No | Filter type (archive/season/contribute) |
ps | integer | No | Page size |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"count": 1967,
"episodic_button": {
"text": "播放全部",
"uri": "bilibili://music/playlist/spacepage/203680252?desc=1&offset=0&oid=0&order=time&p…"
},
"item": [
{
"author": "AYCS2",
"bvid": "BV1oY4u6REdF",
"cover": "http://i0.hdslb.com/bfs/archive/c80f8c142e993379aa9ac7cd7520cfc219d1f0e3.jpg",
"cover_icon": "",
"cover_left_icon": "",
"cover_left_text": "",
"ctime": 1793671323,
"danmaku": 60,
"duration": 168,
"first_cid": 43279320428,
"goto": "av",
"icon_type": 0
}
],
"order": [
{
"title": "最新发布",
"value": "pubdate"
}
]
},
"message": "OK",
"ttl": 1
}
| Field | Meaning |
|---|---|
data.count | Total number of videos for this creator under the current filter. |
data.item[].title | Title of the video. |
data.item[].bvid | The BV ID of the video. The share link in three_point uses the same ID. |
data.item[].author | Name of the uploader. |
data.item[].play / danmaku | Numeric play count and danmaku (on-screen comment) count of the video. |
data.item[].view_content | Play count as display text, for example 3.4万. |
data.item[].duration | Length of the video. The value 168 is a plain number. |
data.item[].ctime | Publish time as a Unix timestamp in seconds. |
data.item[].publish_time_text | Relative or short date text for the publish time, as shown in the app, for example 5小时前. |
data.item[].tname / cover | Category name of the video and the URL of its cover image. |
data.order[].title / value | Sort options offered by the app, such as pubdate and click. |
user_id is the numeric ID of the creator, for example 203680252. If you only have a profile link, use Bilibili User ID Extraction to get it.page and ps. Compare data.count with the number of items you have collected to know when to stop.post_filter accepts archive, season or contribute. The default is archive.bvid.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/app/user-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ps": 20,
"page": 1,
"user_id": "203680252",
"post_filter": "archive"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
user_idstringbắt buộcUser ID (required)
pageintegerPage number
Mặc định: 1
post_filterstringFilter type (archive/season/contribute)
Mặc định: "archive"
psintegerPage size
Mặc định: 20
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": {
"code": 0,
"data": {
"count": 1926,
"episodic_button": {
"text": "播放全部",
"uri": "bilibili://music/playlist/spacepage/203680252?desc=1&offset=0&oid=0&order=time&page_type=1&playlist_intro=UP%E4%B8%BB%E7%9A%84%E5%85%A8%E9%83%A8%E8%A7%86%E9%A2%91&ps=20&sort_field=1&total_count=1926&user_name=AYCS2"
},
"item": [
{
"author": "AYCS2",
"bvid": "BV13y8j6GEu3",
"cover": "http://i0.hdslb.com/bfs/archive/effaff314233717ffdc26b6224ee46d4f5d1110f.jpg",
"cover_icon": "",
"cover_left_icon": "",
"cover_left_text": "",
"ctime": 1787105392,
"danmaku": 91,
"duration": 108,
"first_cid": 41048148639,
"goto": "av",
"icon_type": 0,
"is_cooperation": false,
"is_fold": false,
"is_live_playback": false,
"is_oneself": false,
"is_pgc": false,
"is_popular": false,
"is_pugv": false,
"is_steins": false,
"is_ugcpay": false,
"length": "",
"param": "117119731635242",
"play": 232656,
"publish_time_text": "昨天 10:09",
"state": false,
"sub_title_icon": "",
"subtitle": "",
"three_point": [
{
"icon": "https://i0.hdslb.com/bfs/activity-plat/static/0X5s0d3xaY.png",
"text": "添加至稍后再看",
"translate": null,
"type": "addtoview"
},
{
"icon": "https://i0.hdslb.com/bfs/activity-plat/static/EtmLXpmBLI.png",
"share_fail_toast": "分享失败",
"share_path": "pages/video/video?avid=117119731635242",
"share_subtitle": "已观看23.3万次",
"share_succ_toast": "分享成功",
"short_link": "https://b23.tv/BV13y8j6GEu3",
"text": "分享",
"translate": null,
"type": "share"
}
],
"title": "这么帅?gr1ks面对绿龙打出双盲狙+飞天跳射终结残局!",
"tname": "网络游戏",
"translate_status": "",
"translated_title": "",
"ugc_pay": 0,
"uri": "bilibili://video/117119731635242?cid=41048148639&history_progress=0&player_height=1080&player_preload=%7B%22expire_time%22%3A1787221895%2C%22cid%22%3A41048148639%2C%22quality%22%3A16%2C%22url%22%3A%22http%3A%2F%2Fupos-sz-mirrorcosov.bilivideo.com%2Fupgcxcode%2F39%2F86%2F41048148639%2F41048148639_qe1-1-16.mp4%3Fe%3Dig8euxZM2rNcNbRVhwdVhwdlhWdVhwdVhoNvNC8BqJIzNbfqXBvEuENvNC8aNEVEtEvE9IMvXBvE2ENvNCImNEVEIj0Y2J_aug859r1qXg8xNEVE5XREto8GuFGv2U7SuxI72X6fTr859IB_%5Cu0026trid%3D0e8cf795e3774478bbe2a44551e3388U%5Cu0026uipk%3D5%5Cu0026oi%3D1075282217%5Cu0026mid%3D0%5Cu0026deadline%3D1787225495%5Cu0026nb…",
"videos": 1,
"view_content": "23.3万",
"view_self_type": 0
},
{
"author": "AYCS2",
"bvid": "BV1ZabY6hEkb",
"cover": "http://i0.hdslb.com/bfs/archive/f9347b2ea01d15b6e317fa6dd98f39da450516fc.jpg",
"cover_icon": "",
"cover_left_icon": "",
"cover_left_text": "",
"ctime": 1786939387,
"danmaku": 50,
"duration": 106,
"first_cid": 40980778298,
"goto": "av",
"icon_type": 0,
"is_cooperation": false,
"is_fold": false,
"is_live_playback": false,
"is_oneself": false,
"is_pgc": false,
"is_popular": false,
"is_pugv": false,
"is_steins": false,
"is_ugcpay": false,
"length": "",
"param": "117108843286973",
"play": 101456,
"publish_time_text": "3天前",
"state": false,
"sub_title_icon": "",
"subtitle": "",
"three_point": [
{
"icon": "https://i0.hdslb.com/bfs/activity-plat/static/0X5s0d3xaY.png",
"text": "添加至稍后再看",
"translate": null,
"type": "addtoview"
},
{
"icon": "https://i0.hdslb.com/bfs/activity-plat/static/EtmLXpmBLI.png",
"share_fail_toast": "分享失败",
"share_path": "pages/video/video?avid=117108843286973",
"share_subtitle": "已观看10.1万次",
"share_succ_toast": "分享成功",
"short_link": "https://b23.tv/BV1ZabY6hEkb",
"text": "分享",
"translate": null,
"type": "share"
}
],
"title": "思路清晰!野榜哥化身残局大师拿下关键1v4!助力A队杀入淘汰赛!",
"tname": "网络游戏",
"translate_status": "",
"translated_title": "",
"ugc_pay": 0,
"uri": "bilibili://video/117108843286973?cid=40980778298&history_progress=0&player_height=1080&player_preload=%7B%22expire_time%22%3A1787221895%2C%22cid%22%3A40980778298%2C%22quality%22%3A16%2C%22url%22%3A%22http%3A%2F%2Fupos-sz-mirrorcosov.bilivideo.com%2Fupgcxcode%2F98%2F82%2F40980778298%2F40980778298-1-16.mp4%3Fe%3Dig8euxZM2rNcNbRVhwdVhwdlhWdVhwdVhoNvNC8BqJIzNbfqXBvEuENvNC8aNEVEtEvE9IMvXBvE2ENvNCImNEVEIj0Y2J_aug859r1qXg8xNEVE5XREto8GuFGv2U7SuxI72X6fTr859IB_%5Cu0026uipk%3D5%5Cu0026oi%3D1075282217%5Cu0026platform%3Dandroid%5Cu0026trid%3D0e8cf795e3774478bbe2a44551e3388U%5Cu0026gen%3Dplayurlv3%5Cu0026o…",
"videos": 1,
"view_content": "10.1万",
"view_self_type": 0
},
{
"author": "AYCS2",
"bvid": "BV184bR65ECj",
"cover": "http://i0.hdslb.com/bfs/archive/da1a865a974d5f63a581985973439fdba001c210.jpg",
"cover_icon": "",
"cover_left_icon": "",
"cover_left_text": "",
"ctime": 1786892878,
"danmaku": 283,
"duration": 184,
"first_cid": 40971340002,
"goto": "av",
"icon_type": 0,
"is_cooperation": false,
"is_fold": false,
"is_live_playback": false,
"is_oneself": false,
"is_pgc": false,
"is_popular": false,
"is_pugv": false,
"is_steins": false,
"is_ugcpay": false,
"length": "",
"param": "117105789768131",
"play": 215639,
"publish_time_text": "8月16日",
"state": false,
"sub_title_icon": "",
"subtitle": "",
"three_point": [
{
"icon": "https://i0.hdslb.com/bfs/activity-plat/static/0X5s0d3xaY.png",
"text": "添加至稍后再看",
"translate": null,
"type": "addtoview"
},
{
"icon": "https://i0.hdslb.com/bfs/activity-plat/static/EtmLXpmBLI.png",
"share_fail_toast": "分享失败",
"share_path": "pages/video/video?avid=117105789768131",
"share_subtitle": "已观看21.6万次",
"share_succ_toast": "分享成功",
"short_link": "https://b23.tv/BV184bR65ECj",
"text": "分享",
"translate": null,
"type": "share"
}
],
"title": "无情碾压!Zywoo残血暴力点头1v3!全图2.17Rating助力小蜜蜂挺进淘汰赛!",
"tname": "网络游戏",
"translate_status": "",
"translated_title": "",
"ugc_pay": 0,
"uri": "bilibili://video/117105789768131?cid=40971340002&history_progress=0&player_height=1080&player_preload=%7B%22expire_time%22%3A1787221895%2C%22cid%22%3A40971340002%2C%22quality%22%3A16%2C%22url%22%3A%22http%3A%2F%2Fupos-sz-mirrorcosov.bilivideo.com%2Fupgcxcode%2F02%2F00%2F40971340002%2F40971340002_qe1-1-16.mp4%3Fe%3Dig8euxZM2rNcNbRVhwdVhwdlhWdVhwdVhoNvNC8BqJIzNbfqXBvEuENvNC8aNEVEtEvE9IMvXBvE2ENvNCImNEVEIj0Y2J_aug859r1qXg8xNEVE5XREto8GuFGv2U7SuxI72X6fTr859IB_%5Cu0026gen%3Dplayurlv3%5Cu0026os%3Dcosovbv%5Cu0026og%3Dhw%5Cu0026platform%3Dandroid%5Cu0026deadline%3D1787225495%5Cu0026nbs%3D1%5Cu0026uipk…",
"videos": 1,
"view_content": "21.6万",
"view_self_type": 0
},
"… 17 more items in the full response"
],
"order": [
{
"title": "最新发布",
"value": "pubdate"
},
{
"title": "最多播放",
"value": "click"
}
]
},
"message": "OK",
"ttl": 1
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Bilibili User VideosAPI này Bilibili | $0.001 mỗi lần gọi | JSON |
Bilibili | $0.001 mỗi lần gọi | JSON |
Bilibili | $0.001 mỗi lần gọi | JSON |
Bilibili | $0.001 mỗi lần gọi | JSON |
Bilibili | $0.001 mỗi lần gọi | JSON |
Bilibili | $0.001 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/bilibili/app/user-videos với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: user_id (string). Tùy chọn: page (integer), post_filter (string) và ps (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Bilibili User Videos chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Bilibili.