视频详情
检索由BVID标识的哔哩哔哩视频详情。用于查找已知视频以进行内容审核、编目或后续互动分析。
参数
| 参数 | 必填 | 类型 | 说明 | 示例 | 可选值 |
|---|---|---|---|---|---|
bvid |
必填 | string | 哔哩哔哩 视频 ID (BVID)。 | BV1GJ411x7h7 |
— |
代码示例
curl -G "https://api.mofa-ai.com/v1/bilibili/get_video_detail_v2" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'bvid=BV1GJ411x7h7'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/bilibili/get_video_detail_v2",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"bvid": "BV1GJ411x7h7",
},
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/get_video_detail_v2");
url.search = new URLSearchParams({
bvid: "BV1GJ411x7h7",
});
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);
在线试用
登录后可以在这里直接调用此接口,按价格从余额扣费,失败不收费。新账户赠送 $0.50 试用额度。
响应示例
采集于 2026-11-07,耗时 1876 ms · 请求参数 {"bvid": "BV1GJ411x7h7"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "bilibili.get_video_detail_v2",
"cost_usd": 0.02,
"data": {
"code": 0,
"data": {
"…": "+42",
"lang": "zh-Hans",
"error": {},
"inWechat": false,
"ipRegion": "CN",
"isClient": false,
"isModern": true,
"videoToy": null,
"channelKv": [
{
"sub": [
{
"tid": 2096,
"url": "",
"name": "AI学习",
"tkey": "CommonChannel:aiTutorial",
"route": "tutorial",
"subChannelId": 250001
},
"… +2"
],
"tid": 1011,
"url": "//www.bilibili.com/c/ai/",
"icon": "homeicon/ai/1",
"name": "人工智能",
"tkey": "CommonChannel:ai",
"route": "ai",
"config": {
"enableSub": 0
},
"channelId": 25
},
"… +30"
],
"isPrVideo": false,
"pageTheme": "light",
"urlRuleKv": {
"blacklist": {
"rex": [],
"domain": []
},
"whitelist": {
"rex": [],
"domain": [
"bilibili.com",
"… +9"
]
}
},
"isOverseas": false,
"legalRegion": "",
"spmidPrefix": "333.788",
"videoToyAid": 0,
"defaultWbiKey": {
"wbiImgKey": "2590160e9f5142d4a501feda0490f3bd",
"wbiSubKey": "34ba9c5c4a824b368e9c053be34016bd"
},
"promoBannerKv": {
"common": null,
"huasheng": {
"img": "https://i0.hdslb.com/bfs/activity-plat/static/12129/20260806…",
"url": "https://www.huasheng.cn/?jumpfrom=player",
"desc": "输入文案一键成片,人人都能做视频",
"title": "花生AI也能做同款",
"small_img": "https://i0.hdslb.com/bfs/activity-plat/static/12129/20260804…"
}
},
"videoToyReadySequence": 0,
"customInteractiveLayerKv": {},
"customInteractiveLayerKvReadySequence": 0
},
"message": null,
"requestId": "7272231f23d24fed927723be505c8181",
"recordTime": "2026-11-08T07:58:01.935602443",
"requestParams": {
"body": null,
"query": {
"bvid": "BV1GJ411x7h7"
}
}
}
}