Open Hugozys opened 2 years ago
以下API似乎可以得到指定用户的所有粉丝勋章信息,需要处于登陆状态:
https://api.live.bilibili.com/xlive/web-ucenter/user/MedalWall?target_id=<uid>
样例请求:
https://api.live.bilibili.com/xlive/web-ucenter/user/MedalWall?target_id=621179304
样例响应:
{ "code": 0, "message": "0", "ttl": 1, "data": { "list": [ { "medal_info": { "target_id": 621179304, "level": 10, "medal_name": "阿酥酥", "medal_color_start": 9272486, "medal_color_end": 9272486, "medal_color_border": 9272486, "guard_level": 0, "wearing_status": 1, "medal_id": 703111, "intimacy": 3298, "next_intimacy": 5500, "today_feed": 200, "day_limit": 1500, "guard_icon": "", "honor_icon": "" }, "target_name": "Suma哟", "target_icon": "http://i0.hdslb.com/bfs/face/dc6b559b7cbeaccae267aa5d7b11adeaec46402a.jpg", "link": "https://space.bilibili.com/621179304", "live_status": 2, "official": 0 }, { "medal_info": { "target_id": 246792178, "level": 21, "medal_name": "我开了", "medal_color_start": 1725515, "medal_color_end": 5414290, "medal_color_border": 6809855, "guard_level": 3, "wearing_status": 0, "medal_id": 768541, "intimacy": 1386, "next_intimacy": 2000, "today_feed": 0, "day_limit": 250000, "guard_icon": "https://i0.hdslb.com/bfs/live/143f5ec3003b4080d1b5f817a9efdca46d631945.png", "honor_icon": "" }, "target_name": "鸿运小电脑", "target_icon": "http://i1.hdslb.com/bfs/face/e73d5585e5fcc6e8c8c3c1dc0817e837cf90eefa.jpg", "link": "https://space.bilibili.com/246792178", "live_status": 0, "official": 0 }, { "medal_info": { "target_id": 5762940, "level": 11, "medal_name": "垚篮曲", "medal_color_start": 9272486, "medal_color_end": 9272486, "medal_color_border": 9272486, "guard_level": 0, "wearing_status": 0, "medal_id": 70960, "intimacy": 3608, "next_intimacy": 10000, "today_feed": 0, "day_limit": 1500, "guard_icon": "", "honor_icon": "" }, "target_name": "圆滚滚的垚垚", "target_icon": "http://i0.hdslb.com/bfs/face/792746b65bb43018398d00801e5fd7e2a95dc006.jpg", "link": "https://space.bilibili.com/5762940", "live_status": 2, "official": 0 }, { "medal_info": { "target_id": 22997824, "level": 5, "medal_name": "JJmr", "medal_color_start": 6126494, "medal_color_end": 6126494, "medal_color_border": 6126494, "guard_level": 0, "wearing_status": 0, "medal_id": 672313, "intimacy": 899, "next_intimacy": 1000, "today_feed": 0, "day_limit": 1500, "guard_icon": "", "honor_icon": "" }, "target_name": "琴师丶丶丶", "target_icon": "http://i1.hdslb.com/bfs/face/16fd5edfacb4a92b482dbdb31f075a35380d7be1.jpg", "link": "https://space.bilibili.com/22997824", "live_status": 0, "official": 0 } ], "count": 4, "close_space_medal": 0, "only_show_wearing": 0, "name": "Suma哟", "icon": "http://i0.hdslb.com/bfs/face/dc6b559b7cbeaccae267aa5d7b11adeaec46402a.jpg", "uid": 94545982, "level": 2 } }
登录还是需要登录的
是的,一开始以为自己在incognito模式下访问,其实已经登陆了。已经更正。
Example request out of date. New example:
curl -G 'https://api.live.bilibili.com/xlive/web-ucenter/user/MedalWall' \ --url-query 'target_id=293793435'
Please close. See 所有粉丝勋章.
以下API似乎可以得到指定用户的所有粉丝勋章信息,需要处于登陆状态:
样例请求:
样例响应: