XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/bilibili-API-collect

添加课程基本信息以及直播间分区列表

fb35649
SocialSisterYi <45892418+SocialSisterYi@users.noreply.github.com>
提交于

代码差异

5 个文件 +848 -20
Modified README.md +31 -11
@@ -1,16 +1,28 @@
1 <img src="/imgs/Mylogo.png" align="right" width="250" height="200"/>
2
3 # 哔哩哔哩-API收集整理
4
5 **野生API文档**
6
7 **不断更新中....**
8
9 本项目对B站web端以及移动端散落在世界各地的野生api进行收集整理,以及研究使用方法并对其进行说明,运用了黑箱法、控制变量法、js逆向分析法等研究办法
1 <img src="/imgs/Mylogo.png" align="center" width="250" height="200"/>
2
3 <h1 align="center">哔哩哔哩-API收集整理</h1>
4 <p align="center">
5 <a href="https://github.com/SocialSisterYi/bilibili-API-collect/issues" style="text-decoration:none">
6 <img src="https://img.shields.io/github/issues/SocialSisterYi/bilibili-API-collect.svg" alt="GitHub issues"/>
7 </a>
8 <a href="https://github.com/SocialSisterYi/bilibili-API-collect/stargazers" style="text-decoration:none" >
9 <img src="https://img.shields.io/github/stars/SocialSisterYi/bilibili-API-collect.svg" alt="GitHub stars"/>
10 </a>
11 <a href="https://github.com/SocialSisterYi/bilibili-API-collect/network" style="text-decoration:none" >
12 <img src="https://img.shields.io/github/forks/SocialSisterYi/bilibili-API-collect.svg" alt="GitHub forks"/>
13 </a>
14 <a href="https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/LICENSE" style="text-decoration:none" >
15 <img src="https://img.shields.io/github/license/SocialSisterYi/bilibili-API-collect.svg" alt="GitHub license"/>
16 </a>
17 </p>
18
19 <h3 align="center">野生API文档</h3>
20 <h3 align="center">不断更新中....</h3>
21 本项目旨在对B站web端以及移动端散落在世界各地的野生api进行收集整理,以及研究使用方法并对其进行说明,运用了黑箱法、控制变量法、js逆向分析法等研究办法
10 22
11 23 所有api均为标准http协议,返回值大都为json
12 24
13 <img src="/imgs/bilibili.svg" width="200" height="100"/>
25 <img src="/imgs/bilibili.svg" align="left" width="200" height="100"/>
14 26
15 27 计划整理分类&目录:(√代表已完成,x代表正在施工...)
16 28
@@ -98,9 +110,15 @@
98 110 - [历史记录](history&toview/play_history.md)√
99 111 - [稍后再看](history&toview/toview.md)√
100 112 - 收藏夹
101 - 课程
113 - [课程](cheese)
114 - [课程基本信息](cheese/info.md)√
115 - 已购课程
116 - 分区推荐列表
117 - 操作
118 - 播放&下载地址(视频流)
102 119 - [直播](live)
103 120 - [直播间基本信息](live/info.md)x
121 - [直播分区](live/live_area.md)×
104 122 - [直播间管理](live/manage.md)×
105 123 - 直播间操作
106 124 - 直播视频流
@@ -150,6 +168,8 @@ https://github.com/Vespa314/bilibili-api
150 168
151 169 https://github.com/Hsury/Bilibili-Toolkit
152 170
171 https://github.com/adachi-sakura/openbilibili-go-common-1
172
153 173 成品:
154 174
155 175 https://github.com/zyzsdy/biliroku
Added live/live_area.md +204 -0
@@ -0,0 +1,204 @@
1 # 直播间分区
2
3 ## 获取全部直播间分区列表
4
5 > http://api.live.bilibili.com/room/v1/Area/getList
6
7 *方式:GET*
8
9 直播分区共有两级,分别是父分区和子分区
10
11 **json回复:**
12
13 根对象:
14
15 | 字段 | 类型 | 内容 | 备注 |
16 | ------- | ------ | ---------- | ------------- |
17 | code | num | 返回值 | 0:成功 |
18 | msg | str | 错误信息 | 默认为success |
19 | message | str | 错误信息 | 默认为success |
20 | data | arrary | 父分区列表 | |
21
22 `data`数组:
23
24 | 项 | 类型 | 内容 | 备注 |
25 | ---- | ---- | ----------- | ---- |
26 | 0 | obj | 父分区1 | |
27 | n | obj | 父分区(n+1) | |
28 | …… | obj | …… | …… |
29
30 `data`数组中的对象:
31
32 | 字段 | 类型 | 内容 | 备注 |
33 | ---- | ---- | ---------- | ---- |
34 | id | num | 父分区ID | |
35 | name | name | 父分区名 | |
36 | list | list | 子分区列表 | |
37
38 `data`数组中的对象中的`list`数组:
39
40 | 项 | 类型 | 内容 | 备注 |
41 | ---- | ---- | ----------- | ---- |
42 | 0 | obj | 子分区1 | |
43 | n | obj | 子分区(n+1) | |
44 | …… | obj | …… | …… |
45
46 `list`数组中的对象:
47
48 | 字段 | 类型 | 内容 | 备注 |
49 | ----------- | ---- | ----------------- | ---------------- |
50 | id | str | 子分区ID | |
51 | parent_id | str | 父分区ID | |
52 | old_area_id | str | 旧分区ID | |
53 | name | str | 子分区名 | |
54 | act_id | str | 0 | **作用尚不明确** |
55 | pk_status | str | ??? | **作用尚不明确** |
56 | hot_status | num | 是否为热门分区 | 0:否<br />1:是 |
57 | lock_status | str | 0 | **作用尚不明确** |
58 | pic | str | 子分区标志图片url | |
59 | parent_name | str | 父分区名 | |
60 | area_type | num | | |
61
62 **示例:**
63
64 如想在`网游`父分区下的`英雄联盟`分区开播,需要取得子分区ID`86`
65
66 http://api.live.bilibili.com/room/v1/Area/getList
67
68 ```json
69 {
70 "code": 0,
71 "msg": "success",
72 "message": "success",
73 "data": [
74 {
75 "id": 2,
76 "name": "网游",
77 "list": [
78 {
79 "id": "86",
80 "parent_id": "2",
81 "old_area_id": "4",
82 "name": "英雄联盟",
83 "act_id": "0",
84 "pk_status": "0",
85 "hot_status": 1,
86 "lock_status": "0",
87 "pic": "http://i0.hdslb.com/bfs/vc/dcfb14f14ec83e503147a262e7607858b05d7ac0.png",
88 "parent_name": "网游",
89 "area_type": 0
90 },
91 {
92 "id": "252",
93 "parent_id": "2",
94 "old_area_id": "3",
95 "name": "逃离塔科夫",
96 "act_id": "0",
97 "pk_status": "0",
98 "hot_status": 1,
99 "lock_status": "0",
100 "pic": "http://i0.hdslb.com/bfs/vc/762a7de3dd5fe8165d1d55b232484a017941592f.png",
101 "parent_name": "网游",
102 "area_type": 0
103 },
104 {
105 "id": "80",
106 "parent_id": "2",
107 "old_area_id": "1",
108 "name": "绝地求生",
109 "act_id": "0",
110 "pk_status": "0",
111 "hot_status": 1,
112 "lock_status": "0",
113 "pic": "http://i0.hdslb.com/bfs/vc/43ca83fdcd10505eaeef1b76cf8ce642a53b94da.png",
114 "parent_name": "网游",
115 "area_type": 0
116 },
117 …………
118 ]
119 },
120 {
121 "id": 3,
122 "name": "手游",
123 "list": [
124 {
125 "id": "35",
126 "parent_id": "3",
127 "old_area_id": "12",
128 "name": "王者荣耀",
129 "act_id": "0",
130 "pk_status": "0",
131 "hot_status": 1,
132 "lock_status": "0",
133 "pic": "http://i0.hdslb.com/bfs/vc/0fefa924760b2dd492a12dddafe179bfa1216918.png",
134 "parent_name": "手游",
135 "area_type": 0
136 },
137 …………
138 ]
139 },
140 {
141 "id": 6,
142 "name": "单机",
143 "list": [
144 {
145 "id": "236",
146 "parent_id": "6",
147 "old_area_id": "1",
148 "name": "主机游戏",
149 "act_id": "0",
150 "pk_status": "0",
151 "hot_status": 1,
152 "lock_status": "0",
153 "pic": "http://i0.hdslb.com/bfs/vc/edb636ee59f902e3134a2790545045bddd70978e.png",
154 "parent_name": "单机",
155 "area_type": 0
156 },
157 …………
158 ]
159 },
160 {
161 "id": 1,
162 "name": "娱乐",
163 "list": [
164 {
165 "id": "21",
166 "parent_id": "1",
167 "old_area_id": "10",
168 "name": "视频唱见",
169 "act_id": "0",
170 "pk_status": "1",
171 "hot_status": 1,
172 "lock_status": "0",
173 "pic": "http://i0.hdslb.com/bfs/vc/72b93ddafdf63c9f0b626ad546847a3c03c92b6f.png",
174 "cate_id": "12",
175 "parent_name": "娱乐",
176 "area_type": 0
177 },
178 …………
179 ]
180 },
181 {
182 "id": 5,
183 "name": "电台",
184 "list": [
185 {
186 "id": "190",
187 "parent_id": "5",
188 "old_area_id": "10",
189 "name": "唱见电台",
190 "act_id": "0",
191 "pk_status": "0",
192 "hot_status": 0,
193 "lock_status": "0",
194 "pic": "http://i0.hdslb.com/bfs/vc/d22d7fafbf9b24e2bc3ce1df5eb9f006e6035e5d.png",
195 "parent_name": "电台",
196 "area_type": 0
197 },
198 …………
199 ]
200 }
201 ]
202 }
203 ```
204
Modified live/manage.md +6 -6
@@ -58,12 +58,12 @@ curl -b "SESSDATA=xxx;bili_jct=xxx" -d "room_id=10352053&title=%E6%B5%8B%E8%AF%9
58 58
59 59 **参数( application/x-www-form-urlencoded ):**
60 60
61 | 参数名 | 类型 | 内容 | 必要性 | 备注 |
62 | -------- | ---- | ------------------- | ------ | -------------------- |
63 | room_id | data | 直播间ID | 必要 | 必须为自己的直播间ID |
64 | area_v2 | data | 直播分区ID | 必要 | 最大20字符 |
65 | platform | data | pc | 必要 | |
66 | csrf | data | cookies中的bili_jct | 必要 | |
61 | 参数名 | 类型 | 内容 | 必要性 | 备注 |
62 | -------- | ---- | ---------------------- | ------ | ---------------------------- |
63 | room_id | data | 直播间ID | 必要 | 必须为自己的直播间ID |
64 | area_v2 | data | 直播分区ID(子分区ID) | 必要 | 详见[直播分区](live_area.md) |
65 | platform | data | 必须为`pc` | 必要 | |
66 | csrf | data | cookies中的bili_jct | 必要 | |
67 67
68 68 **json回复:**
69 69
Modified video/info.md +3 -3
@@ -2,7 +2,7 @@
2 2
3 3 <img src="/imgs/ploading.gif" width="100" height="100"/>
4 4
5 ## 视频详细信息(avID/bvID互转及转epID)
5 ## 获取视频详细信息(avID/bvID互转及转epID)
6 6
7 7 > http://api.bilibili.com/x/web-interface/view
8 8
@@ -349,7 +349,7 @@ http://i0.hdslb.com/bfs/face/5387950a59be8038daaae3f66dfb5a85e20d5737.jpg
349 349
350 350
351 351
352 ## 视频简介
352 ## 获取视频简介
353 353
354 354 > http://api.bilibili.com/x/web-interface/archive/desc
355 355
@@ -392,7 +392,7 @@ http://api.bilibili.com/x/web-interface/archive/desc?aid=39330059
392 392
393 393
394 394
395 ## 视频分P列表 (avID/bvID转CID)
395 ## 查询视频分P列表 (avID/bvID转CID)
396 396
397 397 > http://api.bilibili.com/x/player/pagelist
398 398