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.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform 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 key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
uidstringจำเป็นBilibili User ID (UID).
paramstringPagination parameter from previous response.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| 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 ไปที่ https://api.sandbase.ai/v1/api/bilibili/user-video-list โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.014286 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: uid (string). ตัวเลือก: param (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Bilibili User Published Videos ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Bilibili API แยกต่างหาก