21.9.6更新,米游社更新了ds算法以及1,2,3接口地址和传入header
21.11.6更新,更新了实时note查询接口(体力等信息),需要使用本人cookie
米游社查询接口
https://api-takumi.mihoyo.com/game_record/app/genshin/api/index
GET
可获取到该id全部角色和活跃天数宝箱等信息,字段说明如下传入字段 说明 可能的值 role_id 原神游戏ID any number server 所在服 cn_gf01或cn_qd01 - https://api-takumi.mihoyo.com/game_record/app/genshin/api/character
POST
https://api-takumi.mihoyo.com/game_record/genshin/api/character
发送时在body附带json
{"character_ids":[角色id,角色id,角色id,..........],"role_id":"游戏ID","server":"所在服"}
character_ids可以在上一条的全部角色数组中获取到,不同账号的同一个角色的id都一样
https://api-takumi.mihoyo.com/game_record/app/genshin/api/spiralAbyss
GET
https://api-takumi.mihoyo.com/game_record/genshin/api/spiralAbyss
深渊信息,其中包含所打的深渊层基本信息,和一些排名数据(如使用角色次数、角色元素爆发数、角色抗伤等排名数据)传入字段 说明 可能的值 role_id 原神游戏ID any number schedule_type 深渊代码(本期/上期) 1为本期深渊,2为上期深渊 server 所在服 cn_gf01或cn_qd01 https://api-takumi.mihoyo.com/game_record/app/genshin/api/dailyNote
GET
新接口查询实时便签(体力,委托等信息),需要在米游社中开启后使用,仅cookie所有者能查询,否则会返回空值。
传入字段 | 说明 | 可能的值 |
---|---|---|
role_id | 原神游戏ID | any number |
server | 所在服 | cn_gf01或cn_qd01 |
https://hk4e-api.mihoyo.com/event/ys_ledger/monthDetail
原神账号摩拉原石获取记录(近三个月)传入字段 说明 可能的值 page 页数 1 month 月份,仅支持查询近三个月 1 limit 一次的返回信息数量 20 type 原石/摩拉查询 1为原石,2为摩拉 bind_uid 游戏ID 12345678 bind_region 所在服 cn_gf01或cn_qd01 bbs_presentation_style 未知 fullscreen bbs_auth_required 未知(可能能省略) true utm_source 未知(可能能省略) bbs utm_medium 未知(可能能省略) mys utm_campaign 未知(可能能省略) icon 此条API仅限Cookie本身账号,其他账号会提示Invalid schedule type
以上API除了
2
为传入json之外,别的都是正常的GET
请求以上API为原神查询接口API,需要加入headers请求头认证,否则会提示
invalid request
,headers请求头的定义如下:请求头名 说明 可能的值 x-rpc-app_version 米游社版本号 2.11.1 x-rpc-client_type 客户端类型(IOS/Android) 5 Cookie 米游社Cookie,可以通过电脑登录米游社获取 any DS 重要!说明见下 Referer Referer https://webstatic.mihoyo.com/ User-Agent Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) miHoYoBBS/2.11.1") Accept-Language zh-cn Accept-Encoding gzip, deflate, br 上述请求头,部分可能可以省略,请自行测试
DS请求头说明,重要!
DS请求头是米游社接口的校验,java算法如下
private static final String API_SALT = "xV8v4Qu54lUKrEYFZkJhB8cuOh9Asafs";
/**
* 米游社加密DS算法21.9.6
*
* @return
*/
public static String GetDS(Map<String, String> query, String body) {
String i = "" + System.currentTimeMillis() / 1000;
String r = MyRandom(6);
String q = "";
if (query != null){
Set<String> queryKeys = query.keySet();
List<String> que = new ArrayList<>();
for (String queryKey : queryKeys) {
que.add(queryKey + "=" + query.get(queryKey));
}
q = StringUtils.join(que, "&");
}
String c = DigestUtils.md5Hex("salt=" + API_SALT + "&t=" + i + "&r=" + r + "&b=" + body + "&q=" + q);
return i + "," + r + "," + c;
}
新版算法相对旧版增加了两个值b和q,这边又分为两种情况GET
请求和POST
请求
GET
:需要传参的值作为q的值,例如:q=role_id=12345&server=cn_gf01
,body的值为空,因此b=""POST
:不需要传入传参的值,因为传参为json字符串并传入body中,这时就需要将body值传入作为b的值,即b=body
注意,这些传参的值都拥有顺序,比如
role_id=12345&server=cn_gf01
和server=cn_gf01&role_id=12345
就不是一个东西,java建议使用treemap
而不是hashmap
以排列顺序,顺序严格按照上面表的排列顺序。
旧版米游社DS算法
/**
* 米游社加密DS算法
*
* @return
*/
private static String GetDS() {
String md5str = "14bmu1mz0yuljprsfgpvjh3ju2ni468r";
String i = "" + System.currentTimeMillis() / 1000;
String r = MyRandom(6);
String c = DigestUtils.md5Hex("salt=" + md5str + "&t=" + i + "&r=" + r);
return i + "," + r + "," + c;
}
其中包含的salt
字段为加盐值,该值有可能改变,获取改盐值最简单的办法就是去github上找此类项目(偷懒ing),例如:
https://github.com/Azure99/GenshinPlayerQuery/blob/main/src/Core/GenshinAPI.cs
- https://api-takumi.mihoyo.com/game_record/card/wapi/getGameRecordCard?uid=(米游社ID)
可通过该接口,通过米游社UID获得对应原神UID和基本信息,若对方在米游社设置隐藏,则返回结果List为空注意是米游社ID!!不是原神ID!!
米游社文章(web)接口
米游社文章实际链接地址并不是地址栏中的地址,你如果开了f12调试可以发现,他会不停转圈圈加载并且有反调试,抓包得出以下两个主要地址
- 获取文章主体内容
https://bbs-api.mihoyo.com/post/wapi/getPostFull?read=1&gids=2&post_id=post_id
为文章id,可以在地址栏中取到 获取文章评论
https://bbs-api.mihoyo.com/post/wapi/getPostReplies?gids=2&is_hot=true&size=20&post_id=xxx注意:米游社文章接口也需要传入加密DS信息,并且web端的请求头与上面查询接口有所不同,详细见下
直接上java代码,据观察,有可能和x-rpc-client_type
以及Referer
有较大的联系,校验错误则返回403public static Map<String, String> getPcHeaders() { Map<String, String> headers = new HashMap<>(); headers.put("Accept-Encoding", "gzip, deflate, br"); headers.put("Accept-Language", "zh-cn"); headers.put("Connection", "keep-alive"); headers.put("Host", "api-takumi.mihoyo.com"); headers.put("x-rpc-app_version", "2.11.0"); headers.put("x-rpc-client_type", "4"); // headers.put("Cookie", cookie); headers.put("Referer", "https://bbs.mihoyo.com/"); headers.put("DS", GetDS()); return headers; }
最后附上一些json预览
信息查询接口返回:
{ "retcode":0, "message":"OK", "data":{ "role":null, "avatars":[ { "id":10000014, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Barbara.png", "name":"芭芭拉", "element":"Hydro", "fetter":10, "level":90, "rarity":4, "actived_constellation_num":6 }, { "id":10000016, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Diluc.png", "name":"迪卢克", "element":"Pyro", "fetter":10, "level":90, "rarity":5, "actived_constellation_num":3 }, { "id":10000030, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Zhongli.png", "name":"钟离", "element":"Geo", "fetter":10, "level":90, "rarity":5, "actived_constellation_num":1 }, { "id":10000034, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Noel.png", "name":"诺艾尔", "element":"Geo", "fetter":10, "level":90, "rarity":4, "actived_constellation_num":6 }, { "id":10000037, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ganyu.png", "name":"甘雨", "element":"Cryo", "fetter":10, "level":90, "rarity":5, "actived_constellation_num":0 }, { "id":10000046, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Hutao.png", "name":"胡桃", "element":"Pyro", "fetter":10, "level":90, "rarity":5, "actived_constellation_num":1 }, { "id":10000032, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Bennett.png", "name":"班尼特", "element":"Pyro", "fetter":10, "level":86, "rarity":4, "actived_constellation_num":4 }, { "id":10000042, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Keqing.png", "name":"刻晴", "element":"Electro", "fetter":10, "level":85, "rarity":5, "actived_constellation_num":2 }, { "id":10000025, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xingqiu.png", "name":"行秋", "element":"Hydro", "fetter":10, "level":81, "rarity":4, "actived_constellation_num":6 }, { "id":10000022, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Venti.png", "name":"温迪", "element":"Anemo", "fetter":10, "level":80, "rarity":5, "actived_constellation_num":0 }, { "id":10000023, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xiangling.png", "name":"香菱", "element":"Pyro", "fetter":10, "level":80, "rarity":4, "actived_constellation_num":6 }, { "id":10000024, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Beidou.png", "name":"北斗", "element":"Electro", "fetter":10, "level":80, "rarity":4, "actived_constellation_num":4 }, { "id":10000026, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xiao.png", "name":"魈", "element":"Anemo", "fetter":10, "level":80, "rarity":5, "actived_constellation_num":0 }, { "id":10000027, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ningguang.png", "name":"凝光", "element":"Geo", "fetter":10, "level":80, "rarity":4, "actived_constellation_num":4 }, { "id":10000021, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ambor.png", "name":"安柏", "element":"Pyro", "fetter":10, "level":70, "rarity":4, "actived_constellation_num":2 }, { "id":10000029, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Klee.png", "name":"可莉", "element":"Pyro", "fetter":10, "level":70, "rarity":5, "actived_constellation_num":0 }, { "id":10000031, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Fischl.png", "name":"菲谢尔", "element":"Electro", "fetter":10, "level":70, "rarity":4, "actived_constellation_num":5 }, { "id":10000036, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Chongyun.png", "name":"重云", "element":"Cryo", "fetter":10, "level":70, "rarity":4, "actived_constellation_num":6 }, { "id":10000039, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Diona.png", "name":"迪奥娜", "element":"Cryo", "fetter":10, "level":70, "rarity":4, "actived_constellation_num":5 }, { "id":10000006, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Lisa.png", "name":"丽莎", "element":"Electro", "fetter":9, "level":70, "rarity":4, "actived_constellation_num":0 }, { "id":10000020, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Razor.png", "name":"雷泽", "element":"Electro", "fetter":9, "level":70, "rarity":4, "actived_constellation_num":4 }, { "id":10000048, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Feiyan.png", "name":"烟绯", "element":"Pyro", "fetter":9, "level":70, "rarity":4, "actived_constellation_num":5 }, { "id":10000002, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ayaka.png", "name":"神里绫华", "element":"Cryo", "fetter":8, "level":90, "rarity":5, "actived_constellation_num":0 }, { "id":10000015, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Kaeya.png", "name":"凯亚", "element":"Cryo", "fetter":8, "level":70, "rarity":4, "actived_constellation_num":2 }, { "id":10000043, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Sucrose.png", "name":"砂糖", "element":"Anemo", "fetter":8, "level":70, "rarity":4, "actived_constellation_num":4 }, { "id":10000044, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xinyan.png", "name":"辛焱", "element":"Pyro", "fetter":8, "level":70, "rarity":4, "actived_constellation_num":1 }, { "id":10000053, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Sayu.png", "name":"早柚", "element":"Anemo", "fetter":3, "level":70, "rarity":4, "actived_constellation_num":1 }, { "id":10000007, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_PlayerGirl.png", "name":"旅行者", "element":"Geo", "fetter":0, "level":80, "rarity":5, "actived_constellation_num":6 } ], "stats":{ "active_day_number":331, "achievement_number":410, "win_rate":0, "anemoculus_number":66, "geoculus_number":131, "avatar_number":28, "way_point_number":112, "domain_number":28, "spiral_abyss":"12-3", "precious_chest_number":249, "luxurious_chest_number":95, "exquisite_chest_number":935, "common_chest_number":1084, "electroculus_number":95 }, "city_explorations":[ ], "world_explorations":[ { "level":6, "exploration_percentage":1000, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/city_icon/UI_ChapterIcon_Daoqi.png", "name":"稻妻", "type":"Reputation", "offerings":[ { "name":"神樱眷顾", "level":20 } ], "id":4 }, { "level":12, "exploration_percentage":1000, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/city_icon/UI_ChapterIcon_Dragonspine.png", "name":"龙脊雪山", "type":"Offering", "offerings":[ { "name":"忍冬之树", "level":12 } ], "id":3 }, { "level":8, "exploration_percentage":1000, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/city_icon/UI_ChapterIcon_Liyue.png", "name":"璃月", "type":"Reputation", "offerings":[ ], "id":2 }, { "level":8, "exploration_percentage":1000, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/city_icon/UI_ChapterIcon_Mengde.png", "name":"蒙德", "type":"Reputation", "offerings":[ ], "id":1 } ], "homes":[ { "level":10, "visit_num":51, "comfort_num":36200, "item_num":1143, "name":"罗浮洞", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/home/UI_HomeworldModule_2_Pic.png", "comfort_level_name":"贝阙珠宫", "comfort_level_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/home/UI_Homeworld_Comfort_10.png" }, { "level":10, "visit_num":51, "comfort_num":36200, "item_num":1143, "name":"翠黛峰", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/home/UI_HomeworldModule_1_Pic.png", "comfort_level_name":"贝阙珠宫", "comfort_level_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/home/UI_Homeworld_Comfort_10.png" }, { "level":10, "visit_num":51, "comfort_num":36200, "item_num":1143, "name":"清琼岛", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/home/UI_HomeworldModule_3_Pic.png", "comfort_level_name":"贝阙珠宫", "comfort_level_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/home/UI_Homeworld_Comfort_10.png" } ] } }
查询指定UID的某一个角色详情
{ "retcode":0, "message":"OK", "data":{ "avatars":[ { "id":10000014, "image":"https://upload-bbs.mihoyo.com/game_record/genshin/character_image/UI_AvatarIcon_Barbara@2x.png", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Barbara.png", "name":"芭芭拉", "element":"Hydro", "fetter":10, "level":90, "rarity":4, "weapon":{ "id":14406, "name":"试作金珀", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/equip/UI_EquipIcon_Catalyst_Proto.png", "type":10, "rarity":4, "level":90, "promote_level":6, "type_name":"法器", "desc":"黑岩厂中秘藏的金珀法器。其中黯黯绽放着日月星光。", "affix_level":5 }, "reliquaries":[ { "id":74544, "name":"远方的少女之心", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/equip/UI_RelicIcon_14004_4.png", "pos":1, "rarity":5, "level":20, "set":{ "id":2140041, "name":"被怜爱的少女", "affixes":[ { "activation_number":2, "effect":"角色造成的治疗效果提升15%。" }, { "activation_number":4, "effect":"施放元素战技或元素爆发后的10秒内,队伍中所有角色受治疗效果加成提高20%。" } ] }, "pos_name":"生之花" }, { "id":74523, "name":"少女飘摇的思念", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/equip/UI_RelicIcon_14004_2.png", "pos":2, "rarity":5, "level":20, "set":{ "id":2140041, "name":"被怜爱的少女", "affixes":[ { "activation_number":2, "effect":"角色造成的治疗效果提升15%。" }, { "activation_number":4, "effect":"施放元素战技或元素爆发后的10秒内,队伍中所有角色受治疗效果加成提高20%。" } ] }, "pos_name":"死之羽" }, { "id":74553, "name":"少女苦短的良辰", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/equip/UI_RelicIcon_14004_5.png", "pos":3, "rarity":5, "level":20, "set":{ "id":2140041, "name":"被怜爱的少女", "affixes":[ { "activation_number":2, "effect":"角色造成的治疗效果提升15%。" }, { "activation_number":4, "effect":"施放元素战技或元素爆发后的10秒内,队伍中所有角色受治疗效果加成提高20%。" } ] }, "pos_name":"时之沙" }, { "id":77513, "name":"吟游者之壶", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/equip/UI_RelicIcon_15003_1.png", "pos":4, "rarity":5, "level":20, "set":{ "id":2150031, "name":"流浪大地的乐团", "affixes":[ { "activation_number":2, "effect":"元素精通提高80点。" }, { "activation_number":4, "effect":"装备该圣遗物套装的角色为法器、弓箭角色时,角色重击造成的伤害提高35%。" } ] }, "pos_name":"空之杯" }, { "id":74534, "name":"少女易逝的芳颜", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/equip/UI_RelicIcon_14004_3.png", "pos":5, "rarity":5, "level":20, "set":{ "id":2140041, "name":"被怜爱的少女", "affixes":[ { "activation_number":2, "effect":"角色造成的治疗效果提升15%。" }, { "activation_number":4, "effect":"施放元素战技或元素爆发后的10秒内,队伍中所有角色受治疗效果加成提高20%。" } ] }, "pos_name":"理之冠" } ], "constellations":[ { "id":141, "name":"彩色歌谣", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/constellation_icon/UI_Talent_S_Barbara_01.png", "effect":"芭芭拉每10秒恢复1点元素能量。", "is_actived":true, "pos":1 }, { "id":142, "name":"元气迸发", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/constellation_icon/UI_Talent_S_Barbara_02.png", "effect":"\u003ccolor=#FFD780FF\u003e演唱,开始♪\u003c/color\u003e的冷却时间降低15%;\\n技能持续期间,当前场上自己的角色获得15%\u003ccolor=#80C0FFFF\u003e水元素伤害加成\u003c/color\u003e。", "is_actived":true, "pos":2 }, { "id":143, "name":"明日之星", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/constellation_icon/UI_Talent_U_Barbara_02.png", "effect":"\u003ccolor=#FFD780FF\u003e闪耀奇迹♪\u003c/color\u003e的技能等级提高3级。\\n至多提升至15级。", "is_actived":true, "pos":3 }, { "id":144, "name":"努力即魔法", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/constellation_icon/UI_Talent_S_Barbara_03.png", "effect":"芭芭拉使用重击时,每命中一个敌人,就恢复1点元素能量。\\n通过这种方式,一次至多回复5点元素能量。", "is_actived":true, "pos":4 }, { "id":145, "name":"纯真的羁绊", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/constellation_icon/UI_Talent_U_Barbara_01.png", "effect":"\u003ccolor=#FFD780FF\u003e演唱,开始♪\u003c/color\u003e的技能等级提高3级。\\n至多提升至15级。", "is_actived":true, "pos":5 }, { "id":146, "name":"将一切美好献给你", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/constellation_icon/UI_Talent_S_Barbara_04.png", "effect":"芭芭拉处于队伍后台时,队伍中自己的角色倒下时,则立即:\\n·复苏该角色;\\n·将该角色生命值恢复至100%。\\n该效果每15分钟只能触发一次。", "is_actived":true, "pos":6 } ], "actived_constellation_num":6, "costumes":[ { "id":201401, "name":"闪耀协奏", "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/costume/UI_AvatarIcon_BarbaraCostumeSummertime@2x.png" } ] } ] } }
深渊信息:
{ "retcode":0, "message":"OK", "data":{ "schedule_id":28, "start_time":"1629057600", "end_time":"1630439999", "total_battle_times":18, "total_win_times":12, "max_floor":"12-3", "reveal_rank":[ { "avatar_id":10000002, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ayaka.png", "value":12, "rarity":5 }, { "avatar_id":10000025, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xingqiu.png", "value":12, "rarity":4 }, { "avatar_id":10000022, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Venti.png", "value":12, "rarity":5 }, { "avatar_id":10000032, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Bennett.png", "value":12, "rarity":4 }, { "avatar_id":10000037, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ganyu.png", "value":12, "rarity":5 }, { "avatar_id":10000016, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Diluc.png", "value":9, "rarity":5 }, { "avatar_id":10000014, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Barbara.png", "value":9, "rarity":4 }, { "avatar_id":10000030, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Zhongli.png", "value":9, "rarity":5 }, { "avatar_id":10000029, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Klee.png", "value":3, "rarity":5 }, { "avatar_id":10000046, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Hutao.png", "value":3, "rarity":5 }, { "avatar_id":10000023, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xiangling.png", "value":3, "rarity":4 } ], "defeat_rank":[ { "avatar_id":10000016, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Diluc.png", "value":51, "rarity":5 }, { "avatar_id":10000037, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Ganyu.png", "value":24, "rarity":5 }, { "avatar_id":10000002, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Ayaka.png", "value":20, "rarity":5 }, { "avatar_id":10000022, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Venti.png", "value":16, "rarity":5 }, { "avatar_id":10000025, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Xingqiu.png", "value":11, "rarity":4 }, { "avatar_id":10000046, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Hutao.png", "value":6, "rarity":5 }, { "avatar_id":10000023, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Xiangling.png", "value":2, "rarity":4 } ], "damage_rank":[ { "avatar_id":10000046, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Hutao.png", "value":166238, "rarity":5 } ], "take_damage_rank":[ { "avatar_id":10000037, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Ganyu.png", "value":38419, "rarity":5 }, { "avatar_id":10000032, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Bennett.png", "value":28242, "rarity":4 }, { "avatar_id":10000016, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Diluc.png", "value":26523, "rarity":5 }, { "avatar_id":10000023, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Xiangling.png", "value":24737, "rarity":4 }, { "avatar_id":10000002, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Ayaka.png", "value":23015, "rarity":5 }, { "avatar_id":10000014, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Barbara.png", "value":15448, "rarity":4 }, { "avatar_id":10000030, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Zhongli.png", "value":12601, "rarity":5 }, { "avatar_id":10000029, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Klee.png", "value":3501, "rarity":5 }, { "avatar_id":10000046, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Hutao.png", "value":1986, "rarity":5 }, { "avatar_id":10000022, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Venti.png", "value":1597, "rarity":5 } ], "normal_skill_rank":[ { "avatar_id":10000032, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Bennett.png", "value":58, "rarity":4 }, { "avatar_id":10000016, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Diluc.png", "value":52, "rarity":5 }, { "avatar_id":10000002, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Ayaka.png", "value":49, "rarity":5 }, { "avatar_id":10000025, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Xingqiu.png", "value":39, "rarity":4 }, { "avatar_id":10000037, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Ganyu.png", "value":39, "rarity":5 }, { "avatar_id":10000022, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Venti.png", "value":28, "rarity":5 }, { "avatar_id":10000030, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Zhongli.png", "value":26, "rarity":5 }, { "avatar_id":10000046, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Hutao.png", "value":18, "rarity":5 }, { "avatar_id":10000023, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Xiangling.png", "value":11, "rarity":4 }, { "avatar_id":10000029, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Klee.png", "value":9, "rarity":5 }, { "avatar_id":10000014, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Barbara.png", "value":8, "rarity":4 } ], "energy_skill_rank":[ { "avatar_id":10000037, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Ganyu.png", "value":24, "rarity":5 }, { "avatar_id":10000032, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Bennett.png", "value":24, "rarity":4 }, { "avatar_id":10000025, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Xingqiu.png", "value":21, "rarity":4 }, { "avatar_id":10000016, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Diluc.png", "value":17, "rarity":5 }, { "avatar_id":10000002, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Ayaka.png", "value":16, "rarity":5 }, { "avatar_id":10000022, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Venti.png", "value":11, "rarity":5 }, { "avatar_id":10000030, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Zhongli.png", "value":7, "rarity":5 }, { "avatar_id":10000023, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Xiangling.png", "value":6, "rarity":4 }, { "avatar_id":10000046, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Hutao.png", "value":6, "rarity":5 }, { "avatar_id":10000029, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Klee.png", "value":2, "rarity":5 }, { "avatar_id":10000014, "avatar_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Barbara.png", "value":1, "rarity":4 } ], "floors":[ { "index":9, "icon":"", "is_unlock":true, "settle_time":"0", "star":9, "max_star":9, "levels":[ { "index":1, "star":3, "max_star":3, "battles":[ { "index":1, "timestamp":"1629070329", "avatars":[ { "id":10000016, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Diluc.png", "level":90, "rarity":5 }, { "id":10000025, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xingqiu.png", "level":81, "rarity":4 }, { "id":10000030, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Zhongli.png", "level":90, "rarity":5 }, { "id":10000032, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Bennett.png", "level":85, "rarity":4 } ] }, { "index":2, "timestamp":"1629070414", "avatars":[ { "id":10000002, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ayaka.png", "level":90, "rarity":5 }, { "id":10000037, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ganyu.png", "level":90, "rarity":5 }, { "id":10000022, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Venti.png", "level":80, "rarity":5 }, { "id":10000014, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Barbara.png", "level":90, "rarity":4 } ] } ] }, { "index":2, "star":3, "max_star":3, "battles":[ { "index":1, "timestamp":"1629070455", "avatars":[ { "id":10000016, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Diluc.png", "level":90, "rarity":5 }, { "id":10000025, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xingqiu.png", "level":81, "rarity":4 }, { "id":10000030, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Zhongli.png", "level":90, "rarity":5 }, { "id":10000032, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Bennett.png", "level":85, "rarity":4 } ] }, { "index":2, "timestamp":"1629070509", "avatars":[ { "id":10000002, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ayaka.png", "level":90, "rarity":5 }, { "id":10000037, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ganyu.png", "level":90, "rarity":5 }, { "id":10000022, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Venti.png", "level":80, "rarity":5 }, { "id":10000014, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Barbara.png", "level":90, "rarity":4 } ] } ] }, { "index":3, "star":3, "max_star":3, "battles":[ { "index":1, "timestamp":"1629070569", "avatars":[ { "id":10000016, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Diluc.png", "level":90, "rarity":5 }, { "id":10000025, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xingqiu.png", "level":81, "rarity":4 }, { "id":10000030, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Zhongli.png", "level":90, "rarity":5 }, { "id":10000032, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Bennett.png", "level":85, "rarity":4 } ] }, { "index":2, "timestamp":"1629070607", "avatars":[ { "id":10000002, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ayaka.png", "level":90, "rarity":5 }, { "id":10000037, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ganyu.png", "level":90, "rarity":5 }, { "id":10000022, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Venti.png", "level":80, "rarity":5 }, { "id":10000014, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Barbara.png", "level":90, "rarity":4 } ] } ] } ] }, { "index":10, "icon":"", "is_unlock":true, "settle_time":"0", "star":9, "max_star":9, "levels":[ { "index":1, "star":3, "max_star":3, "battles":[ { "index":1, "timestamp":"1629070686", "avatars":[ { "id":10000016, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Diluc.png", "level":90, "rarity":5 }, { "id":10000025, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xingqiu.png", "level":81, "rarity":4 }, { "id":10000032, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Bennett.png", "level":85, "rarity":4 }, { "id":10000029, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Klee.png", "level":70, "rarity":5 } ] }, { "index":2, "timestamp":"1629070767", "avatars":[ { "id":10000002, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ayaka.png", "level":90, "rarity":5 }, { "id":10000037, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ganyu.png", "level":90, "rarity":5 }, { "id":10000022, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Venti.png", "level":80, "rarity":5 }, { "id":10000014, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Barbara.png", "level":90, "rarity":4 } ] } ] }, { "index":2, "star":3, "max_star":3, "battles":[ { "index":1, "timestamp":"1629070816", "avatars":[ { "id":10000016, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Diluc.png", "level":90, "rarity":5 }, { "id":10000025, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xingqiu.png", "level":81, "rarity":4 }, { "id":10000032, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Bennett.png", "level":85, "rarity":4 }, { "id":10000029, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Klee.png", "level":70, "rarity":5 } ] }, { "index":2, "timestamp":"1629070895", "avatars":[ { "id":10000002, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ayaka.png", "level":90, "rarity":5 }, { "id":10000037, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ganyu.png", "level":90, "rarity":5 }, { "id":10000022, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Venti.png", "level":80, "rarity":5 }, { "id":10000014, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Barbara.png", "level":90, "rarity":4 } ] } ] }, { "index":3, "star":3, "max_star":3, "battles":[ { "index":1, "timestamp":"1629070942", "avatars":[ { "id":10000016, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Diluc.png", "level":90, "rarity":5 }, { "id":10000025, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xingqiu.png", "level":81, "rarity":4 }, { "id":10000032, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Bennett.png", "level":85, "rarity":4 }, { "id":10000029, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Klee.png", "level":70, "rarity":5 } ] }, { "index":2, "timestamp":"1629071008", "avatars":[ { "id":10000002, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ayaka.png", "level":90, "rarity":5 }, { "id":10000037, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ganyu.png", "level":90, "rarity":5 }, { "id":10000022, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Venti.png", "level":80, "rarity":5 }, { "id":10000014, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Barbara.png", "level":90, "rarity":4 } ] } ] } ] }, { "index":11, "icon":"", "is_unlock":true, "settle_time":"0", "star":9, "max_star":9, "levels":[ { "index":1, "star":3, "max_star":3, "battles":[ { "index":1, "timestamp":"1629071105", "avatars":[ { "id":10000016, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Diluc.png", "level":90, "rarity":5 }, { "id":10000025, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xingqiu.png", "level":81, "rarity":4 }, { "id":10000032, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Bennett.png", "level":85, "rarity":4 }, { "id":10000030, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Zhongli.png", "level":90, "rarity":5 } ] }, { "index":2, "timestamp":"1629071205", "avatars":[ { "id":10000002, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ayaka.png", "level":90, "rarity":5 }, { "id":10000037, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ganyu.png", "level":90, "rarity":5 }, { "id":10000022, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Venti.png", "level":80, "rarity":5 }, { "id":10000014, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Barbara.png", "level":90, "rarity":4 } ] } ] }, { "index":2, "star":3, "max_star":3, "battles":[ { "index":1, "timestamp":"1629071240", "avatars":[ { "id":10000016, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Diluc.png", "level":90, "rarity":5 }, { "id":10000025, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xingqiu.png", "level":81, "rarity":4 }, { "id":10000032, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Bennett.png", "level":85, "rarity":4 }, { "id":10000030, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Zhongli.png", "level":90, "rarity":5 } ] }, { "index":2, "timestamp":"1629071340", "avatars":[ { "id":10000002, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ayaka.png", "level":90, "rarity":5 }, { "id":10000037, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ganyu.png", "level":90, "rarity":5 }, { "id":10000022, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Venti.png", "level":80, "rarity":5 }, { "id":10000014, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Barbara.png", "level":90, "rarity":4 } ] } ] }, { "index":3, "star":3, "max_star":3, "battles":[ { "index":1, "timestamp":"1629071419", "avatars":[ { "id":10000016, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Diluc.png", "level":90, "rarity":5 }, { "id":10000025, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xingqiu.png", "level":81, "rarity":4 }, { "id":10000032, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Bennett.png", "level":85, "rarity":4 }, { "id":10000030, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Zhongli.png", "level":90, "rarity":5 } ] }, { "index":2, "timestamp":"1629071476", "avatars":[ { "id":10000002, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ayaka.png", "level":90, "rarity":5 }, { "id":10000037, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ganyu.png", "level":90, "rarity":5 }, { "id":10000022, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Venti.png", "level":80, "rarity":5 }, { "id":10000014, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Barbara.png", "level":90, "rarity":4 } ] } ] } ] }, { "index":12, "icon":"", "is_unlock":true, "settle_time":"0", "star":9, "max_star":9, "levels":[ { "index":1, "star":3, "max_star":3, "battles":[ { "index":1, "timestamp":"1629072272", "avatars":[ { "id":10000037, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ganyu.png", "level":90, "rarity":5 }, { "id":10000002, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ayaka.png", "level":90, "rarity":5 }, { "id":10000032, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Bennett.png", "level":85, "rarity":4 }, { "id":10000023, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xiangling.png", "level":80, "rarity":4 } ] }, { "index":2, "timestamp":"1629072367", "avatars":[ { "id":10000046, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Hutao.png", "level":90, "rarity":5 }, { "id":10000025, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xingqiu.png", "level":81, "rarity":4 }, { "id":10000022, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Venti.png", "level":80, "rarity":5 }, { "id":10000030, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Zhongli.png", "level":90, "rarity":5 } ] } ] }, { "index":2, "star":3, "max_star":3, "battles":[ { "index":1, "timestamp":"1629072467", "avatars":[ { "id":10000037, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ganyu.png", "level":90, "rarity":5 }, { "id":10000002, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ayaka.png", "level":90, "rarity":5 }, { "id":10000032, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Bennett.png", "level":85, "rarity":4 }, { "id":10000023, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xiangling.png", "level":80, "rarity":4 } ] }, { "index":2, "timestamp":"1629072541", "avatars":[ { "id":10000046, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Hutao.png", "level":90, "rarity":5 }, { "id":10000025, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xingqiu.png", "level":81, "rarity":4 }, { "id":10000022, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Venti.png", "level":80, "rarity":5 }, { "id":10000030, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Zhongli.png", "level":90, "rarity":5 } ] } ] }, { "index":3, "star":3, "max_star":3, "battles":[ { "index":1, "timestamp":"1629072661", "avatars":[ { "id":10000037, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ganyu.png", "level":90, "rarity":5 }, { "id":10000002, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ayaka.png", "level":90, "rarity":5 }, { "id":10000032, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Bennett.png", "level":85, "rarity":4 }, { "id":10000023, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xiangling.png", "level":80, "rarity":4 } ] }, { "index":2, "timestamp":"1629072725", "avatars":[ { "id":10000046, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Hutao.png", "level":90, "rarity":5 }, { "id":10000025, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xingqiu.png", "level":81, "rarity":4 }, { "id":10000022, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Venti.png", "level":80, "rarity":5 }, { "id":10000030, "icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Zhongli.png", "level":90, "rarity":5 } ] } ] } ] } ], "total_star":36, "is_unlock":true } }
实时便签:
{ "retcode":0, "message":"OK", "data":{ "current_resin":24, "max_resin":160, "resin_recovery_time":"65277", "finished_task_num":4, "total_task_num":4, "is_extra_task_reward_received":true, "remain_resin_discount_num":1, "resin_discount_num_limit":3, "current_expedition_num":5, "max_expedition_num":5, "expeditions":[ { "avatar_side_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Bennett.png", "status":"Ongoing", "remained_time":"47171" }, { "avatar_side_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Keqing.png", "status":"Ongoing", "remained_time":"47171" }, { "avatar_side_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Fischl.png", "status":"Ongoing", "remained_time":"47171" }, { "avatar_side_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Chongyun.png", "status":"Ongoing", "remained_time":"47171" }, { "avatar_side_icon":"https://upload-bbs.mihoyo.com/game_record/genshin/character_side_icon/UI_AvatarIcon_Side_Sara.png", "status":"Ongoing", "remained_time":"47171" } ] } }
米游的接口是不是挂了,报错503 Service Temporarily Unavailable nginx
确实,正在找一种一键获取Cookie的方式
也许可以尝试整登录
怎么做成php写的api接口,我不会这个写法啊,也不懂ds算法
第二条api返回的数据是否为body中character_ids的数据?
我这边使用api直接返回了所有角色的信息
我这里无论是否传入character_ids,传入什么内容都会返回所有角色的信息,而不是对应character_ids角色的信息
ds有python算法代码吗
有
import hashlib
import json
import random
import string
import time
from typing import Any, Mapping
OS_DS_SALT = "6cqshh5dhw73bzxn20oexa9k516chk7s"
CN_DS_SALT = "xV8v4Qu54lUKrEYFZkJhB8cuOh9Asafs"
def generate_ds() -> str:
t = int(time.time()) r = "".join(random.choices(string.ascii_letters, k=6)) h = hashlib.md5(f"salt={OS_DS_SALT}&t={t}&r={r}".encode()).hexdigest() return f"{t},{r},{h}"def generate_cn_ds(body: Any = None, query: Mapping[str, Any] = None) -> str:
''' Body: POST请求 query: GET请求 ''' t = int(time.time()) r = random.randint(100001, 200000) b = json.dumps(body) if body else "" q = "&".join(f"{k}={v}" for k, v in sorted(query.items())) if query else "" h = hashlib.md5(f"salt={CN_DS_SALT}&t={t}&r={r}&b={b}&q={q}".encode()).hexdigest() return f"{t},{r},{h}"想问一下实时便笺API的用法,想自己写个程序(✿◡‿◡)
直接get请求就好了,记得带上请求头ds,ds算法上面都有
没有用过带headers的get请求,,ԾㅂԾ,,可以给个请求的代码示例吗?
https://blog.oldwu.top/index.php/archives/69/
好,谢谢~///(^v^)\\~
Ds 加密的时候,post是传 b=role_id=账号&server=区服, q="" 嘛,还是 b=你要访问的所有json数据都放b里面然后q为空?
String n="xV8v4Qu54lUKrEYFZkJhB8cuOh9Asafs";//salt String i=Long.toString(System.currentTimeMillis()/1000L); //unix 时间戳 String r= new Random().nextInt(200000)%(200000-100000+1)+100000+""; //6位随机数 String b= "role_id=183944398&server=cn_gf01";// 查询的区服 String q="";//查询的账号跟区服public static String postDs(String body) { //参数body我放了用的json 方便调试
// String c = DigestUtils.md5Hex("salt=" + n + "&t=" + i + "&r=" + r + "&b="+body+"&q=" + q);
String c = DigestUtils.md5Hex("salt=" + n + "&t=" + i + "&r=" + r + "&b="+b+"&q=" + q); return i + "," + r + ","+c ; }post方式请求,b=json字符串,注意有顺序,q就为""
b="role_id=账号&server=区服 " 的json字符串我试过的,过不去,{"role_id":"104216625","server":"cn_gf01"}, 全量数据是
{"character_ids":[角色id,角色id,角色id,..........],"role_id":"游戏ID","server":"所在服"} 我也传过去了没用,话说有交流群不,交流交流。
json字符串,那个json是什么内容,role_id=账号&server=区服 的json字符串?还是 所有数据的json字符串。
https://blog.oldwu.top/index.php/archives/25/#toc_5
这边是我的代码,你可以看一下
这回看懂了,测试也通过了,谢了,thankyou
你先参考一下这边的帖子或者这个项目的写法,晚点我把我的写法发给你
https://github.com/Azure99/GenshinPlayerQuery/issues/20