当前浏览的是 v7 预览版文档(v7 尚未正式发布,API 可能随版本调整)。本页是 v7 新增内容,去 v6 正式版文档首页
@ikenxuan/amagi

用户空间详细信息

取用户空间完整资料(等级、硬币、VIP、粉丝勋章等);名片类信息用 `userCard`。

GET
/api/bilibili/fetch_user_space_info

Authorization

bearerAuth
AuthorizationBearer <token>

仅在 startServer 传了 token 时生效

In: header

Query Parameters

host_mid*integer

UP 主 UID

Range1 <= value <= 9007199254740991

Response Body

application/json

application/json

curl -X GET "https://example.com/api/bilibili/fetch_user_space_info?host_mid=1"
{  "success": true,  "data": {    "code": 0,    "data": {      "attestation": {        "common_info": {          "prefix": "string",          "prefix_title": "string",          "title": "string"        },        "desc": "string",        "icon": "string",        "splice_info": {          "title": "string"        },        "type": 0      },      "birthday": "string",      "certificate_show": true,      "coins": 0,      "contract": null,      "control": 0,      "elec": {        "show_info": {          "icon": "string",          "jump_url": "string",          "jump_url_web": "string",          "list": null,          "long_title": "string",          "show": true,          "state": 0,          "title": "string",          "total": 0,          "upower_count_show": true        }      },      "face": "string",      "face_nft": 0,      "face_nft_type": 0,      "fans_badge": true,      "fans_medal": {        "detail": null,        "medal": null,        "show": true,        "wear": true      },      "gaia_data": null,      "gaia_res_type": 0,      "is_followed": true,      "is_risk": true,      "is_senior_member": 0,      "jointime": 0,      "level": 0,      "live_room": {        "broadcast_type": 0,        "cover": "string",        "liveStatus": 0,        "roomStatus": 0,        "roomid": 0,        "roundStatus": 0,        "title": "string",        "url": "string",        "watched_show": {          "icon": "string",          "icon_location": "string",          "icon_web": "string",          "num": 0,          "switch": true,          "text_large": "string",          "text_small": "string"        }      },      "mcn_info": null,      "mid": 0,      "moral": 0,      "name": "string",      "name_render": null,      "nameplate": {        "condition": "string",        "image": "string",        "image_small": "string",        "level": "string",        "name": "string",        "nid": 0      },      "official": {        "desc": "string",        "role": 0,        "title": "string",        "type": 0      },      "pendant": {        "expire": 0,        "image": "string",        "image_enhance": "string",        "image_enhance_frame": "string",        "n_pid": 0,        "name": "string",        "pid": 0      },      "profession": {        "department": "string",        "is_show": 0,        "name": "string",        "title": "string"      },      "rank": 0,      "school": null,      "series": {        "show_upgrade_window": true,        "user_upgrade_status": 0      },      "sex": "string",      "sign": "string",      "silence": 0,      "sys_notice": {},      "tags": null,      "theme": null,      "top_photo": "string",      "top_photo_v2": {        "l_200h_img": "string",        "l_img": "string",        "sid": 0      },      "user_honour_info": {        "colour": null,        "is_latest_100honour": 0,        "mid": 0,        "tags": [          null        ]      },      "vip": {        "avatar_icon": {          "icon_resource": {            "type": 0,            "url": "string"          },          "icon_type": 0        },        "avatar_subscript": 0,        "avatar_subscript_url": "string",        "due_date": 0,        "label": {          "bg_color": "string",          "bg_style": 0,          "border_color": "string",          "img_label_uri_hans": "string",          "img_label_uri_hans_static": "string",          "img_label_uri_hant": "string",          "img_label_uri_hant_static": "string",          "img_label_uri_i18n": "string",          "img_label_uri_i18n_static": "string",          "label_goto": {            "mobile": "string",            "pc_web": "string"          },          "label_id": 0,          "label_theme": "string",          "label_type": 0,          "path": "string",          "text": "string",          "text_color": "string",          "use_img_label": true        },        "nickname_color": "string",        "ott_info": {          "overdue_time": 0,          "pay_channel_id": "string",          "pay_type": 0,          "status": 0,          "vip_type": 0        },        "role": 0,        "status": 0,        "super_vip": {          "is_super_vip": true        },        "theme_type": 0,        "tv_due_date": 0,        "tv_vip_pay_type": 0,        "tv_vip_status": 0,        "type": 0,        "vip_pay_type": 0      }    },    "message": "string",    "ttl": 0  },  "error": {    "kind": "validation",    "code": "string",    "message": "string",    "retryable": true,    "platform": {      "code": "string",      "message": "string"    },    "http": {      "status": 0,      "statusText": "string"    },    "issues": [      {        "path": "string",        "message": "string",        "received": null      }    ]  },  "message": "string",  "meta": {    "requestId": "string",    "clientId": "string",    "platform": "douyin",    "endpoint": "string",    "durationMs": 0,    "attempts": 0,    "trace": [      {        "url": "string",        "method": "string",        "status": 0,        "durationMs": 0,        "reason": "initial",        "retryOf": "string"      }    ]  },  "requestPath": "/api/bilibili/fetch_one_video?bvid=BV1xx"}