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

XFEstudio/bilibili-API-collect

fix #1144 #1202 #1237

83654fd
晨叶梦春 <65224318+wuziqian211@users.noreply.github.com>
提交于

代码差异

1 个文件 +88 -139
Modified docs/user/info.md +88 -139
@@ -955,11 +955,13 @@ curl -G 'https://api.bilibili.com/x/space/myinfo' \
955 955
956 956 *请求方式:GET*
957 957
958 认证方式:Cookie(SESSDATA)
959
958 960 **url参数:**
959 961
960 962 | 参数名 | 类型 | 内容 | 必要性 | 备注 |
961 963 | ------ | ---- | ----------------- | ------ | ---------------------------------- |
962 | uids | nums | 目标用户的mid列表 | 必要 | 每个成员间用`,`分隔,最多200个成员 |
964 | uids | nums | 目标用户的mid列表 | 必要 | 每个成员间用`,`分隔,最多50个成员 |
963 965
964 966 **json回复:**
965 967
@@ -967,7 +969,7 @@ curl -G 'https://api.bilibili.com/x/space/myinfo' \
967 969
968 970 | 字段 | 类型 | 内容 | 备注 |
969 971 | ------- | ----- | -------- | -------------------------------------------------------- |
970 | code | num | 返回值 | 0:成功<br />-400:请求错误<br />40143:批量大小超过限制 |
972 | code | num | 返回值 | 0:成功<br />-101:账号未登录<br />-400:请求错误<br />40143:批量大小超过限制 |
971 973 | message | str | 错误信息 | 默认为0 |
972 974 | ttl | num | 1 | |
973 975 | data | obj | 信息本体 | 用户信息随机排序 |
@@ -983,16 +985,12 @@ curl -G 'https://api.bilibili.com/x/space/myinfo' \
983 985
984 986 | 字段 | 类型 | 内容 | 备注 |
985 987 | ------------ | ---- | ------------------- | -------------------- |
986 | face | str | 头像链接 | |
987 | face_nft | num | 是否为 NFT 头像 | 0:不是 NFT 头像<br />1:是 NFT 头像 |
988 | face_nft_new | num | 是否为新版 NFT 头像 | |
989 988 | mid | str | mid | |
989 | face | str | 头像链接 | |
990 990 | name | str | 昵称 | |
991 | name_render | 有效时:obj<br />无效时:null | 昵称渲染信息 | |
992 | nameplate | 有效时:obj<br />无效时:null | 勋章信息 | 基本同「[用户空间详细信息](#用户空间详细信息)」中的 `data.nameplate` 对象 |
993 991 | official | obj | 认证信息 | 基本同「[用户空间详细信息](#用户空间详细信息)」中的 `data.official` 对象 |
994 | pendant | 有效时:obj<br />无效时:null| 头像框信息 | 基本同「[用户空间详细信息](#用户空间详细信息)」中的 `data.pendant` 对象,其中有些类型为 `num` 的字段在本接口中类型为 `str` |
995 992 | vip | obj | 会员信息 | 基本同「[用户空间详细信息](#用户空间详细信息)」中的 `data.vip` 对象,其中有些类型为 `num` 的字段在本接口中类型为 `str` |
993 | name_render | 有效时:obj<br />无效时:null | 昵称渲染信息 | |
996 994
997 995 `{用户mid}`中的`name_render`对象:
998 996
@@ -1042,35 +1040,30 @@ curl -G 'https://api.bilibili.com/x/polymer/pc-electron/v1/user/cards' \
1042 1040 "ttl": 1,
1043 1041 "data": {
1044 1042 "1": {
1045 "face": "http://i1.hdslb.com/bfs/face/34c5b30a990c7ce4a809626d8153fa7895ec7b63.gif",
1046 "face_nft": 0,
1047 "face_nft_new": 0,
1048 1043 "mid": "1",
1044 "face": "http://i1.hdslb.com/bfs/face/34c5b30a990c7ce4a809626d8153fa7895ec7b63.gif",
1049 1045 "name": "bishi",
1050 "name_render": {
1051 "colors_info": { "color": [], "color_ids": [ "6" ] },
1052 "render_scheme": "Default"
1046 "official": {
1047 "desc": "",
1048 "role": 0,
1049 "title": "",
1050 "type": -1
1053 1051 },
1054 "nameplate": null,
1055 "official": { "desc": "", "role": 0, "title": "", "type": -1 },
1056 "pendant": null,
1057 1052 "vip": {
1058 "avatar_icon": {
1059 "icon_resource": {
1060 "type": "ICON_RES_TYPE_IMAGE",
1061 "url": "https://i0.hdslb.com/bfs/bangumi/kt/aba51485c0d02940c89aeefcf6680510d9858472.png"
1062 },
1063 "icon_type": "ICON_TYPE_VIP_ACTIVITY"
1064 },
1065 1053 "avatar_subscript": 1,
1066 1054 "avatar_subscript_url": "",
1067 "due_date": "1883059200000",
1055 "due_date": "1912521600000",
1056 "nickname_color": "#FB7299",
1057 "role": "7",
1058 "status": 1,
1059 "theme_type": 0,
1060 "type": 2,
1068 1061 "label": {
1069 1062 "bg_color": "#FB7299",
1070 1063 "bg_style": 1,
1071 1064 "border_color": "",
1072 1065 "img_label_uri_hans": "",
1073 "img_label_uri_hans_static": "https://i0.hdslb.com/bfs/bangumi/kt/fb0a74b14d6a4e119ae301ba2693febeda051030.png",
1066 "img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/adb599797dd171e2d3d6d012f448b49679258344.png",
1074 1067 "img_label_uri_hant": "",
1075 1068 "img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/sGu57N6pgK.png",
1076 1069 "label_theme": "ten_annual_vip",
@@ -1078,63 +1071,35 @@ curl -G 'https://api.bilibili.com/x/polymer/pc-electron/v1/user/cards' \
1078 1071 "text": "十年大会员",
1079 1072 "text_color": "#FFFFFF",
1080 1073 "use_img_label": true
1081 },
1082 "nickname_color": "#FB7299",
1083 "role": "7",
1084 "status": 1,
1085 "theme_type": 0,
1086 "tv_due_date": "1633622400",
1087 "tv_vip_pay_type": 0,
1088 "tv_vip_status": 0,
1089 "type": 2,
1090 "vip_pay_type": 1
1091 }
1074 }
1075 },
1076 "name_render": null
1092 1077 },
1093 1078 "2": {
1094 "face": "https://i2.hdslb.com/bfs/face/ef0457addb24141e15dfac6fbf45293ccf1e32ab.jpg",
1095 "face_nft": 0,
1096 "face_nft_new": 0,
1097 1079 "mid": "2",
1080 "face": "https://i2.hdslb.com/bfs/face/ef0457addb24141e15dfac6fbf45293ccf1e32ab.jpg",
1098 1081 "name": "碧诗",
1099 "name_render": {
1100 "colors_info": { "color": [], "color_ids": [ "6" ] },
1101 "render_scheme": "Default"
1102 },
1103 "nameplate": {
1104 "condition": "所有自制视频总播放数>=10万",
1105 "image": "https://i1.hdslb.com/bfs/face/e93dd9edfa7b9e18bf46fd8d71862327a2350923.png",
1106 "image_small": "https://i2.hdslb.com/bfs/face/275b468b043ec246737ab8580a2075bee0b1263b.png",
1107 "level": "普通勋章",
1108 "name": "见习偶像",
1109 "nid": 10
1110 },
1111 "official": { "desc": "", "role": 2, "title": "bilibili创始人(站长)", "type": 0 },
1112 "pendant": {
1113 "expire": "0",
1114 "image": "https://i2.hdslb.com/bfs/garb/item/488870931b1bba66da36d22848f0720480d3d79a.png",
1115 "image_enhance": "https://i2.hdslb.com/bfs/garb/item/5974f17f9d96a88bafba2f6d18d647a486e88312.webp",
1116 "image_enhance_frame": "https://i2.hdslb.com/bfs/garb/item/4316a3910bb0bd6f2f1c267a3e9187f0b9fe5bd0.png",
1117 "n_pid": "32257",
1118 "name": "EveOneCat2",
1119 "pid": 32257
1082 "official": {
1083 "desc": "",
1084 "role": 2,
1085 "title": "bilibili创始人(站长)",
1086 "type": 0
1120 1087 },
1121 1088 "vip": {
1122 "avatar_icon": {
1123 "icon_resource": {
1124 "type": "ICON_RES_TYPE_IMAGE",
1125 "url": "https://i0.hdslb.com/bfs/bangumi/kt/aba51485c0d02940c89aeefcf6680510d9858472.png"
1126 },
1127 "icon_type": "ICON_TYPE_VIP_ACTIVITY"
1128 },
1129 1089 "avatar_subscript": 1,
1130 1090 "avatar_subscript_url": "",
1131 "due_date": "3968841600000",
1091 "due_date": "3995625600000",
1092 "nickname_color": "#FB7299",
1093 "role": "7",
1094 "status": 1,
1095 "theme_type": 0,
1096 "type": 2,
1132 1097 "label": {
1133 1098 "bg_color": "#FB7299",
1134 1099 "bg_style": 1,
1135 1100 "border_color": "",
1136 "img_label_uri_hans": "",
1137 "img_label_uri_hans_static": "https://i0.hdslb.com/bfs/bangumi/kt/53845a8ab8b226131c5d89b198d4b61de91d0aa2.png",
1101 "img_label_uri_hans": "https://i0.hdslb.com/bfs/activity-plat/static/20220608/e369244d0b14644f5e1a06431e22a4d5/wltavwHAkL.gif",
1102 "img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/802418ff03911645648b63aa193ba67997b5a0bc.png",
1138 1103 "img_label_uri_hant": "",
1139 1104 "img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/8u7iRTPE7N.png",
1140 1105 "label_theme": "ten_annual_vip",
@@ -1142,43 +1107,29 @@ curl -G 'https://api.bilibili.com/x/polymer/pc-electron/v1/user/cards' \
1142 1107 "text": "十年大会员",
1143 1108 "text_color": "#FFFFFF",
1144 1109 "use_img_label": true
1145 },
1146 "nickname_color": "#FB7299",
1147 "role": "7",
1148 "status": 1,
1149 "theme_type": 0,
1150 "tv_due_date": "2003500800",
1151 "tv_vip_pay_type": 1,
1152 "tv_vip_status": 1,
1153 "type": 2,
1154 "vip_pay_type": 0
1155 }
1110 }
1111 },
1112 "name_render": null
1156 1113 },
1157 1114 "3": {
1158 "face": "http://i0.hdslb.com/bfs/face/d4de6a84557eea8f18510a3f61115d96832aa071.jpg",
1159 "face_nft": 0,
1160 "face_nft_new": 0,
1161 1115 "mid": "3",
1116 "face": "http://i0.hdslb.com/bfs/face/d4de6a84557eea8f18510a3f61115d96832aa071.jpg",
1162 1117 "name": "囧囧倉",
1163 "name_render": {
1164 "colors_info": {
1165 "color": [
1166 { "color_day": "#CB7919", "color_night": "#E2963C" },
1167 { "color_day": "#E6A75B", "color_night": "#E6A75B" },
1168 { "color_day": "#E9BD67", "color_night": "#F8CE7E" }
1169 ],
1170 "color_ids": [ "6" ]
1171 },
1172 "render_scheme": "Colorful"
1118 "official": {
1119 "desc": "",
1120 "role": 0,
1121 "title": "",
1122 "type": -1
1173 1123 },
1174 "nameplate": null,
1175 "official": { "desc": "", "role": 0, "title": "", "type": -1 },
1176 "pendant": null,
1177 1124 "vip": {
1178 "avatar_icon": null,
1179 1125 "avatar_subscript": 0,
1180 1126 "avatar_subscript_url": "",
1181 1127 "due_date": "0",
1128 "nickname_color": "",
1129 "role": "0",
1130 "status": 0,
1131 "theme_type": 0,
1132 "type": 0,
1182 1133 "label": {
1183 1134 "bg_color": "",
1184 1135 "bg_style": 0,
@@ -1192,17 +1143,9 @@ curl -G 'https://api.bilibili.com/x/polymer/pc-electron/v1/user/cards' \
1192 1143 "text": "",
1193 1144 "text_color": "",
1194 1145 "use_img_label": true
1195 },
1196 "nickname_color": "",
1197 "role": "0",
1198 "status": 0,
1199 "theme_type": 0,
1200 "tv_due_date": "0",
1201 "tv_vip_pay_type": 0,
1202 "tv_vip_status": 0,
1203 "type": 0,
1204 "vip_pay_type": 0
1205 }
1146 }
1147 },
1148 "name_render": null
1206 1149 }
1207 1150 }
1208 1151 }
@@ -1216,6 +1159,8 @@ curl -G 'https://api.bilibili.com/x/polymer/pc-electron/v1/user/cards' \
1216 1159
1217 1160 *请求方式:GET*
1218 1161
1162 认证方式:Cookie(SESSDATA)
1163
1219 1164 本接口较其他接口相比,只会返回非常有限的信息
1220 1165
1221 1166 **url参数:**
@@ -1230,7 +1175,7 @@ curl -G 'https://api.bilibili.com/x/polymer/pc-electron/v1/user/cards' \
1230 1175
1231 1176 | 字段 | 类型 | 内容 | 备注 |
1232 1177 | ------- | ----- | -------- | --------------------------- |
1233 | code | num | 返回值 | 0:成功<br />-400:请求错误 |
1178 | code | num | 返回值 | 0:成功<br />-101:账号未登录<br />-400:请求错误 |
1234 1179 | message | str | 错误信息 | 默认为0 |
1235 1180 | ttl | num | 1 | |
1236 1181 | data | array | 信息本体 | 用户信息随机排序 |
@@ -1269,34 +1214,38 @@ curl -G 'https://api.vc.bilibili.com/account/v1/user/cards' \
1269 1214
1270 1215 ```json
1271 1216 {
1272 "code": 0,
1273 "message": "",
1274 "ttl": 1,
1275 "data": [{
1276 "mid": 1,
1277 "name": "bishi",
1278 "face": "http://i1.hdslb.com/bfs/face/34c5b30a990c7ce4a809626d8153fa7895ec7b63.gif",
1279 "sign": "",
1280 "rank": 10000,
1281 "level": 6,
1282 "silence": 0
1283 }, {
1284 "mid": 2,
1285 "name": "碧诗",
1286 "face": "http://i2.hdslb.com/bfs/face/ef0457addb24141e15dfac6fbf45293ccf1e32ab.jpg",
1287 "sign": "https://kami.im 直男过气网红 # We Are Star Dust",
1288 "rank": 20000,
1289 "level": 6,
1290 "silence": 0
1291 }, {
1292 "mid": 3,
1293 "name": "囧囧倉",
1294 "face": "http://i0.hdslb.com/bfs/face/d4de6a84557eea8f18510a3f61115d96832aa071.jpg",
1295 "sign": "富强、民主、文明、和谐、自由、平等、公正、法治、爱国、敬业、诚信、友善。",
1296 "rank": 10000,
1297 "level": 6,
1298 "silence": 0
1299 }]
1217 "code": 0,
1218 "message": "0",
1219 "ttl": 1,
1220 "data": [
1221 {
1222 "mid": 3,
1223 "name": "囧囧倉",
1224 "face": "http://i0.hdslb.com/bfs/face/d4de6a84557eea8f18510a3f61115d96832aa071.jpg",
1225 "sign": "富强、民主、文明、和谐、自由、平等、公正、法治、爱国、敬业、诚信、友善。",
1226 "rank": 10000,
1227 "level": 6,
1228 "silence": 0
1229 },
1230 {
1231 "mid": 2,
1232 "name": "碧诗",
1233 "face": "https://i2.hdslb.com/bfs/face/ef0457addb24141e15dfac6fbf45293ccf1e32ab.jpg",
1234 "sign": "https://kami.im 直男过气网红 # We Are Star Dust",
1235 "rank": 20000,
1236 "level": 6,
1237 "silence": 0
1238 },
1239 {
1240 "mid": 1,
1241 "name": "bishi",
1242 "face": "http://i1.hdslb.com/bfs/face/34c5b30a990c7ce4a809626d8153fa7895ec7b63.gif",
1243 "sign": "",
1244 "rank": 10000,
1245 "level": 6,
1246 "silence": 0
1247 }
1248 ]
1300 1249 }
1301 1250 ```
1302 1251