Bilibili Video Search
Searches Bilibili videos by keyword with page-based pagination and sorting by general ranking, play count, publish time, danmaku count, or favorites. Use it to support content discovery, topic research, or ranking-focused searches.
/v1/bilibili/search_video_v2
$0.02
- Price
- $0.02 per successful call, Failed calls are free
- Endpoint ID
bilibili.search_video_v2
Parameters
-
keywordstring RequiredSearch keyword.
Example
咖啡 -
pagestring OptionalPage number for pagination.
Example
1 -
orderstring OptionalSorting criteria for search results.
Available Values:
general: Generalclick: Most Playedpubdate: Latestdm: Most Danmakustow: Most Favorite
Example
general
Code samples
curl -G "https://api.mofa-ai.com/v1/bilibili/search_video_v2" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'keyword=咖啡' \
--data-urlencode 'page=1' \
--data-urlencode 'order=general'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/bilibili/search_video_v2",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"keyword": "咖啡",
"page": "1",
"order": "general",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/bilibili/search_video_v2");
url.search = new URLSearchParams({
keyword: "咖啡",
page: "1",
order: "general",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
Example response
Request parameters {"page": "1", "order": "general", "keyword": "咖啡"}
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "bilibili.search_video_v2",
"cost_usd": 0.02,
"data": {
"code": 0,
"data": {
"ttl": 1,
"code": 0,
"data": {
"next": 2,
"page": 1,
"seid": "16495080494096664372",
"result": [
{
"id": 117506614237947,
"vt": 0,
"aid": 117506614237947,
"mid": 3546746294634777,
"pic": "//i2.hdslb.com/bfs/archive/c89d1d9352f28994bf176dbb02622bf892a8959e.jpg",
"tag": "射击游戏,FPS,三角洲行动,巴克什,吃鸡,三角洲",
"uid": 0,
"url": "",
"…": "+6",
"area": 0,
"bvid": "BV1FFnd6VEy4",
"desc": "",
"like": 478,
"play": 79175,
"tags": "",
"type": "video",
"upic": "https://i0.hdslb.com/bfs/face/dae915f521db7fe0dd54bbfda525cce41f049eb0.jpg",
"cover": "",
"style": 0,
"title": "军用炸药金<em class=\"keyword\">咖啡</em>价格疯涨做阵营任务的天塌了",
"uface": "",
"uname": "",
"arcurl": "http://www.bilibili.com/video/av117506614237947",
"author": "夏洛特游戏解说",
"corner": "",
"is_pay": 0,
"online": 0,
"review": 217,
"roomid": 0,
"typeid": "172",
"danmaku": 21,
"pubdate": 1793008921,
"badgepay": false,
"biz_data": null,
"duration": "0:55",
"rec_tags": null,
"senddate": 1793067202,
"short_id": 0,
"subtitle": "",
"typename": "手机游戏",
"cate_name": "",
"enable_vt": 0,
"favorites": 70,
"live_time": "",
"spread_id": 0,
"view_type": "",
"rank_index": 1,
"rec_reason": "",
"vt_display": "",
"description": "军用炸药金咖啡价格疯涨做阵营任务的天塌了",
"hit_columns": [
"title",
"description"
],
"live_status": 0,
"rank_offset": 1,
"is_intervene": 0,
"new_rec_tags": [],
"video_review": 21,
"is_union_video": 0,
"release_status": 0,
"is_charge_video": 0,
"episode_count_text": "",
"is_live_room_inline": 0
},
{
"id": 117575367265651,
"vt": 0,
"aid": 117575367265651,
"mid": 3744968759840347,
"pic": "//i0.hdslb.com/bfs/archive/861bdaa672cc4222ad4f1941088158f7956582e8.jpg",
"tag": "Vlog生活B面,生活记录,上班,咖啡,工作,上班族",
"uid": 0,
"url": "",
"…": "+6",
"area": 0,
"bvid": "BV1mM4n6rEiw",
"desc": "",
"like": 253,
"play": 2903,
"tags": "",
"type": "video",
"upic": "https://i1.hdslb.com/bfs/face/332230332925d8ae61d51f45e8720f2819557e7c.jpg",
"cover": "",
"style": 0,
"title": "不上班的<em class=\"keyword\">咖啡</em>☕️不好喝,<em class=\"keyword\">咖啡</em>就🉐配点糟心事",
"uface": "",
"uname": "",
"arcurl": "http://www.bilibili.com/video/av117575367265651",
"author": "广西凳子齐",
"corner": "",
"is_pay": 0,
"online": 0,
"review": 17,
"roomid": 0,
"typeid": "21",
"danmaku": 3,
"pubdate": 1794057872,
"badgepay": false,
"biz_data": null,
"duration": "0:32",
"rec_tags": null,
"senddate": 1794057873,
"short_id": 0,
"subtitle": "",
"typename": "日常",
"cate_name": "",
"enable_vt": 0,
"favorites": 13,
"live_time": "",
"spread_id": 0,
"view_type": "",
"rank_index": 2,
"rec_reason": "",
"vt_display": "",
"description": "-",
"hit_columns": [
"title",
"tag"
],
"live_status": 0,
"rank_offset": 2,
"is_intervene": 0,
"new_rec_tags": [],
"video_review": 3,
"is_union_video": 0,
"release_status": 0,
"is_charge_video": 0,
"episode_count_text": "",
"is_live_room_inline": 0
},
"… +18"
],
"egg_hit": 0,
"exp_list": {
"5504": true,
"6605": true,
"9902": true,
"9924": true,
"9931": true,
"9947": true,
"9961": true,
"9980": true,
"100010": true,
"105208": true,
"106002": true,
"55020102": true,
"65785100": true,
"70529100": true,
"74580100": true,
"78772101": true,
"79251101": true,
"80394101": true,
"81174101": true,
"81242106": true,
"81701100": true,
"81989101": true,
"83187101": true,
"83750103": true,
"84109107": true,
"84707105": true,
"85126103": true,
"85679100": true,
"86745102": true,
"87269101": true,
"87318102": true,
"87363107": true,
"87616105": true,
"87875101": true,
"88126106": true,
"88321102": true,
"88888103": true,
"89246106": true,
"89418104": true,
"89692102": true,
"89757102": true,
"89766102": true,
"89799103": true,
"90045103": true
},
"numPages": 50,
"pagesize": 20,
"rqt_type": "search",
"numResults": 1000,
"show_column": 0,
"in_black_key": 0,
"in_white_key": 0,
"is_hit_web_inf": false,
"suggest_keyword": ""
},
"message": "OK"
},
"message": null,
"requestId": "35564b990eb5418985d6964d8d521485",
"recordTime": "2026-11-08T07:58:03.44703494",
"requestParams": {
"body": null,
"query": {
"page": "1",
"order": "general",
"keyword": "咖啡"
}
}
}
}
Try it
Sign in to call this endpoint from this page. Successful calls are billed to your balance, failed calls are free, and new accounts get $0.50 of trial credit.
More Bilibili endpoints
-
Video Details
$0.02Retrieves details for a Bilibili video identified by its BVID. Use it to look up a known video for content review, cataloging, or subsequent engagement analy…
/v1/bilibili/get_video_detail_v2
-
User Published Videos
$0.02Retrieves 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…
/v1/bilibili/get_user_video_list_v2
-
User Profile
$0.02Retrieves a Bilibili user profile identified by UID. Use it to look up a known account for creator research, profile review, or subsequent retrieval of that…
/v1/bilibili/get_user_detail_v2
-
Video Danmaku
$0.02Retrieves one page of danmaku comments for a Bilibili video segment identified by AID and CID. Use it to review time-synchronized audience reactions or page…
/v1/bilibili/get_video_danmu_v2
-
Video Comments
$0.02Retrieves comments for a Bilibili video identified by AID, with optional cursor pagination. Use it to review audience discussion, continue through comment pa…
/v1/bilibili/get_video_comment_v2
-
Share Link Resolution
$0.02Resolve a supported Bilibili short share link that targets a video and return its public redirect URL. Use it to expand video links before subsequent Bilibil…
/v1/bilibili/share_url_transfer_v1
-
User Relation Stats
$0.02Retrieves relation statistics for a Bilibili user identified by WMID. Use it to compare audience relationships across creator accounts or track relation-coun…
/v1/bilibili/get_user_relation_stat_v1
-
Video Captions
$0.02Retrieves caption data for a Bilibili video segment identified by BVID, AID, and CID. Use it to obtain subtitles for transcript extraction, accessibility rev…
/v1/bilibili/get_video_caption_v2