返回提交历史
Modified
docs/user/space.md
+597
-601
Modified
docs/vip/info.md
+328
-28
XFEstudio/bilibili-API-collect
fix #1161
0c9c2da
代码差异
2 个文件
+925
-629
@@ -21,20 +21,29 @@
21
21
22
22
`data`对象:
23
23
24
| 字段 | 类型 | 内容 | 备注 |
25
| ---------------- | ----- | -------------- | ----------- |
26
| list | array | 卡券信息列表 | |
27
| is_short_vip | bool | (?) | |
28
| is_freight_open | bool | (?) | |
29
| level | num | 当前等级 | |
30
| cur_exp | num | 当前拥有经验值 | |
31
| next_exp | num | 升级所需经验值 | 满级时为 -1 |
32
| is_vip | bool | 是否为大会员 | |
33
| is_senior_member | num | (?) | |
34
| format060102 | num | (?) | |
24
| 字段 | 类型 | 内容 | 备注 |
25
| ---------------- | ----- | ---------------------- | ------------------- |
26
| list | array | 卡券信息列表 | |
27
| is_short_vip | bool | (?) | |
28
| is_freight_open | bool | (?) | |
29
| level | num | 当前等级 | |
30
| cur_exp | num | 当前拥有经验值 | |
31
| next_exp | num | 升级所需经验值 | 满级时为 -1 |
32
| is_vip | bool | 是否为大会员 | |
33
| is_senior_member | num | 是否为硬核会员 | |
34
| format060102 | num | (?) | 格式为`YYMMDD`,意义不明 |
35
| is_overdue_vip | bool | 大会员是否过期 | |
36
| vip_status | num | 会员状态 | 0:无<br />1:有 |
37
| vip_type | num | 会员类型 | 0:无<br />1:月大会员<br />2:年度及以上大会员 |
38
| keeptime_end | num | 大会员当前阶段过期时间 | 秒级时间戳 |
39
| vip_due_date | num | 大会员过期时间 | 秒级时间戳 |
40
| vip_is_annual | bool | 是否为年度及以上大会员 | |
41
| vip_is_month | bool | 是否为月大会员 | |
42
| vip_is_new_user | bool | 是否为大会员新用户 | |
43
| bind_phone | str | 绑定的手机号 | 星号隐藏部分信息 |
44
| taobao_account | 有效时:obj<br />无效时:null | 绑定的淘宝账号 | |
35
45
36
37
`list`数组:
46
`list`数组中的对象:
38
47
39
48
| 索引 | 类型 | 内容 | type | 备注 |
40
49
| ---- | ---- | -------------------------------- | ---- | ------------------------------- |
@@ -56,24 +65,25 @@
56
65
| state | num | 兑换状态 | 0:未兑换<br />1:已兑换<br />2:未完成(若需要完成) |
57
66
| expire_time | num | 本轮卡券过期时间戳 | 当月月底/当日24点 |
58
67
| vip_type | num | 当前用户的大会员状态 | 2:年度大会员 |
59
| next_receive_days | num | 距下一轮兑换剩余天数 | 无权限时,每月任务固定为 0,每日固定为 1 |
68
| next_receive_days | num | 距下一轮兑换剩余天数 | 无权限时,每月任务固定为 0,每日固定为 1 |
60
69
| period_end_unix | num | 下一轮兑换开始时间戳 | 秒级时间戳 |
61
70
62
71
**注意:**
63
卡券除每日可领取(`type` 为 `8` 和 `9`)的,其他可通过 [https://api.bilibili.com/x/vip/privilege/receive](./action.md#兑换卡券) 领取
72
73
卡券除每日可领取(`type` 为 `8` 和 `9`)的,其他可通过 [https://api.bilibili.com/x/vip/privilege/receive](./action.md#兑换卡券) 领取
74
64
75
每日 10 经验领取(`type` 为 `9`)需要完成视频观看,未完成的 `state` 为 2。
65
76
66
77
**示例:**
67
78
68
79
```shell
69
80
curl 'https://api.bilibili.com/x/vip/privilege/my' \
70
-b "SESSDATA=xxx"
81
-b "SESSDATA=xxx"
71
82
```
72
83
73
84
<details>
74
85
<summary>查看响应示例:</summary>
75
86
76
77
87
```json
78
88
{
79
89
"code": 0,
@@ -84,46 +94,336 @@ curl 'https://api.bilibili.com/x/vip/privilege/my' \
84
94
{
85
95
"type": 1,
86
96
"state": 0,
87
"expire_time": 1667231999,
97
"expire_time": 0,
88
98
"vip_type": 2,
89
99
"next_receive_days": 29,
90
"period_end_unix": 1667491200
100
"period_end_unix": 1747584000,
101
"is_count": true,
102
"name": "",
103
"coupon_code": "",
104
"app_describe": "",
105
"recive_state": 1,
106
"salary_type": 0,
107
"exp_params": {
108
"exp_group_tag": "59534,45476",
109
"hit_value": 2
110
},
111
"extra_params": null
91
112
},
92
113
{
93
114
"type": 2,
94
115
"state": 0,
95
"expire_time": 1667231999,
116
"expire_time": 0,
96
117
"vip_type": 2,
97
118
"next_receive_days": 29,
98
"period_end_unix": 1667491200
119
"period_end_unix": 1747584000,
120
"is_count": true,
121
"name": "",
122
"coupon_code": "",
123
"app_describe": "",
124
"recive_state": 1,
125
"salary_type": 0,
126
"exp_params": {
127
"exp_group_tag": "",
128
"hit_value": 0
129
},
130
"extra_params": null
99
131
},
100
132
{
101
133
"type": 3,
102
134
"state": 0,
103
"expire_time": 1667231999,
135
"expire_time": 0,
104
136
"vip_type": 2,
105
137
"next_receive_days": 29,
106
"period_end_unix": 1667491200
138
"period_end_unix": 1747584000,
139
"is_count": true,
140
"name": "",
141
"coupon_code": "",
142
"app_describe": "",
143
"recive_state": 1,
144
"salary_type": 0,
145
"exp_params": {
146
"exp_group_tag": "",
147
"hit_value": 0
148
},
149
"extra_params": null
107
150
},
108
151
{
109
152
"type": 4,
110
153
"state": 0,
111
"expire_time": 1667231999,
154
"expire_time": 0,
112
155
"vip_type": 2,
113
156
"next_receive_days": 29,
114
"period_end_unix": 1667491200
157
"period_end_unix": 1747584000,
158
"is_count": true,
159
"name": "",
160
"coupon_code": "",
161
"app_describe": "",
162
"recive_state": 1,
163
"salary_type": 0,
164
"exp_params": {
165
"exp_group_tag": "",
166
"hit_value": 0
167
},
168
"extra_params": null
115
169
},
116
170
{
117
171
"type": 5,
118
172
"state": 0,
119
"expire_time": 1667231999,
173
"expire_time": 0,
174
"vip_type": 2,
175
"next_receive_days": 29,
176
"period_end_unix": 1747584000,
177
"is_count": true,
178
"name": "",
179
"coupon_code": "",
180
"app_describe": "",
181
"recive_state": 1,
182
"salary_type": 0,
183
"exp_params": {
184
"exp_group_tag": "",
185
"hit_value": 0
186
},
187
"extra_params": null
188
},
189
{
190
"type": 6,
191
"state": 0,
192
"expire_time": 0,
193
"vip_type": 2,
194
"next_receive_days": 29,
195
"period_end_unix": 1747584000,
196
"is_count": true,
197
"name": "",
198
"coupon_code": "",
199
"app_describe": "",
200
"recive_state": 1,
201
"salary_type": 0,
202
"exp_params": {
203
"exp_group_tag": "",
204
"hit_value": 0
205
},
206
"extra_params": null
207
},
208
{
209
"type": 7,
210
"state": 0,
211
"expire_time": 0,
120
212
"vip_type": 2,
121
213
"next_receive_days": 29,
122
"period_end_unix": 1667491200
214
"period_end_unix": 1747584000,
215
"is_count": true,
216
"name": "",
217
"coupon_code": "",
218
"app_describe": "",
219
"recive_state": 1,
220
"salary_type": 0,
221
"exp_params": {
222
"exp_group_tag": "",
223
"hit_value": 0
224
},
225
"extra_params": null
226
},
227
{
228
"type": 14,
229
"state": 0,
230
"expire_time": 0,
231
"vip_type": 2,
232
"next_receive_days": 29,
233
"period_end_unix": 1747584000,
234
"is_count": true,
235
"name": "",
236
"coupon_code": "",
237
"app_describe": "",
238
"recive_state": 1,
239
"salary_type": 0,
240
"exp_params": {
241
"exp_group_tag": "59534,45476",
242
"hit_value": 2
243
},
244
"extra_params": null
245
},
246
{
247
"type": 15,
248
"state": 0,
249
"expire_time": 0,
250
"vip_type": 2,
251
"next_receive_days": 29,
252
"period_end_unix": 1747584000,
253
"is_count": true,
254
"name": "",
255
"coupon_code": "",
256
"app_describe": "",
257
"recive_state": 1,
258
"salary_type": 0,
259
"exp_params": {
260
"exp_group_tag": "",
261
"hit_value": 0
262
},
263
"extra_params": null
264
},
265
{
266
"type": 16,
267
"state": 0,
268
"expire_time": 0,
269
"vip_type": 2,
270
"next_receive_days": 29,
271
"period_end_unix": 1747584000,
272
"is_count": true,
273
"name": "",
274
"coupon_code": "",
275
"app_describe": "",
276
"recive_state": 1,
277
"salary_type": 0,
278
"exp_params": {
279
"exp_group_tag": "",
280
"hit_value": 0
281
},
282
"extra_params": null
283
},
284
{
285
"type": 17,
286
"state": 0,
287
"expire_time": 0,
288
"vip_type": 2,
289
"next_receive_days": 29,
290
"period_end_unix": 1747584000,
291
"is_count": true,
292
"name": "",
293
"coupon_code": "",
294
"app_describe": "",
295
"recive_state": 1,
296
"salary_type": 0,
297
"exp_params": {
298
"exp_group_tag": "",
299
"hit_value": 0
300
},
301
"extra_params": null
302
},
303
{
304
"type": 18,
305
"state": 0,
306
"expire_time": 0,
307
"vip_type": 2,
308
"next_receive_days": 0,
309
"period_end_unix": 0,
310
"is_count": true,
311
"name": "",
312
"coupon_code": "",
313
"app_describe": "",
314
"recive_state": 1,
315
"salary_type": 1,
316
"exp_params": {
317
"exp_group_tag": "",
318
"hit_value": 0
319
},
320
"extra_params": null
321
},
322
{
323
"type": 19,
324
"state": 0,
325
"expire_time": 0,
326
"vip_type": 2,
327
"next_receive_days": 0,
328
"period_end_unix": 0,
329
"is_count": false,
330
"name": "",
331
"coupon_code": "",
332
"app_describe": "",
333
"recive_state": 1,
334
"salary_type": 1,
335
"exp_params": {
336
"exp_group_tag": "",
337
"hit_value": 0
338
},
339
"extra_params": {
340
"is_allowe_receive": "true",
341
"is_show": "true",
342
"last_salary_time": "0",
343
"now": "1745138836"
344
}
345
},
346
{
347
"type": 20,
348
"state": 0,
349
"expire_time": 0,
350
"vip_type": 2,
351
"next_receive_days": 0,
352
"period_end_unix": 0,
353
"is_count": false,
354
"name": "",
355
"coupon_code": "",
356
"app_describe": "",
357
"recive_state": 1,
358
"salary_type": 1,
359
"exp_params": {
360
"exp_group_tag": "",
361
"hit_value": 0
362
},
363
"extra_params": {
364
"is_allowe_receive": "false",
365
"is_show": "false",
366
"last_salary_time": "0",
367
"now": "1745138836"
368
}
369
},
370
{
371
"type": 8,
372
"state": 1,
373
"expire_time": 1745164800,
374
"vip_type": 2,
375
"next_receive_days": 1,
376
"period_end_unix": 1745164800,
377
"is_count": true,
378
"name": "",
379
"coupon_code": "",
380
"app_describe": "",
381
"recive_state": 2,
382
"salary_type": 1,
383
"exp_params": {
384
"exp_group_tag": "",
385
"hit_value": 0
386
},
387
"extra_params": null
388
},
389
{
390
"type": 9,
391
"state": 0,
392
"expire_time": 1745164800,
393
"vip_type": 2,
394
"next_receive_days": 1,
395
"period_end_unix": 1745164800,
396
"is_count": false,
397
"name": "",
398
"coupon_code": "",
399
"app_describe": "",
400
"recive_state": 1,
401
"salary_type": 0,
402
"exp_params": {
403
"exp_group_tag": "",
404
"hit_value": 0
405
},
406
"extra_params": null
123
407
}
124
408
],
125
409
"is_short_vip": false,
126
"is_freight_open": true
410
"is_freight_open": true,
411
"level": 6,
412
"cur_exp": 34424,
413
"next_exp": -1,
414
"is_vip": true,
415
"is_senior_member": 1,
416
"format060102": 250418,
417
"is_overdue_vip": false,
418
"vip_status": 1,
419
"vip_type": 2,
420
"keeptime_end": 1747584000,
421
"vip_due_date": 1832083200,
422
"vip_is_annual": true,
423
"vip_is_month": false,
424
"vip_is_new_user": false,
425
"bind_phone": "138****0000",
426
"taobao_account": null
127
427
}
128
428
}
129
429
```