keywordstringbắt buộc
Search keyword (required)
https://api.sandbase.ai/v1/api/bilibili/app/search-allReturns comprehensive search results across Bilibili content via the mobile app interface. Filters results by search keyword, sorting order, and pagination parameters.
[
{
"data": {
"code": 0,
"data": {
"annotation": {
"qv_id": "1ffbef3533f64500aa43bd5dbbbee3e1"
},
"item": [
{
"goto": "collection_card",
"linktype": "collection_card",
"param": "2135786",
"position": 1,
"trackid": "13280383690127849324",
"uri": "bilibili://video/881820095?auto_float_layer=3&trackid=13280383690127849324",
"user_act": "{\"id\":2135786,\"type\":\"collection_card\"}"
},
{
"av": {
"author": "费曼学AI",
"cover": "https://i0.hdslb.com/bfs/archive/f9e5097882bc28319bb398e2f66f6ebd8c143ea9.jpg",
"duration": "9:49",
"face": "https://i1.hdslb.com/bfs/face/b8f0438223cd36266b11eb566239878c29c253c2.jpg",
"mid": "3706955411490829",
"play": 214,
"ptime": "1787106713",
"show_card_desc_2": "· 昨天 10:31",
"title": "AI 偷了你家,又来给你家装防盗门,<em class=\"keyword\">OpenAI</em> 总裁 Brockman 亲测:15 分钟查出 13 个漏洞,1 小时全部修完|费曼学AI EP.56",
"view_content": "214"
},
"goto": "av",
"linktype": "video",
"param": "117119798740961",
"position": 2,
"trackid": "13280383690127849324",
"uri": "bilibili://video/117119798740961?cid=41049001131&history_progress=0&player_height=1080&player_preload=%7B%22expire_time%22%3A1787221883%2C%22cid%22%3A41049001131%2C%22quality%22%3A16%2C%22file_info%22%3A%7B%2216%22%3A%7B%22infos%22%3A%5B%7B%22filesize%22%3A7627596%2C%22timelength%22%3A588757%7D%5D%7D%7D%2C%22video_codecid%22%3A7%2C%22video_project%22%3Atrue%2C%22url%22%3A%22http%3A%2F%2Fupos-hz-mirrorakam.akamaized.net%2Fupgcxcode%2F31%2F11%2F41049001131%2F41049001131-1-16.mp4%3Fe%3Dig8euxZM2rNcNbRVhwdVhwdlhWdVhwdVhoNvNC8BqJIzNbfqXBvEuENvNC8aNEVEtEvE9IMvXBvE2ENvNCImNEVEIj0Y2J_aug859r1qXg8xNEVE…",
"user_act": "{\"id\":117119798740961,\"type\":\"video\"}"
},
{
"goto": "article_new_p",
"linktype": "article",
"param": "49234017",
"position": 3,
"trackid": "13280383690127849324",
"uri": "bilibili://opus/detail/49234017?opus_type=article&trackid=13280383690127849324",
"user_act": "{\"id\":49234017,\"type\":\"article\"}"
},
"… 17 more items in the full response"
],
"keyword": "OpenAI",
"nav": [
{
"pages": 7
},
{
"pages": 4,
"total": "3"
},
{
"pages": 2,
"total": "4"
},
"… 2 more items in the full response"
],
"page": "1",
"pagination": {
"next": "CAISIDFmZmJlZjM1MzNmNjQ1MDBhYTQzYmQ1ZGJiYmVlM2Ux"
},
"trackid": "13280383690127849324"
},
"message": "success"
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Search Bilibili by keyword across all result types at once, the same mixed list the Bilibili app shows: videos, users, live rooms, bangumi and topics, with cursor paging.
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/app/search-all" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "OpenAI"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword (required) |
cursor | string | No | Pagination cursor. Leave empty for the first page; for the next page pass |
order | integer | No | Sort order (0=comprehensive) |
page_size | integer | No | Results per page |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"annotation": {
"qv_id": "e9f7f7fb7ae849f1b103a7f2a59ebbdc"
},
"item": [
{
"av": {
"author": "深圳卫视科创最前沿",
"cover": "https://i0.hdslb.com/bfs/archive/0c5051baa569f3e2c742b4f6a6ad5a8b18bfc0f7.jpg",
"danmaku": 1,
"duration": "1:30",
"face": "https://i0.hdslb.com/bfs/face/aaaa766a2817d5946a8f64ba53bc72651d7b6b36.jpg",
"mid": "1173642672",
"play": 10891,
"ptime": "1793191441"
},
"goto": "av",
"linktype": "video",
"param": "117518576392229",
"position": 1,
"trackid": "9528089372420496240",
"uri": "bilibili://video/117518576392229?cid=43128062303&history_progress=0&player_heigh…",
"user_act": "{\"id\":117518576392229,\"type\":\"video\"}"
}
],
"keyword": "OpenAI",
"nav": [
{
"pages": 7
}
],
"page": "1",
"pagination": {
"next": "CAISIGU5ZjdmN2ZiN2FlODQ5ZjFiMTAzYTdmMmE1OWViYmRj"
},
"trackid": "9528089372420496240"
},
"message": "success"
}
| Field | Meaning |
|---|---|
data.item[] | Mixed results; linktype tells the type (video, bili_user, live ...). Video rows carry av.author, av.play, av.danmaku, av.duration, av.ptime. |
data.nav[].pages | Pages available. |
data.pagination.next | Cursor for the next page; pass it as cursor. |
$0.001 per successful call. Failed calls, including lookups whose target does not exist, 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/search-all" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"order": 0,
"cursor": "",
"keyword": "OpenAI",
"page_size": 20
}'Đặ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.
keywordstringbắt buộcSearch keyword (required)
cursorstringPagination cursor. Leave empty for the first page; for the next page pass
Mặc định: ""
orderintegerSort order (0=comprehensive)
Mặc định: 0
page_sizeintegerResults per page
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": {
"annotation": {
"qv_id": "1ffbef3533f64500aa43bd5dbbbee3e1"
},
"item": [
{
"goto": "collection_card",
"linktype": "collection_card",
"param": "2135786",
"position": 1,
"trackid": "13280383690127849324",
"uri": "bilibili://video/881820095?auto_float_layer=3&trackid=13280383690127849324",
"user_act": "{\"id\":2135786,\"type\":\"collection_card\"}"
},
{
"av": {
"author": "费曼学AI",
"cover": "https://i0.hdslb.com/bfs/archive/f9e5097882bc28319bb398e2f66f6ebd8c143ea9.jpg",
"duration": "9:49",
"face": "https://i1.hdslb.com/bfs/face/b8f0438223cd36266b11eb566239878c29c253c2.jpg",
"mid": "3706955411490829",
"play": 214,
"ptime": "1787106713",
"show_card_desc_2": "· 昨天 10:31",
"title": "AI 偷了你家,又来给你家装防盗门,<em class=\"keyword\">OpenAI</em> 总裁 Brockman 亲测:15 分钟查出 13 个漏洞,1 小时全部修完|费曼学AI EP.56",
"view_content": "214"
},
"goto": "av",
"linktype": "video",
"param": "117119798740961",
"position": 2,
"trackid": "13280383690127849324",
"uri": "bilibili://video/117119798740961?cid=41049001131&history_progress=0&player_height=1080&player_preload=%7B%22expire_time%22%3A1787221883%2C%22cid%22%3A41049001131%2C%22quality%22%3A16%2C%22file_info%22%3A%7B%2216%22%3A%7B%22infos%22%3A%5B%7B%22filesize%22%3A7627596%2C%22timelength%22%3A588757%7D%5D%7D%7D%2C%22video_codecid%22%3A7%2C%22video_project%22%3Atrue%2C%22url%22%3A%22http%3A%2F%2Fupos-hz-mirrorakam.akamaized.net%2Fupgcxcode%2F31%2F11%2F41049001131%2F41049001131-1-16.mp4%3Fe%3Dig8euxZM2rNcNbRVhwdVhwdlhWdVhwdVhoNvNC8BqJIzNbfqXBvEuENvNC8aNEVEtEvE9IMvXBvE2ENvNCImNEVEIj0Y2J_aug859r1qXg8xNEVE…",
"user_act": "{\"id\":117119798740961,\"type\":\"video\"}"
},
{
"goto": "article_new_p",
"linktype": "article",
"param": "49234017",
"position": 3,
"trackid": "13280383690127849324",
"uri": "bilibili://opus/detail/49234017?opus_type=article&trackid=13280383690127849324",
"user_act": "{\"id\":49234017,\"type\":\"article\"}"
},
"… 17 more items in the full response"
],
"keyword": "OpenAI",
"nav": [
{
"pages": 7
},
{
"pages": 4,
"total": "3"
},
{
"pages": 2,
"total": "4"
},
"… 2 more items in the full response"
],
"page": "1",
"pagination": {
"next": "CAISIDFmZmJlZjM1MzNmNjQ1MDBhYTQzYmQ1ZGJiYmVlM2Ux"
},
"trackid": "13280383690127849324"
},
"message": "success"
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Bilibili App Search AllAPI 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/search-all 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. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.
Bắt buộc: keyword (string). Tùy chọn: cursor (string), order (integer) và page_size (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 App Search All 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.