bilibiliAPI端口详解

用户信息API

API地址:http://api.bilibili.com/x/space/acc/info?mid=
以下是站长的解析状态

{
	"code": 0,      
	"message": "0",
	"ttl": 1,
	"data": {
		"//":"用户的uid",
		"mid": 2,
		"//":"用户名称",
		"name": "碧诗",
		"//":"性别",
		"sex": "男",
		"//":"头像",
		"face": "http://i1.hdslb.com/bfs/face/3e60b20604b6fdc7d081eb6a1ec72aa47c5a3964.jpg",
		"//":"签名",
		"sign": "kami.im 直男过气网红 # av362830 “We Are Star Dust”",
		"//":"优先级",
		"rank": 20000,
		"//":"用户等级",
		"level": 6,
		"jointime": 0,
		"moral": 0,
		"silence": 0,
		"//":"生日",
		"birthday": "09-19",
		"coins": 0,
		"fans_badge": true,
		"//":"授权信息",
		"official": {
			"role": 2,
			"title": "bilibili创始人(站长)",
			"desc": "",
			"type": 0
		},
		"//":"大会员信息",
		"vip": {
			"//":["等级标注","0为普通会员","1为大会员","2为年度大会员"],
			"type": 2,
			"//":"vip信息请求状态",
			"status": 1,
			"theme_type": 0
		},
		"//":"bilibili内部身份",
		"pendant": {
			"pid": 76,
			"name": "管理员",
			"image": "http://i2.hdslb.com/bfs/face/02a3b79edef0f0e682de7f5dca7b6b5fe36d5f65.png",
			"expire": 0
		},
		"//":"勋章与称号",
		"nameplate": {
			"nid": 10,
			"name": "见习偶像",
			"image": "http://i0.hdslb.com/bfs/face/e93dd9edfa7b9e18bf46fd8d71862327a2350923.png",
			"image_small": "http://i2.hdslb.com/bfs/face/275b468b043ec246737ab8580a2075bee0b1263b.png",
			"level": "普通勋章",
			"condition": "所有自制视频总播放数\u003e=10万"
		},
		"//":"允许通过api直达用户首页",
		"is_followed": false,
		"//":"名片图",
		"top_photo": "http://i1.hdslb.com/bfs/space/cb1c3ef50e22b6096fde67febe863494caefebad.png",
		"//":"外加信息",
		"theme": {},
		"//":"系统解析日志",
		"sys_notice": {}
	}
}

用户视频信息API

API地址:http://space.bilibili.com/ajax/member/getSubmitVideos?mid=
mid填写用户的uid
以下为我个人的视频信息

{
	"status": true,
	"data": {
		"//":"视频标签信息",
		"tlist": {
			"//":"标签id",
			"36": {
				"tid": 36,
				"//":"属该用户视频专栏中的第一个视频",
				"count": 1,
				"//":"转码后为‘科技’,标签名称",
				"name": "\u79d1\u6280"
			}
		},
		"vlist": [{
			"comment": 0,
			"typeid": 122,
			"//":"播放量",
			"play": 40,
			"//":"视频封面",
			"pic": "\/\/i0.hdslb.com\/bfs\/archive\/d1f02d537abe71be9ab8ee0df97752dee35c3f44.jpg",
			"//":"副标题",
			"subtitle": "",
			"//":"视频介绍",
			"description": "https:\/\/blog.csdn.net\/weixin_42232219\/article\/details\/88548716?utm_source=app\n\u8f6c\u81ea\u56fd\u5916\u4eba\u5de5\u667a\u80fd\u9886\u57df\u7684\u7f16\u7a0b\u9ad8\u624bSiraj Raval\u3002",
			"//":"版权信息",
			"copyright": "",
			"//":"视频标题",
			"title": "[python]7\u884cPython\u4ee3\u7801\uff0c\u642d\u5efa\u4e00\u4e2a\u53ef\u4ee5\u8bc6\u82b1\u7684\u673a\u5668\u5b66\u4e60APP",
			"//":"弹幕数量",
			"review": 0,
			"//":"作者信息",
			"author": "bass\u65e0\u7ec8",
			"//":"视频编号",
			"mid": 43920592,
			"//":"分P",
			"is_union_video": 0,
			"//":"发布信息,属于服务器内部编号",
			"created": 1582314953,
			"//":"视频总长",
			"length": "05:03",
			"//":"视频重审核次数",
			"video_review": 0,
			"//":"投币",
			"is_pay": 0,
			"//":"收藏数量",
			"favorites": 1,
			"aid": 90742233,
			"//":"暂不清楚",
			"is_steins_gate": 0,
			"//":"显示隐藏",
			"hide_click": false
		}],
		"//":"空间内部GET获取",
		"count": 1,
		"pages": 1
	}
}

通过视频编号查找视频

API地址:http://api.bilibili.com/x/web-interface/view?aid=
以下为我个人的视频解析

{
	"code": 0,
	"message": "0",
	"ttl": 1,
	"data": {
        "//":"原视频地址,表示没有经过重新审核的视频地址",
        "bvid": "",
        "//":"视频编号",
        "aid": 90742233,
        "//":"视频总数",
        "videos": 1,
        "//":"标签编号",
        "tid": 122,
        "//":"标签名称",
        "tname": "野生技术协会",
        "//":"版权信息",
		"copyright": 2,
		"pic": "http://i0.hdslb.com/bfs/archive/d1f02d537abe71be9ab8ee0df97752dee35c3f44.jpg",
		"title": "[python]7行Python代码,搭建一个可以识花的机器学习APP",
		"pubdate": 1582314953,
		"ctime": 1582314953,
		"desc": "http://catci.desgin.blog\n转自国外人工智能领域的编程高手Siraj Raval。",
		"state": 0,
		"attribute": 16384,
		"duration": 303,
		"rights": {
			"bp": 0,
			"elec": 0,
			"download": 1,
			"movie": 0,
			"pay": 0,
			"hd5": 0,
			"no_reprint": 0,
			"autoplay": 1,
			"ugc_pay": 0,
			"is_cooperation": 0,
			"ugc_pay_preview": 0,
			"no_background": 0
        },
        "//":"作者信息",
		"owner": {
			"mid": 43920592,
			"name": "bass无终",
			"face": "http://i0.hdslb.com/bfs/face/2cc7ef7f79c928d4735633608d961bd66927615c.jpg"
		},
		"stat": {
			"aid": 90742233,
            "view": 42,
            "//":"弹幕数量",
			"danmaku": 0,
			"reply": 0,
			"favorite": 1,
			"coin": 0,
			"share": 0,
			"now_rank": 0,
            "his_rank": 0,
            "//":"喜欢",
            "like": 0,
            "//":"不喜欢,现在基本为0",
			"dislike": 0,
			"evaluation": ""
		},
		"dynamic": "",
		"cid": 154961060,
		"dimension": {
			"width": 848,
			"height": 480,
			"rotate": 0
		},
		"no_cache": false,
		"pages": [{
			"cid": 154961060,
			"page": 1,
			"from": "vupload",
			"part": "[python]7行Python代码,搭建一个可以识花的机器学习APP",
			"duration": 303,
			"vid": "",
			"weblink": "",
			"dimension": {
				"width": 848,
				"height": 480,
				"rotate": 0
			}
		}],
		"subtitle": {
			"allow_submit": false,
			"list": []
		}
	}
}

视频播放地址

API地址:http://api.bilibili.com/x/player/playurl

2020/3/22更新:
当前API已不能被外部人员所查询,已暂停更新

你可能感兴趣的:(bilibiliAPI端口详解)