原神Enka-Api
测试
测试
支持的语言 | 语言缩写 | 语言全称 |
---|---|---|
简体中文 | CHS/CN | ChineseSimplified |
繁体中文 | CHT | ChineseTraditional |
日语 | JP/JA | Japanese |
英语 | EN/ENG | English |
法语 | FR | French |
德语 | DE | German |
印度尼西亚语 | ID | Indonesian |
韩语 | KR/KA | Korean |
葡萄牙语 | PT | Portuguese |
俄语 | RU | Russian |
西班牙语 | ES | Spanish |
泰语 | TH | Thai |
越南语 | VI | Vietnamese |
使用matchCategories参数时,query参数请输入类别,支持例如:武器类型(如:单手剑、法器等)、角色元素类型(如:冰、雷等)角色生日月份(如:八月)、所需材料类型(如:最胜紫晶碎屑、绯樱绣球等)
默认支持简写,但不可以错字,例如查询尘世之锁可输入锁
参数名 | 必须 | 参数值 | 默认值 | 备注 |
---|---|---|---|---|
queryLanguages | ❌ | 参考语言缩写或全称 | ChineseSimplified | 指定查询时使用的语言 |
resultLanguage | ❌ | 参考语言缩写或全称 | ChineseSimplified | 指定查询结果显示语言 |
matchCategories | ❌ | 任意值 | false | 如果包含该参数,query会查询类别 |
参数名 | 必须 | 参数值 | 默认值 | 备注 |
---|---|---|---|---|
query | ✔️ | 需要查询的名字 | 无 | 角色名字或者类别名字 |
costs | ❌ | 任意值 | 无 | 如果包含该参数,显示查询角色需要的花费 |
stats | ❌ | 等级范围[1-90] | 无 | 查询指定角色在这个等级的基础面板 |
参数名 | 必须 | 参数值 | 默认值 | 备注 |
---|---|---|---|---|
query | ✔️ | 需要查询的名字 | 无 | 武器名字或者类别名字 |
costs | ❌ | 任意值 | 无 | 如果包含该参数,显示查询武器需要的花费 |
stats | ❌ | 等级范围[1-90] | 无 | 查询指定武器在这个等级的基础面板 |
参数名 | 必须 | 参数值 | 默认值 | 备注 |
---|---|---|---|---|
query | ✔️ | 需要查询的名字 | 无 | 需要查询的角色名字 |
c | ❌ | 数字 | 1-6 | 如果包含该参数,显示对应命座层数的信息 |
参数名 | 必须 | 参数值 | 默认值 | 备注 |
---|---|---|---|---|
query | ✔️ | 需要查询的名字 | 无 | 需要查询的角色名字 |
costs | ❌ | 任意值 | 无 | 如果包含该参数,显示查询角色需要的花费 |
talents | ❌ | 普通攻击:a或combat1 元素战技:e或combat2 元素爆发:q或combat3 固有天赋1:1或passive1 固有天赋2:2或passive2 固有天赋3:3或passive3 特殊天赋:4或sp | 无 | 推荐包含该参数,带有该参数时返回指定天赋的说明 |
更多资源接口正在施工中
DEMO 接口地址:
GET
图片下载POST
图片生成style
: 样式名称(如果不带样式参数,默认以fancy样式返回)
样式名称 | 支持参数 |
---|---|
text | 暂无参数支持 |
fancy | bg_url : 背景图片链接 |
adachi | uid : 查询结果显示的uidavatar : 查询者的QQ号码或自定义头像的url (仅支持http/https)nickname : 查询者的昵称 |
egenshin | uid : 查询结果显示的uidavatar : 查询者的QQ号码或自定义头像的url (仅支持http/https)nickname : 查询者的昵称 |
带^参数可省略
请求地址:https://igs.minigg.cn/generator/user_info?style=egenshin&uid=100012315&nickname=小灰灰
{
"retcode": 0,
"message": "OK",
"data": {
"role": null,
"avatars": [
{
"id": 10000037,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ganyu.png",
"name": "甘雨",
"element": "Cryo",
"fetter": 10,
"level": 90,
"rarity": 5,
"actived_constellation_num": 6
},
{
"id": 10000042,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Keqing.png",
"name": "刻晴",
"element": "Electro",
"fetter": 10,
"level": 90,
"rarity": 5,
"actived_constellation_num": 6
},
{
"id": 10000046,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Hutao.png",
"name": "胡桃",
"element": "Pyro",
"fetter": 10,
"level": 90,
"rarity": 5,
"actived_constellation_num": 6
},
{
"id": 10000051,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Eula.png",
"name": "优菈",
"element": "Cryo",
"fetter": 10,
"level": 90,
"rarity": 5,
"actived_constellation_num": 6
},
{
"id": 10000002,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ayaka.png",
"name": "神里绫华",
"element": "Cryo",
"fetter": 10,
"level": 89,
"rarity": 5,
"actived_constellation_num": 6
},
{
"id": 10000022,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Venti.png",
"name": "温迪",
"element": "Anemo",
"fetter": 10,
"level": 89,
"rarity": 5,
"actived_constellation_num": 6
},
{
"id": 10000041,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Mona.png",
"name": "莫娜",
"element": "Hydro",
"fetter": 10,
"level": 89,
"rarity": 5,
"actived_constellation_num": 6
},
{
"id": 10000052,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Shougun.png",
"name": "雷电将军",
"element": "Electro",
"fetter": 10,
"level": 89,
"rarity": 5,
"actived_constellation_num": 6
},
{
"id": 10000023,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xiangling.png",
"name": "香菱",
"element": "Pyro",
"fetter": 10,
"level": 89,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000031,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Fischl.png",
"name": "菲谢尔",
"element": "Electro",
"fetter": 10,
"level": 89,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000032,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Bennett.png",
"name": "班尼特",
"element": "Pyro",
"fetter": 10,
"level": 89,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000056,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Sara.png",
"name": "九条裟罗",
"element": "Electro",
"fetter": 10,
"level": 89,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000038,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Albedo.png",
"name": "阿贝多",
"element": "Geo",
"fetter": 10,
"level": 88,
"rarity": 5,
"actived_constellation_num": 0
},
{
"id": 10000034,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Noel.png",
"name": "诺艾尔",
"element": "Geo",
"fetter": 10,
"level": 88,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000036,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Chongyun.png",
"name": "重云",
"element": "Cryo",
"fetter": 10,
"level": 88,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000003,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Qin.png",
"name": "琴",
"element": "Anemo",
"fetter": 10,
"level": 87,
"rarity": 5,
"actived_constellation_num": 6
},
{
"id": 10000049,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Yoimiya.png",
"name": "宵宫",
"element": "Pyro",
"fetter": 10,
"level": 87,
"rarity": 5,
"actived_constellation_num": 0
},
{
"id": 10000029,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Klee.png",
"name": "可莉",
"element": "Pyro",
"fetter": 10,
"level": 86,
"rarity": 5,
"actived_constellation_num": 6
},
{
"id": 10000033,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Tartaglia.png",
"name": "达达利亚",
"element": "Hydro",
"fetter": 10,
"level": 86,
"rarity": 5,
"actived_constellation_num": 6
},
{
"id": 10000047,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Kazuha.png",
"name": "枫原万叶",
"element": "Anemo",
"fetter": 10,
"level": 86,
"rarity": 5,
"actived_constellation_num": 2
},
{
"id": 10000025,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xingqiu.png",
"name": "行秋",
"element": "Hydro",
"fetter": 10,
"level": 85,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000053,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Sayu.png",
"name": "早柚",
"element": "Anemo",
"fetter": 10,
"level": 85,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000035,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Qiqi.png",
"name": "七七",
"element": "Cryo",
"fetter": 10,
"level": 81,
"rarity": 5,
"actived_constellation_num": 3
},
{
"id": 10000016,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Diluc.png",
"name": "迪卢克",
"element": "Pyro",
"fetter": 10,
"level": 80,
"rarity": 5,
"actived_constellation_num": 6
},
{
"id": 10000030,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Zhongli.png",
"name": "钟离",
"element": "Geo",
"fetter": 10,
"level": 80,
"rarity": 5,
"actived_constellation_num": 2
},
{
"id": 10000054,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Kokomi.png",
"name": "珊瑚宫心海",
"element": "Hydro",
"fetter": 10,
"level": 80,
"rarity": 5,
"actived_constellation_num": 1
},
{
"id": 10000043,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Sucrose.png",
"name": "砂糖",
"element": "Anemo",
"fetter": 10,
"level": 80,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000045,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Rosaria.png",
"name": "罗莎莉亚",
"element": "Cryo",
"fetter": 10,
"level": 80,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000007,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_PlayerGirl.png",
"name": "旅行者",
"element": "Electro",
"fetter": 0,
"level": 80,
"rarity": 5,
"actived_constellation_num": 6
},
{
"id": 10000039,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Diona.png",
"name": "迪奥娜",
"element": "Cryo",
"fetter": 10,
"level": 79,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000026,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xiao.png",
"name": "魈",
"element": "Anemo",
"fetter": 10,
"level": 70,
"rarity": 5,
"actived_constellation_num": 1
},
{
"id": 10000014,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Barbara.png",
"name": "芭芭拉",
"element": "Hydro",
"fetter": 10,
"level": 70,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000021,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ambor.png",
"name": "安柏",
"element": "Pyro",
"fetter": 10,
"level": 70,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000024,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Beidou.png",
"name": "北斗",
"element": "Electro",
"fetter": 10,
"level": 70,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000050,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Tohma.png",
"name": "托马",
"element": "Pyro",
"fetter": 3,
"level": 69,
"rarity": 4,
"actived_constellation_num": 0
},
{
"id": 10000015,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Kaeya.png",
"name": "凯亚",
"element": "Cryo",
"fetter": 10,
"level": 61,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000006,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Lisa.png",
"name": "丽莎",
"element": "Electro",
"fetter": 10,
"level": 60,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000020,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Razor.png",
"name": "雷泽",
"element": "Electro",
"fetter": 10,
"level": 50,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000048,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Feiyan.png",
"name": "烟绯",
"element": "Pyro",
"fetter": 10,
"level": 50,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000062,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Aloy.png",
"name": "埃洛伊",
"element": "Cryo",
"fetter": 9,
"level": 50,
"rarity": 105,
"actived_constellation_num": 0
},
{
"id": 10000027,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Ningguang.png",
"name": "凝光",
"element": "Geo",
"fetter": 10,
"level": 22,
"rarity": 4,
"actived_constellation_num": 6
},
{
"id": 10000044,
"image": "https://upload-os-bbs.mihoyo.com/game_record/genshin/character_icon/UI_AvatarIcon_Xinyan.png",
"name": "辛焱",
"element": "Pyro",
"fetter": 10,
"level": 21,
"rarity": 4,
"actived_constellation_num": 6
}
],
"stats": {
"active_day_number": 404,
"achievement_number": 492,
"win_rate": 0,
"anemoculus_number": 66,
"geoculus_number": 131,
"avatar_number": 42,
"way_point_number": 136,
"domain_number": 31,
"spiral_abyss": "12-3",
"precious_chest_number": 291,
"luxurious_chest_number": 114,
"exquisite_chest_number": 1080,
"common_chest_number": 1370,
"electroculus_number": 181,
"magic_chest_number": 45
},
"city_explorations": [],
"world_explorations": [
{
"level": 10,
"exploration_percentage": 1000,
"icon": "https://upload-os-bbs.mihoyo.com/game_record/genshin/city_icon/UI_ChapterIcon_Daoqi.png",
"name": "稻妻",
"type": "Reputation",
"offerings": [
{
"name": "神樱眷顾",
"level": 40
}
],
"id": 4
},
{
"level": 12,
"exploration_percentage": 1000,
"icon": "https://upload-os-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-os-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-os-bbs.mihoyo.com/game_record/genshin/city_icon/UI_ChapterIcon_Mengde.png",
"name": "蒙德",
"type": "Reputation",
"offerings": [],
"id": 1
}
],
"homes": [
{
"level": 10,
"visit_num": 64,
"comfort_num": 21720,
"item_num": 1325,
"name": "罗浮洞",
"icon": "https://upload-os-bbs.mihoyo.com/game_record/genshin/home/UI_HomeworldModule_2_Pic.png",
"comfort_level_name": "贝阙珠宫",
"comfort_level_icon": "https://upload-os-bbs.mihoyo.com/game_record/genshin/home/UI_Homeworld_Comfort_10.png"
},
{
"level": 10,
"visit_num": 64,
"comfort_num": 21720,
"item_num": 1325,
"name": "翠黛峰",
"icon": "https://upload-os-bbs.mihoyo.com/game_record/genshin/home/UI_HomeworldModule_1_Pic.png",
"comfort_level_name": "贝阙珠宫",
"comfort_level_icon": "https://upload-os-bbs.mihoyo.com/game_record/genshin/home/UI_Homeworld_Comfort_10.png"
},
{
"level": 10,
"visit_num": 64,
"comfort_num": 21720,
"item_num": 1325,
"name": "清琼岛",
"icon": "https://upload-os-bbs.mihoyo.com/game_record/genshin/home/UI_HomeworldModule_3_Pic.png",
"comfort_level_name": "贝阙珠宫",
"comfort_level_icon": "https://upload-os-bbs.mihoyo.com/game_record/genshin/home/UI_Homeworld_Comfort_10.png"
},
{
"level": 10,
"visit_num": 64,
"comfort_num": 21720,
"item_num": 1325,
"name": "绘绮庭",
"icon": "https://upload-os-bbs.mihoyo.com/game_record/genshin/home/UI_HomeworldModule_4_Pic.png",
"comfort_level_name": "贝阙珠宫",
"comfort_level_icon": "https://upload-os-bbs.mihoyo.com/game_record/genshin/home/UI_Homeworld_Comfort_10.png"
}
]
}
}
实际data格式依选择的样式有所删减
{
"retcode": 0,
"use_time": 0.2392582893371582,
"url": "/image/20220323182608-IVoakzp3.jpg"
}
参数说明
1.url:图片路径,拼接接口域名即可
2.retcode:
retcode | 备注 |
---|---|
0 | 成功生成角色信息图片 |
1 | 传入data错误 |
2 | 生成图片时发生错误 |
3 | 传入style样式名称错误 |
4 | 图片(文件)路径错误 |
刚才无意间发现还有人在用,已经把3.5版本的数据更新上了,可以的话还是换v4版本更稳定
https://genshin.minigg.cn/
参数名 | 必须 | 参数值 | 默认值 | 备注 |
---|---|---|---|---|
characters | ✔️ | 需要查询的名字 | 无 | 所需查询的角色名字 |
talents | ❌ | 任意值 | 无 | 如果包含该参数,显示所查询的角色的天赋信息 |
constellations | ❌ | 任意值 | 无 | 如果包含该参数,显示所查询的角色的命之座信息 |
参数名 | 必须 | 参数值 | 默认值 | 备注 |
---|---|---|---|---|
weapons | ✔️ | 需要查询的名字 | 无 | 所需查询的武器名字 |
https://genshin.minigg.cn/
参数名 | 必须 | 参数值 | 默认值 | 备注 |
---|---|---|---|---|
data | ✔️ | 需要查询的角色或武器名字 | 无 | 无 |