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

用户名片信息

取用户名片(昵称、头像、个性签名、等级、认证)与粉丝、投稿数统计。

GET
/api/bilibili/fetch_user_profile

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_profile?host_mid=1"
{  "success": true,  "data": {    "code": 0,    "data": {      "archive_count": 0,      "article_count": 0,      "card": {        "DisplayRank": "string",        "Official": {          "desc": "string",          "role": 0,          "title": "string",          "type": 0        },        "approve": true,        "article": 0,        "attention": 0,        "attentions": [          null        ],        "birthday": "string",        "description": "string",        "face": "string",        "face_nft": 0,        "face_nft_type": 0,        "fans": 0,        "friend": 0,        "is_senior_member": 0,        "level_info": {          "current_exp": 0,          "current_level": 0,          "current_min": 0,          "next_exp": 0        },        "mid": "string",        "name": "string",        "name_render": null,        "nameplate": {          "condition": "string",          "image": "string",          "image_small": "string",          "level": "string",          "name": "string",          "nid": 0        },        "official_verify": {          "desc": "string",          "type": 0        },        "pendant": {          "expire": 0,          "image": "string",          "image_enhance": "string",          "image_enhance_frame": "string",          "n_pid": 0,          "name": "string",          "pid": 0        },        "place": "string",        "rank": "string",        "regtime": 0,        "sex": "string",        "sign": "string",        "spacesta": 0,        "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,          "vipStatus": 0,          "vipType": 0,          "vip_pay_type": 0        }      },      "follower": 0,      "following": true,      "like_num": 0,      "space": {        "l_img": "string",        "s_img": "string"      }    },    "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"}