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

XFEstudio/bilibili-API-collect

新增了一个API (#383)

* 新增了入站必刷85个视频 * 修复了一些错误 * 修复了一些错误

fcaee7d
Nemo2011 <91071485+Nemo2011@users.noreply.github.com>
提交于

代码差异

2 个文件 +199 -10
Modified APP_widget/splash.md +0 -10
@@ -85,10 +85,6 @@ curl -G 'http://app.bilibili.com/x/v2/splash/brand/list' \
85 85
86 86 <details>
87 87 <summary>查看响应示例:</summary>
88 <<<<<<< HEAD
89 =======
90 <!--
91 >>>>>>> d4f20b5a37730a3665341ec41a48b333bd133ac0
92 88 ```json
93 89 {
94 90 "code": 0,
@@ -152,10 +148,7 @@ curl -G 'http://app.bilibili.com/x/v2/splash/brand/list' \
152 148 *请求方式: GET*
153 149
154 150 | 参数名 | 类型 | 内容 | 必要性 | 备注 |
155 <<<<<<< HEAD
156 151 | - | - | - | - | - |
157 =======
158 >>>>>>> d4f20b5a37730a3665341ec41a48b333bd133ac0
159 152 | build | int | 客户端内部版本号 | 必要 | |
160 153 | mobi_app | str | android, iphone, ipad | 必要 | |
161 154 | platform | str | android, ios | 必要 | |
@@ -175,10 +168,7 @@ curl -G 'http://app.bilibili.com/x/v2/splash/brand/list' \
175 168 `data` 字段:
176 169
177 170 | 字段 | 类型 | 内容 | 备注 |
178 <<<<<<< HEAD
179 171 | - | - | - | - |
180 =======
181 >>>>>>> d4f20b5a37730a3665341ec41a48b333bd133ac0
182 172 | splash_request_id | str | 不知道 | |
183 173 | max_time | int | 最长显示时间? | |
184 174 | min_interval | int | 最少显示时间? | 千分之一秒单位 |
Added ranking&dynamic/85videos.md +199 -0
@@ -0,0 +1,199 @@
1 <!--{
2 "info": {
3 "hot": {
4 "url": "http://api.bilibili.com/x/web-interface/popular",
5 "verify": false,
6 "comment": "小破站的热门视频排行"
7 },
8 "weakly_series": {
9 "url": "http://api.bilibili.com/x/web-interface/popular/series/list",
10 "verify": false,
11 "comment": "小破站每周必看全部信息(简介)"
12 },
13 "weakly_details": {
14 "url": "http://api.bilibili.com/x/web-interface/popular/series/one",
15 "verify": false,
16 "params": {
17 "number": "int: 第几周"
18 },
19 "comment": "小破站每周必看一期的详细信息"
20 },
21 "popular": {
22 "url": "http://api.bilibili.com/x/web-interface/popular/precious",
23 "verify": false,
24 "params": {
25 "page_size": "int: 就设置 85 好了(每页的大小)",
26 "page": "int: 页码"
27 },
28 "comment": "获取入站必刷 85 个视频"
29 },
30 "ranking": {
31 "url": "http://api.bilibili.com/x/web-interface/ranking/v2",
32 "verify": false,
33 "params": {
34 "tid": "int: 频道的 tid",
35 "type": "string: all"
36 },
37 "comment": "获取各个分区的排行榜"
38 }
39 }
40 }
41 -->
42
43 # 入站必刷
44
45 [获取入站必刷85个视频](#85videos)
46
47 <span id="85videos">## 获取入站必刷85个视频</span>
48
49 > http://api.bilibili.com/x/web-interface/popular/precious
50
51 **url参数**
52
53 | 字段 | 类型 | 内容 | 必要性 | 备注 |
54 | - | - | - | - | - |
55 | page | int | 第几页 | 不必要 | 默认为1 |
56 | page_size | int | 每一页的视频数 | 不必要 | 可以设为 85 获取所有的视频 |
57
58 **json回复:**
59
60 根对象:
61
62 | 字段 | 类型 | 内容 | 备注 |
63 | ------- | ----- | -------- | --------------------------- |
64 | code | num | 返回值 | 0:成功<br />-400:请求错误 |
65 | message | str | 错误信息 | 默认为0 |
66 | ttl | num | 1 | |
67 | data | array | 视频列表 | |
68
69 `data` 字段:
70
71 | 字段 | 类型 | 内容 | 备注 |
72 | - | - | - | - |
73 | title | string | 标题 | 入站必刷 |
74 | media_id | int | media_id | |
75 | explain | string | 解释(概括)| 我不允许还有人没看过这85个宝藏视频! |
76 | list | list | 列表 | |
77
78 `data` 中的 `list` 字段:
79
80 | 字段 | 类型 | 内容 | 备注 |
81 | - | - | - | - |
82 | aid | int | aid | |
83 | videos | int | 视频数? | |
84 | tid | int | 分区 id | |
85 | tname | string | 分区名称 | |
86 | copyright | int | 版权 | |
87 | pic | url | 封面 url | |
88 | title | string | 标题 | |
89 | pubdate | int | 发布时间 | 时间戳 |
90 | ctime | int | 暂不清楚 | 时间戳 |
91 | desc | string | 简介 | |
92 | state | int | 暂不清楚 | |
93 | duration | int | 视频时长 | 单位为秒 |
94 | mission_id | int | 暂不清楚 | |
95 | rights | dict | 暂不清楚 | 好像没啥么用 |
96 | owner | dict | 作者 | |
97 | stat | dict | 状态 | |
98 | dynamic | string | 动态发布时写的文字 | |
99 | cid | int | cid | |
100 | dimension | dict | 视频的一些属性 | |
101 | season_id | int | 暂不清楚 | |
102 | short_link | string | 短链 | |
103 | short_link_v2 | string | 短链 | 第二版 |
104 | bvid | string | bvid | |
105 | season_type | int | 分区 tid? | |
106 | is_ogv | bool | 暂不清楚 | |
107 | ogv_info | dict/null? | 暂不清楚 | |
108 | rcmd_reason | string? | 暂不清楚 | |
109 | achievement | string | 荣誉概述 | |
110
111 **示例:**
112
113 ``` shell
114 curl 'http://api.bilibili.com/x/web-interface/popular/precious'
115 ```
116 <details>
117 <summary>查看响应事例:</summary>
118
119 ``` json
120 {
121 "code":0,
122 "message":"0",
123 "ttl":1,
124 "data":{
125 "title":"入站必刷",
126 "media_id":496307088,
127 "explain":"我不允许还有人没看过这85个宝藏视频!",
128 "list":[
129 {
130 "aid":715024588,
131 "videos":1,
132 "tid":233,
133 "tname":"极客DIY",
134 "copyright":1,
135 "pic":"http://i1.hdslb.com/bfs/archive/55ce9a4d1797ec56a0d4ed727f1a279b89ec3664.jpg",
136 "title":"【才浅】15天花20万元用500克黄金敲数万锤纯手工打造三星堆黄金面具",
137 "pubdate":1618207101,
138 "ctime":1618207101,
139 "desc":"倾家荡产求三连支持!!!请大家帮忙给新系列想个名字,点赞一百万的话制作三星堆黄金权杖,不会真的可以点到一百万吧\nbgm:\n-Old-B - 【Free Beat】侠之道 、于剑飞 - 01 片头曲 帝陵、AniFace - 夜辞秋江",
140 "state":0,
141 "duration":717,
142 "mission_id":16881,
143 "rights":{
144 "bp":0,
145 "elec":0,
146 "download":0,
147 "movie":0,
148 "pay":0,
149 "hd5":0,
150 "no_reprint":1,
151 "autoplay":1,
152 "ugc_pay":0,
153 "is_cooperation":0,
154 "ugc_pay_preview":0,
155 "no_background":0,
156 "arc_pay":0,
157 "pay_free_watch":0
158 },
159 "owner":{
160 "mid":2200736,
161 "name":"才疏学浅的才浅",
162 "face":"http://i2.hdslb.com/bfs/face/1f4819b224cd882025a9a6a5f2c6680c332f37bc.jpg"
163 },
164 "stat":{
165 "aid":715024588,
166 "view":13833908,
167 "danmaku":215105,
168 "reply":39792,
169 "favorite":619513,
170 "coin":2484204,
171 "share":122302,
172 "now_rank":0,
173 "his_rank":1,
174 "like":2338710,
175 "dislike":0
176 },
177 "dynamic":"倾家荡产求三连!!",
178 "cid":323723441,
179 "dimension":{
180 "width":1920,
181 "height":1080,
182 "rotate":0
183 },
184 "season_id":19992,
185 "short_link":"https://b23.tv/BV16X4y1g7wT",
186 "short_link_v2":"https://b23.tv/BV16X4y1g7wT",
187 "bvid":"BV16X4y1g7wT",
188 "season_type":0,
189 "is_ogv":false,
190 "ogv_info":null,
191 "rcmd_reason":"",
192 "achievement":"央视新华社点赞,博物馆喊话来上班!"
193 },
194 ... and more
195 ]
196 }
197 }
198 ```
199 </details>