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 5.0 kB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. # Enka.Network - API
  2. ## Getting Started
  3. You can fetch JSON-data by doing request via URL - `https://enka.network/u/[UID]/__data.json` <br />
  4. For example https://enka.network/u/700378769/__data.json
  5. ## Data Structure Info
  6. | Name | Description |
  7. | :--- | :---------- |
  8. | [playerInfo](#playerinfo) | Profile Info |
  9. | [avatarInfoList](#avatarinfolist) | List of detailed information for every character from showcase |
  10. ### playerInfo
  11. For any additional info, check the [Characters Data](https://github.com/Dimbreath/GenshinData/blob/master/ExcelBinOutput/AvatarExcelConfigData.json), includes IDs and other stuff.
  12. | Name | Description |
  13. | :--- | :--------- |
  14. | nickname | Player Nickname |
  15. | signature | Profile Signature |
  16. | worldLevel | Player World Level |
  17. | namecardId | Profile Namecard ID |
  18. | finishAchievementNum | Number of Completed Achievements |
  19. | towerFloorIndex | Abyss Floor |
  20. | towerLevelIndex | Abyss Floor's Level |
  21. | [showAvatarInfoList](#showavatarinfolist-avatarinfo) | List of Character IDs and Levels |
  22. | showNameCardIdList | List of Namecard IDs |
  23. | profilePicture.avatarID | Character ID of Profile Picture |
  24. #### showAvatarInfoList - AvatarInfo
  25. | Name | Description |
  26. | :--- | :--------- |
  27. | avatarId | Character ID |
  28. | level | Character Level |
  29. ### avatarInfoList
  30. | Name | Description |
  31. | :--- | :---------- |
  32. | avatarID | Character ID |
  33. | [propMap](#propmap) | Character Info Properties List |
  34. | fightPropMap -> `{id: value}` | Map of Character's Combat Properties. <br />Check the [Definitions for IDs](#fightprop)|
  35. | skillDepotId | Character Skill Set ID <br />[Skills Data](https://github.com/Dimbreath/GenshinData/blob/master/ExcelBinOutput/AvatarSkillDepotExcelConfigData.json) -> `"id"`|
  36. | inherentProudSkillList | List of Unlocked Skill Ids <br />[Skills Data](https://github.com/Dimbreath/GenshinData/blob/master/ExcelBinOutput/AvatarSkillDepotExcelConfigData.json) -> `"inherentProudSkillOpens"` |
  37. | skillLevelMap -> `{skill_id: level}`| Map of Skill Levels <br /> [Skills Data](https://github.com/Dimbreath/GenshinData/blob/master/ExcelBinOutput/AvatarSkillDepotExcelConfigData.json) -> `"inherentProudSkillOpens"` |
  38. | [equipList](#equiplist-equip) | List of Equipments: Weapon, Ariftacts |
  39. | fetterInfo.expLevel | Character Friendship Level |
  40. #### propMap
  41. | Name | Description |
  42. | :--- | :--------- |
  43. | type | ID of Property Type, Check the [Definitions for IDs](#prop) |
  44. | ival | Ignore it |
  45. | val | Value of Property |
  46. #### equipList - Equip
  47. | Name | Description |
  48. | :--- | :--------- |
  49. | itemId | Equipment ID <br /> [Equipments Data](https://raw.githubusercontent.com/Dimbreath/GenshinData/master/ExcelBinOutput/GadgetExcelConfigData.json) -> `"id"` |
  50. | [weapon](#weapon) `[Weapon Only]` | Weapon Base Info |
  51. | [reliquary](#reliquary) `[Artifact Only]` | Artifact Base Info |
  52. | [flat](#flat) | Detailed Info of Equipment |
  53. #### weapon
  54. | Name | Description |
  55. | :--- | :---------- |
  56. | level | Weapon Level |
  57. | promoteLevel | Weapon Ascension Level |
  58. | affixMap | Weapon Refinement Level `[0-4]` |
  59. #### reliquary
  60. | Name | Description |
  61. | :--- | :---------- |
  62. | level | Artifact Level `[1-21]` |
  63. | mainPropId | Artifact Main Stat ID <br /> [MainProps Data](https://github.com/Dimbreath/GenshinData/blob/master/ExcelBinOutput/ReliquaryMainPropExcelConfigData.json) |
  64. #### flat
  65. For any additional info about names, descriptions and etc, check the [TextMap Data](https://github.com/Dimbreath/GenshinData/tree/master/TextMap), includes any languages supported by game.
  66. | Name | Description |
  67. | :--- | :---------- |
  68. | nameTextHashMap | Hash for Equipment Name |
  69. | setNameTextHashMap `[Artifact Only]`| Hash for Artifact Set Name |
  70. | rankLevel | Rarity Level of Equipment |
  71. | weaponStats `[Weapon Only]`| Weapon Stats |
  72. | reliquaryMainstat `[Artifact Only]` | Artifact Main Stat |
  73. | reliquarySubstats `[Artifact Only]` | Arifact Substats |
  74. | itemType | Equipment Type: Weapon or Artifact|
  75. | icon | Equipment Icon Name |
  76. | [equipType](#equiptype) `[Artifact Only]` | Artifact Type |
  77. ## Definitions
  78. ### Prop
  79. | Type | Description |
  80. | :--: | :---------- |
  81. | 1001 | XP |
  82. | 1002 | Ascension |
  83. | 4001 | Level |
  84. ### FightProp
  85. | Type | Description |
  86. | :--: | :---------- |
  87. | 1 | Base HP |
  88. | 4 | Base ATK |
  89. | 7 | Base DEF |
  90. | 20 | CRIT Rate |
  91. | 22 | CRIT DMG |
  92. | 23 | Energy Recharge |
  93. | 26 | Healing Bonus |
  94. | 27 | Incoming Healing Bonus |
  95. | 28 | Elemental Mastery |
  96. | 29 | Physical RES |
  97. | 30 | Physical DMG Bonus |
  98. | 40 | Pyro DMG Bonus |
  99. | 41 | Electro DMG Bonus |
  100. | 42 | Hydro DMG Bonus |
  101. | 44 | Anemo DMG Bonus |
  102. | 45 | Geo DMG Bonus |
  103. | 46 | Cryo DMG Bonus |
  104. | 50 | Pyro RES |
  105. | 51 | Electro RES |
  106. | 52 | Hydro RES |
  107. | 53 | Dendro RES |
  108. | 54 | Anemo RES |
  109. | 55 | Geo RES |
  110. | 56 | Cryo RES |
  111. | 70 | Pyro Enegry Cost |
  112. | 71 | Electro Energy Cost |
  113. | 72 | Hydro Energy Cost |
  114. | 73 | Dendro Energy Cost |
  115. | 74 | Anemo Energy Cost |
  116. | 75 | Cryo Energy Cost |
  117. | 76 | Geo Energy Cost |
  118. | 2000 | Max HP |
  119. | 2001 | ATK |
  120. | 2002 | DEF |
  121. ### EquipType

[GitLink Mirror] API documentation for the Enka.Network API responses and structure.