keywordstring必填
Search keyword
https://api.sandbase.ai/v1/api/bilibili/web/general-searchReturns search results from Bilibili based on a search keyword, with sorting options and filters for duration and publication date range.
[
{
"data": {
"code": 0,
"data": {
"egg_hit": 0,
"exp_list": {
"5500": true,
"6699": true,
"100010": true
},
"in_black_key": 0,
"in_white_key": 0,
"is_hit_web_inf": false,
"next": 2,
"numPages": 50,
"numResults": 1000,
"page": 1,
"pagesize": 20,
"result": [
{
"aid": 117119849207767,
"arcurl": "http://www.bilibili.com/video/av117119849207767",
"area": 0,
"author": "韭龄厚财经",
"badgepay": false,
"biz_data": null,
"bvid": "BV19z8j61ExE",
"card_status": 0,
"cate_name": "",
"cny_flag": 0,
"corner": "",
"cover": "",
"danmaku": 1,
"desc": "",
"description": "",
"duration": "5:37",
"enable_vt": 0,
"episode_count_text": "",
"favorites": 5,
"hit_columns": [
"title"
],
"id": 117119849207767,
"is_charge_video": 0,
"is_intervene": 0,
"is_live_room_inline": 0,
"is_pay": 0,
"is_union_video": 0,
"like": 19,
"live_status": 0,
"live_time": "",
"mid": 351869170,
"new_rec_tags": [],
"online": 0,
"parent_area_id": 0,
"parent_area_name": "",
"pic": "//i1.hdslb.com/bfs/archive/1f3260372779b35cd7b2b1607022ad05db6b031a.jpg",
"play": 1224,
"pubdate": 1787107352,
"rank_index": 1,
"rank_offset": 1,
"rec_reason": "",
"rec_tags": null,
"release_status": 0,
"review": 1,
"roomid": 0,
"senddate": 1787107392,
"short_id": 0,
"spread_id": 0,
"style": 0,
"subtitle": "",
"tag": "AI,人工智能,CPU,硬件,美债,AI芯片,Intel,芯片,刀子,GPU",
"tags": "",
"title": "昨晚AI突然被血洗:真正可怕的不是美债,而是<em class=\"keyword\">OpenAI</em>盘后又递的刀子",
"type": "video",
"typeid": "231",
"typename": "计算机技术",
"uface": "",
"uid": 0,
"uname": "",
"upic": "https://i1.hdslb.com/bfs/face/e017d72e838a04d8143056efddf2194255951cd1.jpg",
"url": "",
"user_cover": "",
"video_review": 1,
"view_type": "",
"vt": 0,
"vt_display": "",
"watched_show": null
},
{
"aid": 117119630969063,
"arcurl": "http://www.bilibili.com/video/av117119630969063",
"area": 0,
"author": "橘鸦Juya",
"badgepay": false,
"biz_data": null,
"bvid": "BV1SW876yE91",
"card_status": 0,
"cate_name": "",
"cny_flag": 0,
"corner": "",
"cover": "",
"danmaku": 40,
"desc": "",
"description": "",
"duration": "5:30",
"enable_vt": 0,
"episode_count_text": "",
"favorites": 150,
"hit_columns": [
"title"
],
"id": 117119630969063,
"is_charge_video": 0,
"is_intervene": 0,
"is_live_room_inline": 0,
"is_pay": 0,
"is_union_video": 1,
"like": 1155,
"live_status": 0,
"live_time": "",
"mid": 285286947,
"new_rec_tags": [],
"online": 0,
"parent_area_id": 0,
"parent_area_name": "",
"pic": "//i0.hdslb.com/bfs/archive/6b76a11d9952c450b10d3d410b030c3ef1ea5e29.jpg",
"play": 46987,
"pubdate": 1787104277,
"rank_index": 2,
"rank_offset": 2,
"rec_reason": "",
"rec_tags": null,
"release_status": 0,
"review": 825,
"roomid": 0,
"senddate": 1787104279,
"short_id": 0,
"spread_id": 0,
"style": 0,
"subtitle": "",
"tag": "AI,人工智能,AI IN ALL!,LLM,大模型",
"tags": "",
"title": "<em class=\"keyword\">OpenAI</em> 宣布放缓前沿模型训练;GLM-5.3 上线 API;Claude Code 周限提升50%活动延长【AI 早报 2026-08-19】",
"type": "video",
"typeid": "231",
"typename": "计算机技术",
"uface": "",
"uid": 0,
"uname": "",
"upic": "https://i0.hdslb.com/bfs/face/afa12816f678f482a7333289d82437208b8d8cbf.jpg",
"url": "",
"user_cover": "",
"video_review": 40,
"view_type": "",
"vt": 0,
"vt_display": "",
"watched_show": null
},
{
"aid": 117117533887369,
"arcurl": "http://www.bilibili.com/video/av117117533887369",
"area": 0,
"author": "进化中的阿陈",
"badgepay": false,
"biz_data": null,
"bvid": "BV1Qo8V6iEmp",
"card_status": 0,
"cate_name": "",
"cny_flag": 0,
"corner": "",
"cover": "",
"danmaku": 1,
"desc": "",
"description": "本周 AI 圈真的连台大戏停不下来!Anthropic 服务器刚宕机,OpenAI 官方就密集爆料下代旗舰大模型“Astra”(代号 GPT-6),最快本月底前就可能直接亮相,同时 Codex 解锁 100 万超长上下文!另外 Cursor 突然上线代码托管平台直接偷家 GitHub,DeepSeek V5 与阿里千问 Qwen 3.8 27B 开源小钢炮也有重磅新动作!信息量彻底拉满,带大家一期全看懂!",
"duration": "5:27",
"enable_vt": 0,
"episode_count_text": "",
"favorites": 5,
"hit_columns": [
"title",
"description",
"tag"
],
"id": 117117533887369,
"is_charge_video": 0,
"is_intervene": 0,
"is_live_room_inline": 0,
"is_pay": 0,
"is_union_video": 0,
"like": 14,
"live_status": 0,
"live_time": "",
"mid": 2070038273,
"new_rec_tags": [],
"online": 0,
"parent_area_id": 0,
"parent_area_name": "",
"pic": "//i1.hdslb.com/bfs/archive/a4f1c2ed4f2928456a9776c15b32394818897e12.jpg",
"play": 3000,
"pubdate": 1787071907,
"rank_index": 3,
"rank_offset": 3,
"rec_reason": "",
"rec_tags": null,
"release_status": 0,
"review": 6,
"roomid": 0,
"senddate": 1787071908,
"short_id": 0,
"spread_id": 0,
"style": 0,
"subtitle": "",
"tag": "AI,人工智能,评测,模型,B站AI创造公开赛,ai资讯,claude,OpenAI,资讯",
"tags": "",
"title": "<em class=\"keyword\">OpenAI</em>这波连下代大招都端出来了?GPT-6 Astra突击曝光,本期AI资讯大放送!",
"type": "video",
"typeid": "230",
"typename": "软件应用",
"uface": "",
"uid": 0,
"uname": "",
"upic": "https://i2.hdslb.com/bfs/face/c50f4823f9ebe0e137ff478414f383c8e733216d.jpg",
"url": "",
"user_cover": "",
"video_review": 1,
"view_type": "",
"vt": 0,
"vt_display": "",
"watched_show": null
},
"… 17 more items in the full response"
],
"rqt_type": "search",
"seid": "8338206645252550230",
"show_column": 0,
"suggest_keyword": ""
},
"message": "OK",
"ttl": 1
}
}
]選擇一個範例,將其輸入與結果載入 playground。
Returns a page of Bilibili video search results for a search keyword. Each result carries the video title fields, author, play and like counts, and publish time. You can sort the results and filter them by duration and publication date range.
OpenAI on Bilibili.author, mid) posting about a keyword.play, like and favorites across videos to find the most watched content on a topic.bvid values to feed into video detail or comment lookups.curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/general-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "OpenAI", "order": "totalrank", "page": 1, "page_size": 20}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword |
order | string | Yes | Order method |
page | integer | Yes | Page number |
page_size | integer | Yes | Number per page |
duration | integer | No | Duration filter |
pubtime_begin_s | integer | No | Start date, 10-digit timestamp, must be less than end date |
pubtime_end_s | integer | No | End date, 10-digit timestamp, must be greater than start date |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"egg_hit": 0,
"exp_list": {
"100010": true,
"5500": true,
"6699": true
},
"in_black_key": 0,
"in_white_key": 0,
"is_hit_web_inf": false,
"next": 2,
"numPages": 50,
"numResults": 1000,
"page": 1,
"pagesize": 20,
"result": [
{
"aid": 117541628284069,
"arcurl": "http://www.bilibili.com/video/av117541628284069",
"area": 0,
"author": "产品君",
"badgepay": false,
"biz_data": null,
"bvid": "BV1Saxb6PEhv",
"card_status": 0,
"cate_name": "",
"cny_flag": 0,
"corner": "",
"cover": ""
}
],
"rqt_type": "search"
},
"message": "OK",
"ttl": 1
}
| Field | Meaning |
|---|---|
data.result[] | List of matching videos on the requested page, in ranked order. |
data.result[].bvid / data.result[].aid | The video's BV ID and numeric AID. arcurl holds the video page link built from the AID. |
data.result[].author / data.result[].mid | Name and numeric ID of the user who posted the video. |
data.result[].description | Video description text. Long text is cut and ends with an ellipsis. |
data.result[].play / data.result[].like / data.result[].favorites / data.result[].danmaku | View, like, favorite and danmaku (on-screen comment) counts for the video. |
data.result[].duration | Video length as a string such as 3:24. |
data.result[].pubdate | Publish time as a 10-digit Unix timestamp. |
data.result[].rank_index | Position of the video in the result list, starting at 1. |
data.result[].hit_columns | Parts of the video that matched the keyword, such as title, description or tag. |
data.numResults / data.numPages | Total number of matching results and total number of pages for the current page_size. |
data.page / data.pagesize / data.next | Current page number, page size, and the next page number. |
page and page_size to move through results. Use the data.next value as the next page.pubtime_begin_s and pubtime_end_s take 10-digit timestamps, the same format as pubdate. The end value must be greater than the start value.bvid from the results with Bilibili Video Details to get more about a single video.mid with Bilibili User Profile to look up a creator.$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/bilibili/web/general-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"order": "totalrank",
"keyword": "OpenAI",
"duration": 0,
"page_size": 20,
"pubtime_end_s": 0,
"pubtime_begin_s": 0
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
keywordstring必填Search keyword
orderstring必填Order method
pageinteger必填Page number
page_sizeinteger必填Number per page
durationintegerDuration filter
預設:0
pubtime_begin_sintegerStart date, 10-digit timestamp, must be less than end date
預設:0
pubtime_end_sintegerEnd date, 10-digit timestamp, must be greater than start date
預設:0
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
[
{
"data": {
"code": 0,
"data": {
"egg_hit": 0,
"exp_list": {
"5500": true,
"6699": true,
"100010": true
},
"in_black_key": 0,
"in_white_key": 0,
"is_hit_web_inf": false,
"next": 2,
"numPages": 50,
"numResults": 1000,
"page": 1,
"pagesize": 20,
"result": [
{
"aid": 117119849207767,
"arcurl": "http://www.bilibili.com/video/av117119849207767",
"area": 0,
"author": "韭龄厚财经",
"badgepay": false,
"biz_data": null,
"bvid": "BV19z8j61ExE",
"card_status": 0,
"cate_name": "",
"cny_flag": 0,
"corner": "",
"cover": "",
"danmaku": 1,
"desc": "",
"description": "",
"duration": "5:37",
"enable_vt": 0,
"episode_count_text": "",
"favorites": 5,
"hit_columns": [
"title"
],
"id": 117119849207767,
"is_charge_video": 0,
"is_intervene": 0,
"is_live_room_inline": 0,
"is_pay": 0,
"is_union_video": 0,
"like": 19,
"live_status": 0,
"live_time": "",
"mid": 351869170,
"new_rec_tags": [],
"online": 0,
"parent_area_id": 0,
"parent_area_name": "",
"pic": "//i1.hdslb.com/bfs/archive/1f3260372779b35cd7b2b1607022ad05db6b031a.jpg",
"play": 1224,
"pubdate": 1787107352,
"rank_index": 1,
"rank_offset": 1,
"rec_reason": "",
"rec_tags": null,
"release_status": 0,
"review": 1,
"roomid": 0,
"senddate": 1787107392,
"short_id": 0,
"spread_id": 0,
"style": 0,
"subtitle": "",
"tag": "AI,人工智能,CPU,硬件,美债,AI芯片,Intel,芯片,刀子,GPU",
"tags": "",
"title": "昨晚AI突然被血洗:真正可怕的不是美债,而是<em class=\"keyword\">OpenAI</em>盘后又递的刀子",
"type": "video",
"typeid": "231",
"typename": "计算机技术",
"uface": "",
"uid": 0,
"uname": "",
"upic": "https://i1.hdslb.com/bfs/face/e017d72e838a04d8143056efddf2194255951cd1.jpg",
"url": "",
"user_cover": "",
"video_review": 1,
"view_type": "",
"vt": 0,
"vt_display": "",
"watched_show": null
},
{
"aid": 117119630969063,
"arcurl": "http://www.bilibili.com/video/av117119630969063",
"area": 0,
"author": "橘鸦Juya",
"badgepay": false,
"biz_data": null,
"bvid": "BV1SW876yE91",
"card_status": 0,
"cate_name": "",
"cny_flag": 0,
"corner": "",
"cover": "",
"danmaku": 40,
"desc": "",
"description": "",
"duration": "5:30",
"enable_vt": 0,
"episode_count_text": "",
"favorites": 150,
"hit_columns": [
"title"
],
"id": 117119630969063,
"is_charge_video": 0,
"is_intervene": 0,
"is_live_room_inline": 0,
"is_pay": 0,
"is_union_video": 1,
"like": 1155,
"live_status": 0,
"live_time": "",
"mid": 285286947,
"new_rec_tags": [],
"online": 0,
"parent_area_id": 0,
"parent_area_name": "",
"pic": "//i0.hdslb.com/bfs/archive/6b76a11d9952c450b10d3d410b030c3ef1ea5e29.jpg",
"play": 46987,
"pubdate": 1787104277,
"rank_index": 2,
"rank_offset": 2,
"rec_reason": "",
"rec_tags": null,
"release_status": 0,
"review": 825,
"roomid": 0,
"senddate": 1787104279,
"short_id": 0,
"spread_id": 0,
"style": 0,
"subtitle": "",
"tag": "AI,人工智能,AI IN ALL!,LLM,大模型",
"tags": "",
"title": "<em class=\"keyword\">OpenAI</em> 宣布放缓前沿模型训练;GLM-5.3 上线 API;Claude Code 周限提升50%活动延长【AI 早报 2026-08-19】",
"type": "video",
"typeid": "231",
"typename": "计算机技术",
"uface": "",
"uid": 0,
"uname": "",
"upic": "https://i0.hdslb.com/bfs/face/afa12816f678f482a7333289d82437208b8d8cbf.jpg",
"url": "",
"user_cover": "",
"video_review": 40,
"view_type": "",
"vt": 0,
"vt_display": "",
"watched_show": null
},
{
"aid": 117117533887369,
"arcurl": "http://www.bilibili.com/video/av117117533887369",
"area": 0,
"author": "进化中的阿陈",
"badgepay": false,
"biz_data": null,
"bvid": "BV1Qo8V6iEmp",
"card_status": 0,
"cate_name": "",
"cny_flag": 0,
"corner": "",
"cover": "",
"danmaku": 1,
"desc": "",
"description": "本周 AI 圈真的连台大戏停不下来!Anthropic 服务器刚宕机,OpenAI 官方就密集爆料下代旗舰大模型“Astra”(代号 GPT-6),最快本月底前就可能直接亮相,同时 Codex 解锁 100 万超长上下文!另外 Cursor 突然上线代码托管平台直接偷家 GitHub,DeepSeek V5 与阿里千问 Qwen 3.8 27B 开源小钢炮也有重磅新动作!信息量彻底拉满,带大家一期全看懂!",
"duration": "5:27",
"enable_vt": 0,
"episode_count_text": "",
"favorites": 5,
"hit_columns": [
"title",
"description",
"tag"
],
"id": 117117533887369,
"is_charge_video": 0,
"is_intervene": 0,
"is_live_room_inline": 0,
"is_pay": 0,
"is_union_video": 0,
"like": 14,
"live_status": 0,
"live_time": "",
"mid": 2070038273,
"new_rec_tags": [],
"online": 0,
"parent_area_id": 0,
"parent_area_name": "",
"pic": "//i1.hdslb.com/bfs/archive/a4f1c2ed4f2928456a9776c15b32394818897e12.jpg",
"play": 3000,
"pubdate": 1787071907,
"rank_index": 3,
"rank_offset": 3,
"rec_reason": "",
"rec_tags": null,
"release_status": 0,
"review": 6,
"roomid": 0,
"senddate": 1787071908,
"short_id": 0,
"spread_id": 0,
"style": 0,
"subtitle": "",
"tag": "AI,人工智能,评测,模型,B站AI创造公开赛,ai资讯,claude,OpenAI,资讯",
"tags": "",
"title": "<em class=\"keyword\">OpenAI</em>这波连下代大招都端出来了?GPT-6 Astra突击曝光,本期AI资讯大放送!",
"type": "video",
"typeid": "230",
"typename": "软件应用",
"uface": "",
"uid": 0,
"uname": "",
"upic": "https://i2.hdslb.com/bfs/face/c50f4823f9ebe0e137ff478414f383c8e733216d.jpg",
"url": "",
"user_cover": "",
"video_review": 1,
"view_type": "",
"vt": 0,
"vt_display": "",
"watched_show": null
},
"… 17 more items in the full response"
],
"rqt_type": "search",
"seid": "8338206645252550230",
"show_column": 0,
"suggest_keyword": ""
},
"message": "OK",
"ttl": 1
}
}
]探索更多
| API | 價格 | 回應 |
|---|---|---|
Bilibili | 每次呼叫 $0.001 | 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/web/general-search。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.001。每個組織每個 UTC 日可免費呼叫 100 次,並可在包含此 API 在內的所有符合資格之 SandBase APIs 間共用;超過後,每次呼叫都會從您的 SandBase 餘額中以此價格計費。沒有訂閱方案。
必要:keyword (string), order (string), page (integer) 和 page_size (integer)。 選填:duration (integer), pubtime_begin_s (integer) 和 pubtime_end_s (integer)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Bilibili Web General Search 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Bilibili API 存取權。