You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

api.md 15 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. # Enka.Network API - Genshin Impact
  2. ## Table of Content
  3. - [Data Structure Info](#data-structure)
  4. - [Definitions](#definitions)
  5. - [Icons and Images](#icons-and-images)
  6. - [Localizations](#localizations)
  7. ## Data Structure
  8. | Name | Description |
  9. | :--- | :---------- |
  10. | [playerInfo](#playerinfo) | Profile Info |
  11. | [avatarInfoList](#avatarinfolist) | List of detailed information for every character from showcase |
  12. ### playerInfo
  13. For basic data of characters by ID, go to [store/characters.json](https://github.com/EnkaNetwork/API-docs/blob/master/store/characters.json). <br />
  14. For any additional info, check the [Characters Data](https://gitlab.com/Dimbreath/AnimeGameData/-/blob/master/ExcelBinOutput/AvatarExcelConfigData.json).
  15. | Name | Description |
  16. | :--- | :--------- |
  17. | nickname | Player Nickname |
  18. | signature | Profile Signature |
  19. | worldLevel | Player World Level |
  20. | namecardId | Profile Namecard ID |
  21. | finishAchievementNum | Number of Completed Achievements |
  22. | towerFloorIndex | Abyss Floor |
  23. | towerLevelIndex | Abyss Floor's Chamber |
  24. | [showAvatarInfoList](#showavatarinfolist) | List of Character IDs and Levels |
  25. | showNameCardIdList | List of Namecard IDs |
  26. | profilePicture.avatarId | Character ID of Profile Picture |
  27. #### showAvatarInfoList
  28. | Name | Description |
  29. | :--- | :--------- |
  30. | avatarId | Character ID |
  31. | level | Character Level |
  32. | costumeId | ID of character's skin. Check `"Costumes"` in [store/characters.json](https://github.com/EnkaNetwork/API-docs/blob/master/store/characters.json) |
  33. ### avatarInfoList
  34. For basic data of characters by ID, go to [store/characters.json](https://github.com/EnkaNetwork/API-docs/blob/master/store/characters.json). <br />
  35. For any additional info, check the [Characters Data](https://gitlab.com/Dimbreath/AnimeGameData/-/blob/master/ExcelBinOutput/AvatarExcelConfigData.json).
  36. | Name | Description |
  37. | :--- |:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  38. | avatarID | Character ID |
  39. | talentIdList | List of Constellation IDs <br /> There is no data if 0 Constellation |
  40. | [propMap](#propmap) | Character Info Properties List |
  41. | fightPropMap -> `{id: value}` | Map of Character's Combat Properties. <br />Check the [Definitions for IDs](#fightprop) |
  42. | skillDepotId | Character Skill Set ID <br />[Skills Data](https://gitlab.com/Dimbreath/AnimeGameData/-/blob/master/ExcelBinOutput/AvatarSkillDepotExcelConfigData.json) -> `"id"` |
  43. | inherentProudSkillList | List of Unlocked Skill Ids <br />[Skills Data](https://gitlab.com/Dimbreath/AnimeGameData/-/blob/master/ExcelBinOutput/AvatarSkillDepotExcelConfigData.json) -> `"inherentProudSkillOpens"` |
  44. | skillLevelMap -> `{skill_id: level}`| Map of Skill Levels <br /> [Skills Data](https://gitlab.com/Dimbreath/AnimeGameData/-/blob/master/ExcelBinOutput/AvatarSkillDepotExcelConfigData.json) -> `"inherentProudSkillOpens"` |
  45. | [equipList](#equiplist) | List of Equipments: Weapon, Ariftacts |
  46. | fetterInfo.expLevel | Character Friendship Level |
  47. #### propMap
  48. | Name | Description |
  49. | :--- | :--------- |
  50. | type | ID of Property Type, Check the [Definitions for IDs](#prop) |
  51. | ival | Ignore it |
  52. | val | Value of Property |
  53. #### equipList
  54. | Name | Description |
  55. | :--- | :--------- |
  56. | itemId | Equipment ID <br /> [Artifacts Data](https://gitlab.com/Dimbreath/AnimeGameData/-/blob/master/ExcelBinOutput/ReliquaryExcelConfigData.json) -> `"id"` <br /> [Weapons Data](https://gitlab.com/Dimbreath/AnimeGameData/-/blob/master/ExcelBinOutput/WeaponExcelConfigData.json) -> `"id"` |
  57. | [weapon](#weapon) `[Weapon Only]` | Weapon Base Info |
  58. | [reliquary](#reliquary) `[Artifact Only]` | Artifact Base Info |
  59. | [flat](#flat) | Detailed Info of Equipment |
  60. #### weapon
  61. For any additional info about weapons, check the [Weapons Data](https://gitlab.com/Dimbreath/AnimeGameData/-/blob/master/ExcelBinOutput/WeaponExcelConfigData.json)
  62. | Name | Description |
  63. | :--- | :---------- |
  64. | level | Weapon Level |
  65. | promoteLevel | Weapon Ascension Level |
  66. | affixMap | Weapon Refinement Level `[0-4]` |
  67. #### reliquary
  68. For any additional info about artifacts, check the [Artifacts Data](https://gitlab.com/Dimbreath/AnimeGameData/-/blob/master/ExcelBinOutput/ReliquaryExcelConfigData.json)
  69. | Name | Description |
  70. | :--- | :---------- |
  71. | level | Artifact Level `[1-21]` |
  72. | mainPropId | Artifact Main Stat ID <br /> [MainProps Data](https://gitlab.com/Dimbreath/AnimeGameData/-/blob/master/ExcelBinOutput/ReliquaryMainPropExcelConfigData.json) |
  73. | appendPropIdList | List of IDs of the artifact substats <br /> [AppendProp Data](https://gitlab.com/Dimbreath/AnimeGameData/-/blob/master/ExcelBinOutput/ReliquaryAffixExcelConfigData.json) |
  74. #### flat
  75. | Name | Description |
  76. | :--- | :---------- |
  77. | nameTextHashMap | Hash for Equipment Name <br /> Check [Localizations](#localizations) |
  78. | setNameTextHashMap `[Artifact Only]`| Hash for Artifact Set Name <br /> Check [Localizations](#localizations)|
  79. | rankLevel | Rarity Level of Equipment |
  80. | [reliquaryMainstat](#reliquarymainstat-reliquarysubstats-weaponstats) `[Artifact Only]` | Artifact Main Stat |
  81. | [reliquarySubstats](#reliquarymainstat-reliquarysubstats-weaponstats) `[Artifact Only]` | List of Artifact Substats |
  82. | [weaponStats](#reliquarymainstat-reliquarysubstats-weaponstats) `[Weapon Only]`| List of Weapon Stat: Base ATK, Substat |
  83. | [itemType](#itemtype) | Equipment Type: Weapon or Artifact |
  84. | icon | Equipment Icon Name <br /> [Icon name usage](#icons-and-images)|
  85. | [equipType](#equiptype) `[Artifact Only]` | Artifact Type |
  86. #### reliquaryMainstat, reliquarySubstats, weaponStats
  87. | Name | Description |
  88. | :--- | :---------- |
  89. | mainPropId / appendPropID | Equipment Append Property Name. Check the [Definitions for Names](#appendprop)|
  90. | propValue | Property Value |
  91. ## Definitions
  92. ### Prop
  93. | Type | Description |
  94. | :--: | :---------- |
  95. | 1001 | XP |
  96. | 1002 | Ascension |
  97. | 4001 | Level |
  98. ### FightProp
  99. | Type | Description |
  100. | :--: |:--------------------------------------------------|
  101. | 1 | Base HP |
  102. | 2 | HP |
  103. | 3 | HP% |
  104. | 4 | Base ATK |
  105. | 5 | ATK |
  106. | 6 | ATK% |
  107. | 7 | Base DEF |
  108. | 8 | DEF |
  109. | 9 | DEF% |
  110. | 10 | Base SPD |
  111. | 11 | SPD% |
  112. | 20 | CRIT Rate |
  113. | 22 | CRIT DMG |
  114. | 23 | Energy Recharge |
  115. | 26 | Healing Bonus |
  116. | 27 | Incoming Healing Bonus |
  117. | 28 | Elemental Mastery |
  118. | 29 | Physical RES |
  119. | 30 | Physical DMG Bonus |
  120. | 40 | Pyro DMG Bonus |
  121. | 41 | Electro DMG Bonus |
  122. | 42 | Hydro DMG Bonus |
  123. | 43 | Dendro DMG Bonus |
  124. | 44 | Anemo DMG Bonus |
  125. | 45 | Geo DMG Bonus |
  126. | 46 | Cryo DMG Bonus |
  127. | 50 | Pyro RES |
  128. | 51 | Electro RES |
  129. | 52 | Hydro RES |
  130. | 53 | Dendro RES |
  131. | 54 | Anemo RES |
  132. | 55 | Geo RES |
  133. | 56 | Cryo RES |
  134. | 70 | Pyro Energy Cost |
  135. | 71 | Electro Energy Cost |
  136. | 72 | Hydro Energy Cost |
  137. | 73 | Dendro Energy Cost |
  138. | 74 | Anemo Energy Cost |
  139. | 75 | Cryo Energy Cost |
  140. | 76 | Geo Energy Cost |
  141. | 77 | Maximum Special Energy |
  142. | 78 | Special Energy Cost |
  143. | 80 | Cooldown reduction |
  144. | 81 | Shield Strength |
  145. | 1000 | Current Pyro Energy |
  146. | 1001 | Current Electro Energy |
  147. | 1002 | Current Hydro Energy |
  148. | 1003 | Current Dendro Energy |
  149. | 1004 | Current Anemo Energy |
  150. | 1005 | Current Cryo Energy |
  151. | 1006 | Current Geo Energy |
  152. | 1007 | Current Special Energy |
  153. | 1010 | Current HP |
  154. | 2000 | Max HP |
  155. | 2001 | ATK |
  156. | 2002 | DEF |
  157. | 2003 | SPD |
  158. | 3025 | Elemental reaction CRIT Rate |
  159. | 3026 | Elemental reaction CRIT DMG |
  160. | 3027 | Elemental reaction (Overloaded) CRIT Rate |
  161. | 3028 | Elemental reaction (Overloaded) CRIT DMG |
  162. | 3029 | Elemental reaction (Swirl) CRIT Rate |
  163. | 3030 | Elemental reaction (Swirl) CRIT DMG |
  164. | 3031 | Elemental reaction (Electro-Charged) CRIT Rate |
  165. | 3032 | Elemental reaction (Electro-Charged) CRIT DMG |
  166. | 3033 | Elemental reaction (Superconduct) CRIT Rate |
  167. | 3034 | Elemental reaction (Superconduct) CRIT DMG |
  168. | 3035 | Elemental reaction (Burn) CRIT Rate |
  169. | 3036 | Elemental reaction (Burn) CRIT DMG |
  170. | 3037 | Elemental reaction (Frozen (Shattered)) CRIT Rate |
  171. | 3038 | Elemental reaction (Frozen (Shattered)) CRIT DMG |
  172. | 3039 | Elemental reaction (Bloom) CRIT Rate |
  173. | 3040 | Elemental reaction (Bloom) CRIT DMG |
  174. | 3041 | Elemental reaction (Burgeon) CRIT Rate |
  175. | 3042 | Elemental reaction (Burgeon) CRIT DMG |
  176. | 3043 | Elemental reaction (Hyperbloom) CRIT Rate |
  177. | 3044 | Elemental reaction (Hyperbloom) CRIT DMG |
  178. | 3045 | Base Elemental reaction CRIT Rate |
  179. | 3046 | Base Elemental reaction CRIT DMG |
  180. ### ItemType
  181. | Name | Description |
  182. | :--- | :---------- |
  183. | ITEM_WEAPON | Weapon |
  184. | ITEM_RELIQUARY | Artifact |
  185. ### EquipType
  186. | Name | Description |
  187. | :--- | :---------- |
  188. | EQUIP_BRACER | Flower |
  189. | EQUIP_NECKLACE | Feather |
  190. | EQUIP_SHOES | Sands |
  191. | EQUIP_RING | Goblet |
  192. | EQUIP_DRESS | Circlet |
  193. ### AppendProp
  194. | Name | Description |
  195. | :--- |:-------------------|
  196. | FIGHT_PROP_BASE_ATTACK `[Weapon]` | Base ATK |
  197. | FIGHT_PROP_HP | Flat HP |
  198. | FIGHT_PROP_ATTACK | Flat ATK |
  199. | FIGHT_PROP_DEFENSE | Flat DEF |
  200. | FIGHT_PROP_HP_PERCENT | HP% |
  201. | FIGHT_PROP_ATTACK_PERCENT | ATK% |
  202. | FIGHT_PROP_DEFENSE_PERCENT | DEF% |
  203. | FIGHT_PROP_CRITICAL | Crit RATE |
  204. | FIGHT_PROP_CRITICAL_HURT | Crit DMG |
  205. | FIGHT_PROP_CHARGE_EFFICIENCY | Energy Recharge |
  206. | FIGHT_PROP_HEAL_ADD | Healing Bonus |
  207. | FIGHT_PROP_ELEMENT_MASTERY | Elemental Mastery |
  208. | FIGHT_PROP_PHYSICAL_ADD_HURT | Physical DMG Bonus |
  209. | FIGHT_PROP_FIRE_ADD_HURT | Pyro DMG Bonus |
  210. | FIGHT_PROP_ELEC_ADD_HURT | Electro DMG Bonus |
  211. | FIGHT_PROP_WATER_ADD_HURT | Hydro DMG Bonus |
  212. | FIGHT_PROP_WIND_ADD_HURT | Anemo DMG Bonus |
  213. | FIGHT_PROP_ICE_ADD_HURT | Cryo DMG Bonus |
  214. | FIGHT_PROP_ROCK_ADD_HURT | Geo DMG Bonus |
  215. | FIGHT_PROP_GRASS_ADD_HURT | Dendro DMG Bonus |
  216. ## Icons and Images
  217. You can get icons of characters, weapons and artifacts via Enka, by URL `https://enka.network/ui/[icon_name].png`.
  218. Usually icon name starts with `"UI_"` or `"Skill_"` for [characters talents](#characters-talents-and-consts).
  219. For example https://enka.network/ui/UI_AvatarIcon_Side_Ambor.png.
  220. ### Weapons and Artifacts
  221. Go to [flat](#flat) and look for `icon`.
  222. ### Characters, Talents and Consts
  223. Go to [store/characters.json](https://github.com/EnkaNetwork/API-docs/blob/master/store/characters.json) and look for anything related to "UI_XXXXXX" or "Skill_XXXXXX" by character ID.
  224. ## Localizations
  225. You may notice `"NameTextMapHash"` in [store/characters.json](https://github.com/EnkaNetwork/API-docs/blob/master/store/characters.json), `"nameTextHashMap"` and `"setNameTextHashMap"` at [flat](#flat) that could be used as a key to get basic localization data of characters, weapons and artifacts from [store/loc.json](https://github.com/EnkaNetwork/API-docs/blob/master/store/loc.json).
  226. Also you can get localization data of [AppendProp](#appendprop) by using property name as a key - `"FIGHT_PROP_HP"`, `"FIGHT_PROP_HEAL_ADD"` etc.
  227. For any additional info about names, descriptions and etc, check the [TextMap Data](https://gitlab.com/Dimbreath/AnimeGameData/-/tree/master/TextMap), only includes languages supported by game.
  228. ## Wrappers
  229. TS/JS - https://www.npmjs.com/package/enkanetwork.js - [Jelosus1](https://github.com/Jelosus2)
  230. TS/JS - https://github.com/yuko1101/enka-network-api - [yuko1101](https://github.com/yuko1101)
  231. Rust - https://github.com/eratou/enkanetwork-rs - [eratou](https://github.com/eratou)
  232. Python - https://github.com/mrwan200/enkanetwork.py - [mrwan200](https://github.com/mrwan200)
  233. Python - https://github.com/seriaati/enka-py - [seriaati](https://github.com/seriaati)
  234. Java - https://github.com/kazuryyx/EnkaNetworkAPI - [kazury](https://github.com/kazuryyx)