Skip to content

Latest commit

 

History

History
435 lines (365 loc) · 21.6 KB

API-Document.md

File metadata and controls

435 lines (365 loc) · 21.6 KB

API文档

米游社log

https://log-upload.mihoyo.com/log/bbs_app/upload 参数

{
    "sign": "1fgpWBP8BwbaXk8\/qNj+gzhWlx4=",
    "content": "CgAS\/gYKCTE4MjY5MjkzNhIDaW9zGgppUGhvbmUxNCwzIgYxNy4zLjEqJEFGQTVEQkQ3LUQwMjctNDAyQi05NTIyLTFEOUE0QTVFRkI4NTIGMi42OC4xOghhcHBzdG9yZUINCghpc19uaWdodBIBMEIUCg5iYXR0ZXJ5X3N0YXR1cxICODVCDAoHaXNfcm9vdBIBMEIRCgxwcm94eV9zdGF0dXMSATBCEwoMdmVyc2lvbl9jb2RlEgM0MzRCDQoGdm9sdW1lEgMwLjVCIQoPcGhvbmVfY2hpcF9pbmZvEg5DUFVfVFlQRV9BUk02NEIYChJhcHBfdXNlX2xvY2FsX2RheXMSAjYyQhIKDWNoYXJnZV9zdGF0dXMSATFCEQoMbmV0d29ya190eXBlEgExQhkKEG1vYmlsZV9vcGVyYXRvcnMSBS0tLC0tQhQKDHJlc29sdXRpb25feRIEMjc3OEIUCgxyZXNvbHV0aW9uX3gSBDEyODRCQgoXYWNjZXNzYmlsZV9zZXJ2aWNlX2xpc3QSJ1NoYWtlVG9VbmRvRW5hYmxlZCxWaWRlb0F1dG9wbGF5RW5hYmxlZELeAgoKbWh5X2FidGVzdBLPAlt7InRlc3RfbmFtZSI6IjUxNjRfMzg2IiwiY29uZmlnIjp7ImlzX2xpdmUiOiIxIn0sInZlcnNpb24iOiIyIn0seyJ0ZXN0X25hbWUiOiI1MzQ3XzU4MyIsImNvbmZpZyI6e30sInZlcnNpb24iOiIyIn0seyJ0ZXN0X25hbWUiOiI1MzA4XzU0MiIsImNvbmZpZyI6e30sInZlcnNpb24iOiIyIn0seyJ2ZXJzaW9uIjoiMiIsImNvbmZpZyI6IiIsInRlc3RfbmFtZSI6IjUxMDBfNjg3In0sey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InRlc3RfbmFtZSI6IjUxNjRfMzg2IiwiY29uZmlnIjp7ImlzX2xpdmUiOiIxIn19LHsiY29uZmlnIjp7fSwidGVzdF9uYW1lIjoiNTI4M181MTIiLCJ2ZXJzaW9uIjoiMSJ9XUIRCgxuZXR3b3JrX3R5cGUSATEaSwoNMTcwODM1MDc0Njg2NBAGOgoKBGRhdGESAltdOhoKCXNlc3Npb25JRBINMTcwODM1MDc0Njg2NDoQCgtpc19jb2xkYm9vdBIBMQ=="
}

获取米游社用户的游戏记录

https://api-takumi-record.mihoyo.com/game_record/card/api/getGameRecordCard?uid=182692936

获取米游社Binding AuthKey

https://api-takumi.miyoushe.com/binding/api/genAuthKey

请求参数

{
    "region": "cn_gf01",
    "auth_appid": "csc",
    "game_uid": 109050292,
    "game_biz": "hk4e_cn"
}

获取米游社Account AuthKey

请求参数

{
    "game_biz": "bbs_cn",
    "auth_appid": "csc"
}

原神

获取原神实时便签

https://api-takumi-record.mihoyo.com/game_record/app/genshin/aapi/widget/v2

https://api-takumi-record.mihoyo.com/game_record/app/genshin/api/dailyNote?server=cn_gf01&role_id=109050292

获取原神已拥有的角色列表

https://api-takumi-record.mihoyo.com/game_record/app/genshin/api/character

请求参数

{
    "role_id": "109050292",
    "server": "cn_gf01"
}

https://api-takumi.mihoyo.com/event/e20200928calculate/v1/sync/avatar/list

请求参数

{
    "element_attr_ids": [],
    "weapon_cat_ids": [],
    "page": 1,
    "size": 20,
    "uid": "109050292",
    "region": "cn_gf01"
}

获取原神所有的角色列表

https://api-takumi.mihoyo.com/event/e20200928calculate/v1/avatar/list

Note: element_attr_ids: 元素类型id weapon_cat_ids: 武器类型id

请求参数

{
    "element_attr_ids": [],
    "weapon_cat_ids": [],
    "page": 1,
    "size": 20,
    "is_all": true
}

获取原神所有的分类

https://api-takumi.mihoyo.com/event/e20200928calculate/v1/item/filter

获取原神角色的天赋信息

https://api-takumi.mihoyo.com/event/e20200928calculate/v1/avatarSkill/list?avatar_id=10000089&element_attr_id=6

Note: avatar_id: 角色id element_attr_id: 素类型id

获取原神角色养成数据

https://api-takumi.mihoyo.com/event/e20200928calculate/v2/compute

请求参数

{
    "avatar_id": 10000089,
    "avatar_level_current": 1,
    "avatar_level_target": 90,
    "element_attr_id": 6,
    "skill_list": [{
        "id": 8931,
        "level_current": 1,
        "level_target": 10
    }, {
        "id": 8932,
        "level_current": 1,
        "level_target": 10
    }, {
        "id": 8939,
        "level_current": 1,
        "level_target": 10
    }, {
        "id": 8921,
        "level_current": 1,
        "level_target": 1
    }, {
        "id": 8922,
        "level_current": 1,
        "level_target": 1
    }, {
        "id": 8923,
        "level_current": 1,
        "level_target": 1
    }],
    "weapon": {},
    "reliquary_list": []
}

获取原神的深渊记录

https://api-takumi-record.mihoyo.com/game_record/app/genshin/api/spiralAbyss?schedule_type=1&role_id=109050292&server=cn_gf01

星穹铁道

获取星穹铁道已有角色

https://api-takumi-record.mihoyo.com/game_record/app/hkrpg/api/avatar/basic?rolePageAccessNotAllowed=&role_id=102731382&server=prod_gf_cn

获取星穹铁道角色

https://api-takumi.mihoyo.com/event/rpgcalc/avatar/list?game=hkrpg&uid=102731382&region=prod_gf_cn&lang=zh-cn&tab_from=TabAll&page=1&size=100

Note: tab_from:区分是已有角色还是全部角色,TabAll是所有,TabOwned是已有角色

获取星穹铁道角色当前详情信息(等级,遗器,行迹,光锥)

https://api-takumi.mihoyo.com/event/rpgcalc/avatar/detail?game=hkrpg&lang=zh-cn&item_id=1312&tab_from=TabOwned&change_target_level=0&uid=102731382&region=prod_gf_cn

获取星穹铁道所有的光锥

https://api-takumi.mihoyo.com/event/rpgcalc/equipment/list?game=hkrpg&uid=102731382&region=prod_gf_cn&lang=zh-cn&tab_from=TabAll&page=1&size=100

获取星穹铁道角色养成所消耗材料

https://api-takumi.mihoyo.com/event/rpgcalc/compute?game=hkrpg

{
    "game": "hkrpg",
    "avatar": {
        "item_id": "1312",
        "cur_level": 23,
        "target_level": 80
    },
    "equipment": {
        "item_id": "21042",
        "cur_level": 1,
        "target_level": 80
    },
    "skill_list": [{
        "item_id": "1312001",
        "cur_level": 1,
        "target_level": 6
    }, {
        "item_id": "1312002",
        "cur_level": 1,
        "target_level": 10
    }, {
        "item_id": "1312003",
        "cur_level": 1,
        "target_level": 10
    }, {
        "item_id": "1312004",
        "cur_level": 1,
        "target_level": 10
    }, {
        "item_id": "1312101",
        "cur_level": 1,
        "target_level": 1
    }, {
        "item_id": "1312102",
        "cur_level": 1,
        "target_level": 1
    }, {
        "item_id": "1312103",
        "cur_level": 1,
        "target_level": 1
    }, {
        "item_id": "1312201",
        "cur_level": 1,
        "target_level": 1
    }, {
        "item_id": "1312202",
        "cur_level": 1,
        "target_level": 1
    }, {
        "item_id": "1312203",
        "cur_level": 1,
        "target_level": 1
    }, {
        "item_id": "1312204",
        "cur_level": 1,
        "target_level": 1
    }, {
        "item_id": "1312205",
        "cur_level": 1,
        "target_level": 1
    }, {
        "item_id": "1312206",
        "cur_level": 1,
        "target_level": 1
    }, {
        "item_id": "1312207",
        "cur_level": 1,
        "target_level": 1
    }, {
        "item_id": "1312208",
        "cur_level": 1,
        "target_level": 1
    }, {
        "item_id": "1312209",
        "cur_level": 1,
        "target_level": 1
    }, {
        "item_id": "1312210",
        "cur_level": 1,
        "target_level": 1
    }],
    "lang": "zh-cn",
    "uid": "102731382",
    "region": "prod_gf_cn"
}

获取星穹铁道的Widget

https://api-takumi-record.mihoyo.com/game_record/app/hkrpg/aapi/widget

https://api-takumi-record.mihoyo.com/game_record/app/hkrpg/api/note?server=prod_gf_cn&role_id=102731382

获取星穹铁道的模拟宇宙

https://api-takumi-record.mihoyo.com/game_record/app/hkrpg/api/rogue?role_id=102731382&server=prod_gf_cn&schedule_type=3&need_detail=true

获取星穹铁道混沌回忆

https://api-takumi-record.mihoyo.com/game_record/app/hkrpg/api/challenge?role_id=102731382&server=prod_gf_cn&isPrev=&type=challenge&schedule_type=1&need_all=true

Note isPrev:混沌回忆是1,虚构叙事是空 type:story是虚构叙事,challenge是混沌回忆 schedule_type:1是本期,2是上期

Header

参数名 参数
Host api-takumi.mihoyo.com
x-rpc-device_model iPhone14,3
Cookie stuid=182692936;stoken=v2_EZ6JDJqFF8b9dh5I5f1h5YHWd3Pxoae1Pmj8_daxDl1OFymHN9qOpsNrHZKfiTTyumOOS7suqEftRLeC-VhWTZHaaJveWlx6iZlLURFodFQn1t-tr2TUmYSlV_-tUsA=;mid=0otk3b2k90_mhy;login_ticket=dqY0SCsvLuYnuPwmjIYewsgpcCTVltR4IgOu9GGK;
User-Agent Hyperion/434 CFNetwork/1492.0.1 Darwin/23.3.0
Referer https://app.mihoyo.com
x-rpc-device_name iPhone
x-rpc-csm_source home
Connection keep-alive
x-rpc-device_fp 38d7f349e93d8
x-rpc-channel appstore
DS 1708393638,ZqCUC8,50144108f38a210d10b645e81a682a00
Accept-Language zh-HK,zh-Hant;q=0.9
x-rpc-app_version 2.68.1
x-rpc-device_id AFA5DBD7-D027-402B-9522-1D9A4A5EFB85
x-rpc-verify_key bll8iq97cem8
x-rpc-client_type 1
Accept /
Accept-Encoding gzip, deflate, br
x-rpc-h265_supported 0
x-rpc-sys_version 17.3.1

支持的机型,系统

https://gist.github.com/adamawolf/3048717

iPhone11,2 : iPhone XS iPhone11,4 : iPhone XS Max iPhone11,6 : iPhone XS Max Global iPhone11,8 : iPhone XR iPhone12,1 : iPhone 11 iPhone12,3 : iPhone 11 Pro iPhone12,5 : iPhone 11 Pro Max iPhone12,8 : iPhone SE 2nd Gen iPhone13,1 : iPhone 12 Mini iPhone13,2 : iPhone 12 iPhone13,3 : iPhone 12 Pro iPhone13,4 : iPhone 12 Pro Max iPhone14,2 : iPhone 13 Pro iPhone14,3 : iPhone 13 Pro Max iPhone14,4 : iPhone 13 Mini iPhone14,5 : iPhone 13 iPhone14,6 : iPhone SE 3rd Gen iPhone14,7 : iPhone 14 iPhone14,8 : iPhone 14 Plus iPhone15,2 : iPhone 14 Pro iPhone15,3 : iPhone 14 Pro Max iPhone15,4 : iPhone 15 iPhone15,5 : iPhone 15 Plus iPhone16,1 : iPhone 15 Pro iPhone16,2 : iPhone 15 Pro Max

iPad5,1 : iPad mini 4 (WiFi) iPad5,2 : 4th Gen iPad mini (WiFi+Cellular) iPad5,3 : iPad Air 2 (WiFi) iPad5,4 : iPad Air 2 (Cellular) iPad6,3 : iPad Pro (9.7 inch, WiFi) iPad6,4 : iPad Pro (9.7 inch, WiFi+LTE) iPad6,7 : iPad Pro (12.9 inch, WiFi) iPad6,8 : iPad Pro (12.9 inch, WiFi+LTE) iPad6,11 : iPad (2017) iPad6,12 : iPad (2017) iPad7,1 : iPad Pro 2nd Gen (WiFi) iPad7,2 : iPad Pro 2nd Gen (WiFi+Cellular) iPad7,3 : iPad Pro 10.5-inch 2nd Gen iPad7,4 : iPad Pro 10.5-inch 2nd Gen iPad7,5 : iPad 6th Gen (WiFi) iPad7,6 : iPad 6th Gen (WiFi+Cellular) iPad7,11 : iPad 7th Gen 10.2-inch (WiFi) iPad7,12 : iPad 7th Gen 10.2-inch (WiFi+Cellular) iPad8,1 : iPad Pro 11 inch 3rd Gen (WiFi) iPad8,2 : iPad Pro 11 inch 3rd Gen (1TB, WiFi) iPad8,3 : iPad Pro 11 inch 3rd Gen (WiFi+Cellular) iPad8,4 : iPad Pro 11 inch 3rd Gen (1TB, WiFi+Cellular) iPad8,5 : iPad Pro 12.9 inch 3rd Gen (WiFi) iPad8,6 : iPad Pro 12.9 inch 3rd Gen (1TB, WiFi) iPad8,7 : iPad Pro 12.9 inch 3rd Gen (WiFi+Cellular) iPad8,8 : iPad Pro 12.9 inch 3rd Gen (1TB, WiFi+Cellular) iPad8,9 : iPad Pro 11 inch 4th Gen (WiFi) iPad8,10 : iPad Pro 11 inch 4th Gen (WiFi+Cellular) iPad8,11 : iPad Pro 12.9 inch 4th Gen (WiFi) iPad8,12 : iPad Pro 12.9 inch 4th Gen (WiFi+Cellular) iPad11,1 : iPad mini 5th Gen (WiFi) iPad11,2 : iPad mini 5th Gen iPad11,3 : iPad Air 3rd Gen (WiFi) iPad11,4 : iPad Air 3rd Gen iPad11,6 : iPad 8th Gen (WiFi) iPad11,7 : iPad 8th Gen (WiFi+Cellular) iPad12,1 : iPad 9th Gen (WiFi) iPad12,2 : iPad 9th Gen (WiFi+Cellular) iPad14,1 : iPad mini 6th Gen (WiFi) iPad14,2 : iPad mini 6th Gen (WiFi+Cellular) iPad13,1 : iPad Air 4th Gen (WiFi) iPad13,2 : iPad Air 4th Gen (WiFi+Cellular) iPad13,4 : iPad Pro 11 inch 5th Gen iPad13,5 : iPad Pro 11 inch 5th Gen iPad13,6 : iPad Pro 11 inch 5th Gen iPad13,7 : iPad Pro 11 inch 5th Gen iPad13,8 : iPad Pro 12.9 inch 5th Gen iPad13,9 : iPad Pro 12.9 inch 5th Gen iPad13,10 : iPad Pro 12.9 inch 5th Gen iPad13,11 : iPad Pro 12.9 inch 5th Gen iPad13,16 : iPad Air 5th Gen (WiFi) iPad13,17 : iPad Air 5th Gen (WiFi+Cellular) iPad13,18 : iPad 10th Gen iPad13,19 : iPad 10th Gen iPad14,3 : iPad Pro 11 inch 4th Gen iPad14,4 : iPad Pro 11 inch 4th Gen iPad14,5 : iPad Pro 12.9 inch 6th Gen iPad14,6 : iPad Pro 12.9 inch 6th Gen

Wiki

Honkai3 https://honkaiimpact3.fandom.com/wiki/Honkai_Impact_3_Wiki

Honkai: Star Rail https://honkai-star-rail.fandom.com/wiki/Honkai:_Star_Rail_Wiki

Genshin Impact https://genshin-impact.fandom.com/wiki/Genshin_Impact_Wiki

星穹铁道的API

Endpoint: https://enka.network/api/hsr/uid/000000000

Structure: https://march7th.xiaohei.moe/en/resource/mihomo_api.html

Parser example: https://github.com/Mar-7th/mihomo.py/blob/master/mihomo/api.py

抽卡分析

https://api-takumi.mihoyo.com/common/gacha_record/api/getGachaLog?authkey_ver=1&sign_type=2&auth_appid=webview_gacha&win_mode=fullscreen&gacha_id=afa12c87f7b4c355facc73d983f5de09731a83&timestamp=1711496725&region=prod_gf_cn&default_gacha_type=11&lang=zh-cn&authkey=CqpYcMLSzEWHP6M41HOgZg61SMmrLig1NprgjXJ5KNRgx436vzqEin0MIryABmQM%2BDYcLV%2FROsfObOK7PrWENAAu5JvTV7HzAGNet%2FuCRW6wDS0EkwVBhxPsSHG3US8i33Bokmm5feM008VhMkc%2BXETUENLU1pDNkF9%2FHJZ3RySlaNOhrAm8MXrWf0A%2Bb4oEquicnBqfbpW1SUVAcHXsnlUMJSfFBKhwG2ojbWRUSCOkZNCTmL%2BvheTpaD2IlCYDKR1IPtcUQL5k7e%2F2XhaK07jdwKLeqXjng%2FYxHEle5Wkgp4Qu4NiIMnfXCU2u%2FNgKQrVO%2BdUAr2XzxaHTR85gR4Tg0X8jxR%2BWZTplBD2aueVmSs9zzXAkexuU8hL6ahQBXBWS%2ByKJAF5D8cECaENxR7OvTT2pxrXtuvJ22qF2h7Y9g%2BcoxCFyGdSIOBtWRlbiuahJvETRYMqpFbiSencocaEZtqnQ3ElD3kPpuTV8YJRnsB2rQnyW5rJNHfRvOGEFzA4g602yprcZslwoFmBlVs6s5fHTWJSxt0%2B%2Fzmr1%2F%2FUqVU%2B1OHMBs20fQtxcfe8gF43hMO83XR40ZwbZ4OZSMuxi5ZhEoXgUyd8nj1G%2BRDWRJWX27T6hsgnpQHRUzNd7aLivwrZMEtCA%2BRvrc%2B4jni83qQM%2BM%2FURjCGkPJFuJzM%3D&game_biz=hkrpg_cn&os_system=iOS%2016.6&device_model=iPad13%2C8&plat_type=ios&page=1&size=5&gacha_type=11&end_id=0
卡池类型 Value
当前up角色 gacha_type=11
当前�up光锥 gacha_type=12
常驻卡池 gacha_type=1
新手卡池 gacha_type=2

参考库

gsiod_core KimigaiiWuyi/GenshinUID baiqwerdvd/StarRailUID