返回提交历史
Modified
docs/user/info.md
+35
-194
XFEstudio/bilibili-API-collect
Update info.md
83a1a4e
代码差异
1 个文件
+35
-194
@@ -159,6 +159,7 @@
159
159
`data`中的`pendant`对象:
160
160
161
161
**普通头像框的`image`与`image_enhance`内容相同**
162
162
163
**动态头像框的`image`为png静态图片,`image_enhance`为webp动态图片,`image_enhance_frame`为png逐帧序列**
163
164
164
165
| 字段 | 类型 | 内容 | 备注 |
@@ -540,7 +541,7 @@ curl -G 'https://api.bilibili.com/x/space/wbi/acc/info' \
540
541
| face | str | 用户头像链接 | |
541
542
| DisplayRank | str | 0 | **作用尚不明确** |
542
543
| regtime | num | 0 | **作用尚不明确** |
543
| spacesta | num | 0 | **作用尚不明确** |
544
| spacesta | num | 用户状态 | 0:正常<br />-2:被封禁 |
544
545
| birthday | str | 空 | **作用尚不明确** |
545
546
| place | str | 空 | **作用尚不明确** |
546
547
| description | str | 空 | **作用尚不明确** |
@@ -563,7 +564,7 @@ curl -G 'https://api.bilibili.com/x/space/wbi/acc/info' \
563
564
| 字段 | 类型 | 内容 | 备注 |
564
565
| ------------- | ---- | -------- | ---------------- |
565
566
| current_level | num | 当前等级 | 0-6级 |
566
| current_min | num | 0 | 作用尚不明确 |
567
| current_min | num | 0 | **作用尚不明确** |
567
568
| current_exp | num | 0 | **作用尚不明确** |
568
569
| next_exp | num | 0 | **作用尚不明确** |
569
570
@@ -589,19 +590,19 @@ curl -G 'https://api.bilibili.com/x/space/wbi/acc/info' \
589
590
590
591
`card`中的`Official`对象:
591
592
592
| 字段 | 类型 | 内容 | 备注 |
593
| ----- | ---- | -------- | ------------------------------------------------- |
594
| role | num | 认证类型 | 见[用户认证类型一览](official_role.md) |
595
| title | str | 认证信息 | 无为空 |
596
| desc | str | 认证备注 | 无为空 |
597
| type | num | 是否认证 | -1:无<br />0:认证 |
593
| 字段 | 类型 | 内容 | 备注 |
594
| ----- | ---- | -------- | ---------------------------------------- |
595
| role | num | 认证类型 | 见[用户认证类型一览](official_role.md) |
596
| title | str | 认证信息 | 无为空 |
597
| desc | str | 认证备注 | 无为空 |
598
| type | num | 是否认证 | -1:无<br />0:UP主认证<br />1:机构认证 |
598
599
599
600
`card`中的`official_verify`对象:
600
601
601
| 字段 | 类型 | 内容 | 备注 |
602
| ---- | ---- | -------- | ------------------- |
603
| type | num | 是否认证 | -1:无<br />0:认证 |
604
| desc | str | 认证信息 | 无为空 |
602
| 字段 | 类型 | 内容 | 备注 |
603
| ---- | ---- | -------- | ---------------------------------------- |
604
| type | num | 是否认证 | -1:无<br />0:UP主认证<br />1:机构认证 |
605
| desc | str | 认证信息 | 无为空 |
605
606
606
607
`card`中的`vip`对象:
607
608
@@ -938,22 +939,24 @@ curl -G 'https://api.bilibili.com/x/space/myinfo' \
938
939
939
940
认证方式:Cookie(SESSDATA)
940
941
942
本接口较其他接口相比,只会返回非常有限的信息,但可以同时获取较多的用户信息(据测试可以同时获取 40000 多个用户的信息)
943
941
944
**url参数:**
942
945
943
946
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
944
947
| ------ | ---- | ----------------- | ------ | --------------------------------- |
945
| uids | nums | 目标用户的UID列表 | 必要 | 每个成员间用`,`分隔,最多50个成员 |
948
| uids | nums | 目标用户的UID列表 | 必要 | 每个成员间用`,`分隔 |
946
949
947
950
**json回复:**
948
951
949
952
根对象:
950
953
951
| 字段 | 类型 | 内容 | 备注 |
952
| ------- | ----- | -------- | ----------------------------------------------------------------- |
953
| code | num | 返回值 | 0:成功<br />-400:请求错误<br />600007:超出批量获取用户信息限制 |
954
| msg | str | 错误信息 | 默认为空 |
955
| message | str | 错误信息 | 默认为空 |
956
| data | array | 信息本体 | |
954
| 字段 | 类型 | 内容 | 备注 |
955
| ------- | ----- | -------- | --------------------------- |
956
| code | num | 返回值 | 0:成功<br />-400:请求错误 |
957
| msg | str | 错误信息 | 默认为空 |
958
| message | str | 错误信息 | 默认为空 |
959
| data | array | 信息本体 | 用户信息随机排序 |
957
960
958
961
`data`数组:
959
962
@@ -965,7 +968,16 @@ curl -G 'https://api.bilibili.com/x/space/myinfo' \
965
968
966
969
`data`数组中的对象:
967
970
968
基本同「[用户空间详细信息](#用户空间详细信息)」中的data对象
971
| 字段 | 类型 | 内容 | 备注 |
972
| ------- | ---- | ------------ | -------------------- |
973
| mid | num | mid | |
974
| name | str | 昵称 | |
975
| sex | str | 性别 | 男/女/保密 |
976
| face | str | 头像链接 | |
977
| sign | str | 签名 | |
978
| rank | num | 用户权限等级 | |
979
| level | num | 当前等级 | 0-6 级 |
980
| silence | num | 封禁状态 | 0:正常<br />1:被封 |
969
981
970
982
**示例:**
971
983
@@ -993,64 +1005,7 @@ curl -G 'https://api.vc.bilibili.com/account/v1/user/cards' \
993
1005
"sign": "",
994
1006
"rank": 10000,
995
1007
"level": 4,
996
"silence": 0,
997
"vip": {
998
"type": 2,
999
"status": 1,
1000
"due_date": 1754496000000,
1001
"vip_pay_type": 1,
1002
"theme_type": 0,
1003
"label": {
1004
"path": "",
1005
"text": "年度大会员",
1006
"label_theme": "annual_vip",
1007
"text_color": "#FFFFFF",
1008
"bg_style": 1,
1009
"bg_color": "#FB7299",
1010
"border_color": "",
1011
"use_img_label": true,
1012
"img_label_uri_hans": "",
1013
"img_label_uri_hant": "",
1014
"img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/8d4f8bfc713826a5412a0a27eaaac4d6b9ede1d9.png",
1015
"img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/VEW8fCC0hg.png"
1016
},
1017
"avatar_subscript": 1,
1018
"nickname_color": "#FB7299",
1019
"role": 3,
1020
"avatar_subscript_url": "",
1021
"tv_vip_status": 0,
1022
"tv_vip_pay_type": 0,
1023
"tv_due_date": 1633622400
1024
},
1025
"pendant": {
1026
"pid": 0,
1027
"name": "",
1028
"image": "",
1029
"expire": 0,
1030
"image_enhance": "",
1031
"image_enhance_frame": ""
1032
},
1033
"nameplate": {
1034
"nid": 0,
1035
"name": "",
1036
"image": "",
1037
"image_small": "",
1038
"level": "",
1039
"condition": ""
1040
},
1041
"official": {
1042
"role": 0,
1043
"title": "",
1044
"desc": "",
1045
"type": -1
1046
},
1047
"birthday": 622137600,
1048
"is_fake_account": 0,
1049
"is_deleted": 0,
1050
"in_reg_audit": 0,
1051
"face_nft": 0,
1052
"face_nft_new": 0,
1053
"is_senior_member": 0
1008
"silence": 0
1054
1009
}, {
1055
1010
"mid": 2,
1056
1011
"name": "碧诗",
@@ -1059,64 +1014,7 @@ curl -G 'https://api.vc.bilibili.com/account/v1/user/cards' \
1059
1014
"sign": "https://kami.im 直男过气网红 # av362830 “We Are Star Dust”",
1060
1015
"rank": 20000,
1061
1016
"level": 6,
1062
"silence": 0,
1063
"vip": {
1064
"type": 2,
1065
"status": 1,
1066
"due_date": 3901881600000,
1067
"vip_pay_type": 0,
1068
"theme_type": 0,
1069
"label": {
1070
"path": "",
1071
"text": "十年大会员",
1072
"label_theme": "ten_annual_vip",
1073
"text_color": "#FFFFFF",
1074
"bg_style": 1,
1075
"bg_color": "#FB7299",
1076
"border_color": "",
1077
"use_img_label": true,
1078
"img_label_uri_hans": "",
1079
"img_label_uri_hant": "",
1080
"img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/adb599797dd171e2d3d6d012f448b49679258344.png",
1081
"img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/sGu57N6pgK.png"
1082
},
1083
"avatar_subscript": 1,
1084
"nickname_color": "#FB7299",
1085
"role": 7,
1086
"avatar_subscript_url": "",
1087
"tv_vip_status": 0,
1088
"tv_vip_pay_type": 0,
1089
"tv_due_date": 1655481600
1090
},
1091
"pendant": {
1092
"pid": 32257,
1093
"name": "EveOneCat2",
1094
"image": "https://i2.hdslb.com/bfs/garb/item/488870931b1bba66da36d22848f0720480d3d79a.png",
1095
"expire": 0,
1096
"image_enhance": "https://i2.hdslb.com/bfs/garb/item/5974f17f9d96a88bafba2f6d18d647a486e88312.webp",
1097
"image_enhance_frame": "https://i2.hdslb.com/bfs/garb/item/4316a3910bb0bd6f2f1c267a3e9187f0b9fe5bd0.png"
1098
},
1099
"nameplate": {
1100
"nid": 10,
1101
"name": "见习偶像",
1102
"image": "https://i0.hdslb.com/bfs/face/e93dd9edfa7b9e18bf46fd8d71862327a2350923.png",
1103
"image_small": "https://i1.hdslb.com/bfs/face/275b468b043ec246737ab8580a2075bee0b1263b.png",
1104
"level": "普通勋章",
1105
"condition": "所有自制视频总播放数>=10万"
1106
},
1107
"official": {
1108
"role": 2,
1109
"title": "bilibili创始人(站长)",
1110
"desc": "",
1111
"type": 0
1112
},
1113
"birthday": 622137600,
1114
"is_fake_account": 0,
1115
"is_deleted": 0,
1116
"in_reg_audit": 0,
1117
"face_nft": 0,
1118
"face_nft_new": 0,
1119
"is_senior_member": 1
1017
"silence": 0
1120
1018
}, {
1121
1019
"mid": 3,
1122
1020
"name": "囧囧倉",
@@ -1125,64 +1023,7 @@ curl -G 'https://api.vc.bilibili.com/account/v1/user/cards' \
1125
1023
"sign": "富强、民主、文明、和谐、自由、平等、公正、法治、爱国、敬业、诚信、友善。",
1126
1024
"rank": 10000,
1127
1025
"level": 5,
1128
"silence": 0,
1129
"vip": {
1130
"type": 0,
1131
"status": 0,
1132
"due_date": 0,
1133
"vip_pay_type": 0,
1134
"theme_type": 0,
1135
"label": {
1136
"path": "",
1137
"text": "",
1138
"label_theme": "",
1139
"text_color": "",
1140
"bg_style": 0,
1141
"bg_color": "",
1142
"border_color": "",
1143
"use_img_label": true,
1144
"img_label_uri_hans": "",
1145
"img_label_uri_hant": "",
1146
"img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/d7b702ef65a976b20ed854cbd04cb9e27341bb79.png",
1147
"img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/KJunwh19T5.png"
1148
},
1149
"avatar_subscript": 0,
1150
"nickname_color": "",
1151
"role": 0,
1152
"avatar_subscript_url": "",
1153
"tv_vip_status": 0,
1154
"tv_vip_pay_type": 0,
1155
"tv_due_date": 0
1156
},
1157
"pendant": {
1158
"pid": 0,
1159
"name": "",
1160
"image": "",
1161
"expire": 0,
1162
"image_enhance": "",
1163
"image_enhance_frame": ""
1164
},
1165
"nameplate": {
1166
"nid": 0,
1167
"name": "",
1168
"image": "",
1169
"image_small": "",
1170
"level": "",
1171
"condition": ""
1172
},
1173
"official": {
1174
"role": 0,
1175
"title": "",
1176
"desc": "",
1177
"type": -1
1178
},
1179
"birthday": 1262275200,
1180
"is_fake_account": 0,
1181
"is_deleted": 0,
1182
"in_reg_audit": 0,
1183
"face_nft": 0,
1184
"face_nft_new": 0,
1185
"is_senior_member": 0
1026
"silence": 0
1186
1027
}]
1187
1028
}
1188
1029
```