一个轻量、开箱即用的 B 站视频信息查询接口:输入 **av 号 / BV 号 /b23.tv 短链接 / 完整视频页 URL** 中的任意一种,即可一键获取视频的基础信息、作者信息、播放数据统计,以及**真实可播放的高清 mp4 播放地址**。支持 GET / POST 双请求方式,返回标准 JSON,无需登录态即可使用。
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| url | string | 否 | B站url分享链接,如:b23.tv 短链、完整视频页 URL | https://b23.tv/wQtc0OJ |
| av | string | 否 | av 号,如 :av170001 | av170001 |
| bv | string | 否 | BV 号、纯数字 aid |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "url",
"type": "string",
"required": false,
"description": "B站url分享链接,如:b23.tv 短链、完整视频页 URL",
"example": "https://b23.tv/wQtc0OJ"
},
{
"name": "av",
"type": "string",
"required": false,
"description": "av 号,如 :av170001",
"example": "av170001"
},
{
"name": "bv",
"type": "string",
"required": false,
"description": "BV 号、纯数字 aid",
"example": ""
}
]
{
"openapi": "3.1.1",
"info": {
"title": "B 站视频信息查询",
"description": "一个轻量、开箱即用的 B 站视频信息查询接口:输入 **av 号 / BV 号 /b23.tv 短链接 / 完整视频页 URL** 中的任意一种,即可一键获取视频的基础信息、作者信息、播放数据统计,以及**真实可播放的高清 mp4 播放地址**。支持 GET / POST 双请求方式,返回标准 JSON,无需登录态即可使用。",
"version": "1.0.0"
},
"paths": {
"/v1/bilibili_video_api.php": {
"get": {
"summary": "B 站视频信息查询",
"description": "一个轻量、开箱即用的 B 站视频信息查询接口:输入 **av 号 / BV 号 /b23.tv 短链接 / 完整视频页 URL** 中的任意一种,即可一键获取视频的基础信息、作者信息、播放数据统计,以及**真实可播放的高清 mp4 播放地址**。支持 GET / POST 双请求方式,返回标准 JSON,无需登录态即可使用。",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "url",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "https://b23.tv/wQtc0OJ"
},
"description": "B站url分享链接,如:b23.tv 短链、完整视频页 URL"
},
{
"name": "av",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "av170001"
},
"description": "av 号,如 :av170001"
},
{
"name": "bv",
"in": "query",
"required": false,
"schema": {
"type": "string"
},
"description": "BV 号、纯数字 aid"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"summary": "B 站视频信息查询",
"description": "一个轻量、开箱即用的 B 站视频信息查询接口:输入 **av 号 / BV 号 /b23.tv 短链接 / 完整视频页 URL** 中的任意一种,即可一键获取视频的基础信息、作者信息、播放数据统计,以及**真实可播放的高清 mp4 播放地址**。支持 GET / POST 双请求方式,返回标准 JSON,无需登录态即可使用。",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "url",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "https://b23.tv/wQtc0OJ"
},
"description": "B站url分享链接,如:b23.tv 短链、完整视频页 URL"
},
{
"name": "av",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "av170001"
},
"description": "av 号,如 :av170001"
},
{
"name": "bv",
"in": "query",
"required": false,
"schema": {
"type": "string"
},
"description": "BV 号、纯数字 aid"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https://xiaoapi.cn",
"description": "当前访问入口(https)"
}
]
}
{
"code": 0,
"message": "success",
"data": {
"video": {
"aid": 116607271572785,
"bvid": "BV1JNLm6uEeG",
"title": "穿越到灵笼世界的韩立如何修仙【灵笼修仙传 其壹-其肆合集】",
"desc": "-",
"pic": "http://i2.hdslb.com/bfs/archive/c481c71009be6db748d3e2cc56b84ebafcab449f.jpg",
"duration": 1433,
"duration_text": "23:53",
"pubdate": 1779286106,
"pubdate_text": "2026-05-20 22:08:26",
"tid": 85,
"tname": "",
"copyright": 3,
"videos": 1,
"pages": [
{
"page": 1,
"part": "穿越到灵笼世界的韩立如何修仙【灵笼修仙传 其壹-其肆合集】",
"duration": 1433,
"duration_text": "23:53",
"cid": 38478613138
}
]
},
"author": {
"mid": 249295355,
"name": "么鸣堂",
"face": "https://i2.hdslb.com/bfs/face/ad7a53509584e61596e91bacc77948c9ed50c1ee.jpg",
"follower": 202676,
"following": 86,
"level": null
},
"stats": {
"view": 713954,
"danmaku": 1564,
"reply": 1019,
"favorite": 8744,
"coin": 10507,
"share": 2886,
"like": 26459,
"his_rank": 0
},
"streams": {
"quality": 64,
"quality_text": "720P",
"accept_quality": [
64,
16
],
"accept_description": [
"高清 720P",
"流畅 360P"
],
"format": "mp4720",
"timelength": 1432090,
"qualities": [
{
"id": 64,
"name": "720P",
"bytes": 272065675,
"size_text": "259.46 MB"
}
],
"audio_bytes": 0,
"audio_size_text": "0 B",
"total_bytes": 272065675,
"total_size_text": "259.46 MB",
"video_url": "https://upos-sz-mirrorbd.bilivideo.com/upgcxcode/38/31/38478613138/38478613138-1-192.mp4?e=ig8euxZM2rNcNbR3nWdVhwdlhW4HhwdVhoNvNC8BqJIzNbfq9rVEuxTEnE8L5F6VnEsSTx0vkX8fqJeYTj_lta53NCM=&nbs=1&uipk=5&platform=html5&trid=b5622a9348614506bc049ba160480b2h&gen=playurlv3&mid=0&oi=1981786399&deadline=1791023847&os=bdbv&og=hw&upsig=863873769cfb585fe7037d3f31f85bad&uparams=e,nbs,uipk,platform,trid,gen,mid,oi,deadline,os,og&bvc=vod&nettype=0&bw=1519919&lrs=0&f=h_0_0&agrr=1&buvid=&build=0&dl=0&orderid=0,1",
"durl": [
{
"order": 1,
"length": 1432090,
"size": 272065675,
"size_text": "259.46 MB",
"url": "https://upos-sz-mirrorbd.bilivideo.com/upgcxcode/38/31/38478613138/38478613138-1-192.mp4?e=ig8euxZM2rNcNbR3nWdVhwdlhW4HhwdVhoNvNC8BqJIzNbfq9rVEuxTEnE8L5F6VnEsSTx0vkX8fqJeYTj_lta53NCM=&nbs=1&uipk=5&platform=html5&trid=b5622a9348614506bc049ba160480b2h&gen=playurlv3&mid=0&oi=1981786399&deadline=1791023847&os=bdbv&og=hw&upsig=863873769cfb585fe7037d3f31f85bad&uparams=e,nbs,uipk,platform,trid,gen,mid,oi,deadline,os,og&bvc=vod&nettype=0&bw=1519919&lrs=0&f=h_0_0&agrr=1&buvid=&build=0&dl=0&orderid=0,1"
}
]
}
}
}
暂无详细文档
暂无代码示例。管理员可在后台用 AI 生成或手动编写。
// 结果将在此处显示
生效日期:2026年7月22日
欢迎使用 xiaoapi.cn(以下简称"本平台")。在使用本平台提供的 API 服务(以下简称"本服务")前,请务必仔细阅读并充分理解本免责声明。您以任何方式调用、访问或使用本服务,即视为您已阅读、理解并同意接受本声明的全部内容。
本平台作为 API 技术服务的提供方,仅提供技术接口与数据分发服务。本声明的目的在于明确平台与用户之间的责任边界,督促用户合法、合规地使用本服务,防范违法违规行为的发生。
用户在使用本服务时,明确禁止从事以下行为:
在法律法规允许的最大范围内,本平台对以下情形不承担责任:
因用户违反本声明或相关法律法规,导致本平台及其关联方、合作方遭受任何损失(包括但不限于赔偿款、罚款、律师费、诉讼费等),用户同意向本平台及相关方承担全部赔偿责任。
本平台有权根据法律法规变化、业务调整或监管要求,随时修改本声明。修改后的声明将在本页面公布,自公布之日起生效。您继续使用本服务,即视为接受更新后的声明。
如您对本声明有任何疑问,或发现他人存在违规使用本服务的行为,欢迎通过本平台公示的联系方式与我们联系,我们将及时处理。