[{"id":1,"name":"npc_dota_hero_antimage","name_loc":"Anti-Mage","name_english_loc":"Anti-Mage","primary_attr":1,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/antimage.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_agility.png"},{"id":2,"name":"npc_dota_hero_axe","name_loc":"Axe","name_english_loc":"Axe","primary_attr":0,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/axe.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_strength.png"},{"id":3,"name":"npc_dota_hero_bane","name_loc":"Bane","name_english_loc":"Bane","primary_attr":2,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/bane.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_intelligence.png"},{"id":4,"name":"npc_dota_hero_bloodseeker","name_loc":"Bloodseeker","name_english_loc":"Bloodseeker","primary_attr":1,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/bloodseeker.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_agility.png"},{"id":5,"name":"npc_dota_hero_crystal_maiden","name_loc":"Crystal Maiden","name_english_loc":"Crystal Maiden","primary_attr":2,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/crystal_maiden.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_intelligence.png"},{"id":6,"name":"npc_dota_hero_drow_ranger","name_loc":"Drow Ranger","name_english_loc":"Drow Ranger","primary_attr":1,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/drow_ranger.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_agility.png"},{"id":7,"name":"npc_dota_hero_earthshaker","name_loc":"Earthshaker","name_english_loc":"Earthshaker","primary_attr":0,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/earthshaker.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_strength.png"},{"id":8,"name":"npc_dota_hero_juggernaut","name_loc":"Juggernaut","name_english_loc":"Juggernaut","primary_attr":1,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/juggernaut.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_agility.png"},{"id":9,"name":"npc_dota_hero_mirana","name_loc":"Mirana","name_english_loc":"Mirana","primary_attr":1,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/mirana.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_agility.png"},{"id":11,"name":"npc_dota_hero_nevermore","name_loc":"Shadow Fiend","name_english_loc":"Shadow Fiend","primary_attr":1,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/shadow_fiend.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_agility.png"},{"id":10,"name":"npc_dota_hero_morphling","name_loc":"Morphling","name_english_loc":"Morphling","primary_attr":1,"complexity":3,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/morphling.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_agility.png"},{"id":12,"name":"npc_dota_hero_phantom_lancer","name_loc":"Phantom Lancer","name_english_loc":"Phantom Lancer","primary_attr":1,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/phantom_lancer.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_agility.png"},{"id":13,"name":"npc_dota_hero_puck","name_loc":"Puck","name_english_loc":"Puck","primary_attr":2,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/puck.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_intelligence.png"},{"id":14,"name":"npc_dota_hero_pudge","name_loc":"Pudge","name_english_loc":"Pudge","primary_attr":0,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/pudge.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_strength.png"},{"id":15,"name":"npc_dota_hero_razor","name_loc":"Razor","name_english_loc":"Razor","primary_attr":1,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/razor.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_agility.png"},{"id":16,"name":"npc_dota_hero_sand_king","name_loc":"Sand King","name_english_loc":"Sand King","primary_attr":0,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/sand_king.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_strength.png"},{"id":17,"name":"npc_dota_hero_storm_spirit","name_loc":"Storm Spirit","name_english_loc":"Storm Spirit","primary_attr":2,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/storm_spirit.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_intelligence.png"},{"id":18,"name":"npc_dota_hero_sven","name_loc":"Sven","name_english_loc":"Sven","primary_attr":0,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/sven.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_strength.png"},{"id":19,"name":"npc_dota_hero_tiny","name_loc":"Tiny","name_english_loc":"Tiny","primary_attr":0,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/tiny.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_strength.png"},{"id":20,"name":"npc_dota_hero_vengefulspirit","name_loc":"Vengeful Spirit","name_english_loc":"Vengeful Spirit","primary_attr":1,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/vengeful_spirit.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_agility.png"},{"id":21,"name":"npc_dota_hero_windrunner","name_loc":"Windranger","name_english_loc":"Windranger","primary_attr":2,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/windranger.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_intelligence.png"},{"id":22,"name":"npc_dota_hero_zuus","name_loc":"Zeus","name_english_loc":"Zeus","primary_attr":2,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/zeus.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_intelligence.png"},{"id":23,"name":"npc_dota_hero_kunkka","name_loc":"Kunkka","name_english_loc":"Kunkka","primary_attr":0,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/kunkka.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_strength.png"},{"id":25,"name":"npc_dota_hero_lina","name_loc":"Lina","name_english_loc":"Lina","primary_attr":2,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/lina.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_intelligence.png"},{"id":31,"name":"npc_dota_hero_lich","name_loc":"Lich","name_english_loc":"Lich","primary_attr":2,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/lich.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_intelligence.png"},{"id":26,"name":"npc_dota_hero_lion","name_loc":"Lion","name_english_loc":"Lion","primary_attr":2,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/lion.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_intelligence.png"},{"id":27,"name":"npc_dota_hero_shadow_shaman","name_loc":"Shadow Shaman","name_english_loc":"Shadow Shaman","primary_attr":2,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/shadow_shaman.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_intelligence.png"},{"id":28,"name":"npc_dota_hero_slardar","name_loc":"Slardar","name_english_loc":"Slardar","primary_attr":0,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/slardar.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_strength.png"},{"id":29,"name":"npc_dota_hero_tidehunter","name_loc":"Tidehunter","name_english_loc":"Tidehunter","primary_attr":0,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/tidehunter.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_strength.png"},{"id":30,"name":"npc_dota_hero_witch_doctor","name_loc":"Witch Doctor","name_english_loc":"Witch Doctor","primary_attr":2,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/witch_doctor.png"},{"_note":"Response truncated for documentation purposes"}]
curl --location --request GET 'https://zylalabs.com/api/1025/heroes+of+dota+two+api/922/get+dota+heroes' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 刀塔2的英雄 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
Dota2英雄API是游戏平台、体育媒体以及任何需要详细英雄数据的组织或个人的完美解决方案。通过这个API,开发者可以轻松创建应用程序或网站,为用户提供DOTA2的精彩英雄数据。
总体而言,Dota2英雄API是一个强大而多功能的工具,为开发者提供了方便访问详细英雄数据的方式,使得开发出多种应用程序和网站成为可能,从而帮助用户更好地理解和享受游戏。
Dota 2是世界上最具竞争性的游戏之一,在全球范围内都有玩家参与,职业团队和选手在联赛和锦标赛中角逐。
它将接收一个参数并提供一个JSON。
游戏平台:DOTA2 API可以被游戏平台使用,以向用户提供详细的英雄数据,包括技能、优势和劣势,以及性能统计数据。这可以帮助用户在游戏中做出更明智的决策。
幻想体育平台:DOTA2 API可以被幻想体育平台使用,以向用户提供数据,使他们在为幻想团队选拔英雄时能够做出更明智的决策。
电子竞技团队:电子竞技团队可以使用DOTA2 API来跟踪英雄的表现,包括个人表现和团队表现。这可以帮助他们在选择英雄、制定游戏策略和选手发展方面做出决策。
除了每月的API调用限制之外,没有其他限制。
“获取Dota英雄”端点返回有关Dota 2英雄的详细信息,包括他们的名字、图片、主要属性、复杂性水平和唯一标识符
响应中的关键字段包括“id”(英雄标识符) “name”(内部名称) “name_loc”(本地化名称) “name_english_loc”(英文名称) “primary_attr”(属性类型) “complexity”(难度等级) 和“image”(英雄图片URL)
响应数据组织为一个JSON数组,每个英雄的信息被封装在一个包含属性如名称、复杂性和图像的键值对对象中
该端点提供有关英雄名称、图像、主要属性(力量、敏捷、智力)、复杂性评级和唯一标识符的信息,使用户能够了解英雄特征
目前“获取Dota英雄”端点不接受自定义参数 用户只需调用该端点即可获取完整的英雄列表
"primary_attr"表示英雄的主要属性类型(0代表力量,1代表敏捷,2代表智力),而"complexity"则根据一个等级来评估英雄的难度,帮助玩家选择与他们技能水平相匹配的英雄
典型的使用案例包括开发显示英雄统计数据的游戏平台 创建用于选拔英雄的幻想体育工具 以及使电子竞技团队能够分析英雄表现以作出战略决策
通过来自官方Dota 2来源的定期更新来保持数据的准确性,确保英雄信息反映最新的游戏变化和平衡调整