刀塔二英雄 API

API ID 2469

Dota Two英雄API提供访问英雄的资料 技能和历史 这增强了玩家策略 促进了发展 并丰富了游戏体验

100% 正常运行时间 7,645 ms 平均响应

API 文档

端点

请求

要使用此端点,您必须在参数中指明一个英雄的ID和您希望接收响应的语言。

可用语言: (英语,西班牙语,法语,意大利语,德语,希腊语,韩语,简体中文,繁体中文,俄语,泰语,日语,葡萄牙语,巴西葡萄牙语,波兰语,丹麦语,荷兰语,芬兰语,挪威语,瑞典语,捷克语,匈牙利语,罗马尼亚语,保加利亚语,土耳其语,乌克兰语)。

Endpoint ID: 2442
GET https://zylalabs.com/api/2469/dota+two+heroes+api/2442/get+heroes+by+id
输入参数

通过ID获取英雄 — 端点功能

对象 描述
id 必需 Enter an ID
language 必需 Enter a language

剩余免费测试请求:3 / 3。


输入参数

id
language
API 示例响应
JSON
{"id":10,"name":"npc_dota_hero_morphling","order_id":11,"name_loc":"Morphling","bio_loc":"For dark eons the comet circled. Held in thrall to a distant sun, bound by gravity's inexorable pull, the massive ball of ice careened through the blackness between worlds, made strange by its dark journey. On the eve of the ancient war of the Vloy, it punched down through the sky and lit a glowing trail across the night, a sign both armies took for an omen. The frozen ball melted in a flash of boiling heat, as below two forces enjoined in battle across the border of a narrow river. Thus freed from its icy stasis, the Morphling was born into conflict, an elemental power at one with the tides of the ocean, capricious and unconstrained. He entered the fight, instinctively taking the form of the first general who dared set foot across the water, and then struck him dead. As the motley warriors clashed, he shifted from form to form throughout the battle, instantly absorbing the ways of these strange creatures--now a footsoldier, now an archer, now the cavalryman--until, by the time the last soldier fell, Morphling had played every part. The battle's end was his beginning.","hype_loc":"Shifting his attributes to suit his situation, Morphling can be as <b>elusive</b> as he is deadly. Whether <b>riding a wave</b> to flank an enemy, or boosting his health before escaping into his <b>deceptive replication</b>, few can hope to corner him.","npe_desc_loc":"Rides the waves to flank enemies","str_base":23,"str_gain":3.2,"agi_base":24,"agi_gain":3.9,"int_base":19,"int_gain":1.8,"primary_attr":1,"complexity":3,"attack_capability":2,"role_levels":[3,0,1,1,0,2,3,0,0],"damage_min":33,"damage_max":42,"attack_rate":1.5,"attack_range":350,"projectile_speed":1300,"armor":2,"magic_resistance":25,"movement_speed":285,"turn_rate":0.7,"sight_range_day":1800,"sight_range_night":800,"max_health":626,"health_regen":2.8,"max_mana":303,"mana_regen":1.45,"abilities":[{"id":5052,"name":"morphling_waveform","name_loc":"Waveform","desc_loc":"Morphling dissolves into liquid and surges forward, damaging enemy units in his path.  Morphling is invulnerable during Waveform.","lore_loc":"A torrential flood takes enemies by force.","notes_loc":[],"shard_loc":"","scepter_loc":"","type":0,"behavior":"134742032","target_team":0,"target_type":0,"flags":0,"damage":2,"immunity":4,"dispellable":0,"max_level":4,"cast_ranges":[700,800,900,1000],"cast_points":[0.25],"channel_times":[0],"cooldowns":[21,18,15,12],"durations":[0],"damages":[75,150,225,300],"mana_costs":[130],"gold_costs":[],"health_costs":[],"special_values":[{"name":"speed","values_float":[1250],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"width","values_float":[200],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"#AbilityDamage","values_float":[75,150,225,300],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"AbilityCastRange","values_float":[700,800,900,1000],"is_percentage":false,"heading_loc":"CAST RANGE:","bonuses":[{"name":"special_bonus_unique_morphling_1","value":250,"operation":0}],"values_shard":[],"values_scepter":[]},{"name":"AbilityChannelTime","values_float":[0],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"AbilityDuration","values_float":[0],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"AbilityCastPoint","values_float":[0.25],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"AbilityCharges","values_float":[0],"is_percentage":false,"heading_loc":"","bonuses":[{"name":"special_bonus_unique_morphling_6","value":2,"operation":0}],"values_shard":[],"values_scepter":[]},{"name":"AbilityChargeRestoreTime","values_float":[0],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"AbilityManaCost","values_float":[130],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"AbilityCooldown","values_float":[21,18,15,12],"is_percentage":false,"heading_loc":"","bonuses":[{"name":"special_bonus_unique_morphling_waveform_cooldown","value":40,"operation":4}],"values_shard":[],"values_scepter":[]}],"is_item":false,"ability_has_scepter":false,"ability_has_shard":false,"ability_is_granted_by_scepter":false,"ability_is_granted_by_shard":false,"item_cost":0,"item_initial_charges":0,"item_neutral_tier":4294967295,"item_stock_max":0,"item_stock_time":0,"item_quality":0,"thumb_image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/abilities/morphling_waveform.png","video_webm":"https://cdn.cloudflare.steamstatic.com/apps/dota2/videos/dota_react/abilities/batrider/morphling_waveform.webm","video_mp4":"https://cdn.cloudflare.steamstatic.com/apps/dota2/videos/dota_react/abilities/batrider/morphling_waveform.mp4"},{"id":5053,"name":"morphling_adaptive_strike_agi","name_loc":"Adaptive Strike (Agility)","desc_loc":"Launches a surge of water toward an enemy unit, dealing base damage plus additional damage based on Morphling's agility times a multiplier.  If Morphling's agility is 50% higher than strength, the maximum agility multiplier is used. Passively grants bonus Agility. \n\n Also puts Adaptive Strike (Strength) on a %shared_cooldown% second cooldown.","lore_loc":"The Morphling calls upon his elements to crush his opponents with waves.","notes_loc":["Projectile moves at %projectile_speed% speed."],"shard_loc":"Increases bonus Agility.","scepter_loc":"","type":0,"behavior":"8","target_team":2,"target_type":19,"flags":0,"damage":2,"immunity":4,"dispellable":0,"max_level":4,"cast_ranges":[600,700,800,900],"cast_points":[0.25],"channel_times":[0],"cooldowns":[16,14,12,10],"durations":[0],"damages":[0,0,0,0],"mana_costs":[40,50,60,70],"gold_costs":[],"health_costs":[],"special_values":[{"name":"damage_base","values_float":[55,65,75,85],"is_percentage":false,"heading_loc":"BASE DAMAGE:","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"damage_min","values_float":[0.5],"is_percentage":false,"heading_loc":"DAMAGE MIN AGI MULTIPLIER:","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"damage_max","values_float":[1,1.5,2,2.5],"is_percentage":false,"heading_loc":"DAMAGE MAX AGI MULTIPLIER:","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"projectile_speed","values_float":[1150],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"shared_cooldown","values_float":[3],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"bonus_attributes","values_float":[3,5,7,9],"is_percentage":false,"heading_loc":"BONUS AGILITY:","bonuses":[],"values_shard":[6],"values_scepter":[]},{"name":"AbilityCastRange","values_float":[600,700,800,900],"is_percentage":false,"heading_loc":"CAST RANGE:","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"AbilityChannelTime","values_float":[0],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"AbilityDuration","values_float":[0],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"AbilityCastPoint","values_float":[0.25],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"AbilityCharges","values_float":[0],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"AbilityChargeRestoreTime","values_float":[0],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"AbilityManaCost","values_float":[40,50,60,70],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]},{"name":"AbilityCooldown","values_float":[16,14,12,10],"is_percentage":false,"heading_loc":"","bonuses":[],"values_shard":[],"values_scepter":[]}],"is_item":false,"ability_has_scepter":false,"ability_has_shard":true,"ability_is_granted_by_scepter":false,"ability_is_granted_by_shard":false,"item_cost":0,"item_initial_charges":0,"item_neutral_tier":4294967295,"item_stock_max":0,"item_stock_time":0,"item_quality":0,"thumb_image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/abilities/morphling_adaptive_strike_agi.png","video_webm":"https://cdn.cloudflare.steamstatic.com/apps/dota2/videos/dota_react/abilities/batrider/morphling_adaptive_strike_agi.webm","video_mp4":"https://cdn.cloudflare.steamstatic.com/apps/dota2/videos/dota_react/abilities/batrider/morphling_adaptive_strike_agi.mp4"},{"id":7000,"name":"morphling_adaptive_strike_str","name_loc":"Adaptive Strike (Strength)","desc_loc":"Launches a surge of water toward an enemy unit, stunning and knocking back the target based on Morphling's strength. If his strength is 50% higher than his agility, the maximum stun/knockback is dealt. Passively grants bonus Strength. \n\n Also puts Adaptive Strike (Agility) on a %shared_cooldown% second cooldown.","lore_loc":"The Morphling calls upon his elements to crush his opponents with waves.","notes_loc":["Projectile moves at %projectile_speed% speed."],"shard_loc":"Increases bonus Strength.","scepter_loc":"","type":0,"behavior":"8","target_team":2,"target_type":19,"flags":0,"damage":0,"immunity":4,"dispellable":1,"max_level":4,"cast_ranges":[600,700,800,900],"cast_points":[0.25],"channel_times":[0],"cooldowns":[16,14,12,10],"durations":[0],"damages":[0,0,0,0],"mana_costs":[40,50,60,70],"gold_costs":[],"health_costs":[],"special_values":[{"name":"stun_min","values_float":[0.5],"is_percentage":false,"heading_loc":"STUN MIN:","bonuses":[{"name":"special_bonus_unique_morphling_10","value":0.8,"operation":0}],"values_shard":[],"values_scepter":[]},{"name":"stun_max","values_float":[1.2,1.6,2,2.4],"is_percentage":false}]}],"_note":"Response truncated for documentation purposes"}
通过ID获取英雄 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/2469/dota+two+heroes+api/2442/get+heroes+by+id?id=10&language=english' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求

该API为您提供有关所有可用Dota 2英雄的详细信息

Endpoint ID: 2443
GET https://zylalabs.com/api/2469/dota+two+heroes+api/2443/get+all+heroes
输入参数

剩余免费测试请求:3 / 3。

此端点不需要任何输入参数。

API 示例响应
JSON
[{"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":3,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/bane.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":3,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/mirana.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":3,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/sand_king.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":3,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/vengeful_spirit.png"},{"id":21,"name":"npc_dota_hero_windrunner","name_loc":"Windranger","name_english_loc":"Windranger","primary_attr":3,"complexity":2,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/windranger.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","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_intelligence.png"},{"id":32,"name":"npc_dota_hero_riki","name_loc":"Riki","name_english_loc":"Riki","primary_attr":1,"complexity":1,"image":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/riki.png","attribute_img":"https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/icons/hero_agility.png"},{"id":33,"name":"npc_dota_hero_enigma","name_loc":"Enigma","name_english_loc":"Enigma","primary_attr":3,"complexity":2},{"_note":"Response truncated for documentation purposes"}]
获取所有英雄 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/2469/dota+two+heroes+api/2443/get+all+heroes' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 刀塔二英雄 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

(年度计费可节省 2 个月 🎉)

🚀 企业版套餐

起价
$ 10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

关于API:  

Dota Two Heroes API作为通往这些传奇化身秘密的门户,提供了丰富的信息,允许玩家、开发者和爱好者深入探索这个游戏宇宙的复杂织锦。

Dota Two Heroes API是一个动态工具,使用户能够访问大量数据,揭示游戏英雄的资料、技能和传记。从标志性角色如斧王和术士开始。该API揭示了每个角色的细节,允许玩家掌握他们的优势,利用他们的弱点,并精准编排他们的策略。

玩家赋权是Dota Two Heroes API的核心。玩家可以仔细研究英雄属性、技能细节以改善他们的游戏体验。在了解英雄之间的协同作用后,他们可以在选拔阶段做出明智的决策,灵活调整他们的策略,展示Dota 2所要求的战术深度。

对于用户来说,Dota Two Heroes API是一个可能性的宝库。它促进了附加应用程序、网站和工具的创建,这些工具提供有关英雄的信息。无论是创建英雄指南平台、团队组合模拟器还是实时分析仪表板,API都允许开发者增强Dota 2的体验,并为不断变化的Dota 2知识景观作出贡献。

爱好者和历史爱好者也会在API丰富的内容中找到安慰。每个英雄都有与更广泛的Dota 2宇宙交织在一起的背景故事,API使这些故事对那些希望沉浸在使游戏角色栩栩如生的叙事中的人们变得可及。

安全性和准确性是Dota Two Heroes API的重中之重。数据直接从游戏中提取,API确保提供的信息可靠且最新,使得玩家和开发者能够基于准确的数据做出明智的决策。

总之,Dota Two Heroes API是视频游戏世界中技术、策略和故事叙述交汇的见证。通过提供大量关于英雄的信息、技能和传说,API超越了单纯的数据访问,转变为掌握、创新和沉浸于Dota 2宇宙的通道。随着玩家、开发者和爱好者继续塑造数字战场的命运,Dota Two Heroes API成为坚定不移的盟友,为进入这些虚拟传奇的史诗传奇提供了一个门户。

 

这个API接收什么,提供什么(输入/输出)?

它将接收参数并为您提供JSON。

 

这个API最常见的用例是什么?

  1. 改善玩家策略:玩家可以分析英雄的技能和属性,以优化他们在游戏中的策略和决策。

  2. 选拔想法:团队可以利用英雄信息做出选拔决策,确保组成平衡并有效反制对手。

  3. 电子竞技分析:电子竞技分析师和解说员可以访问英雄数据,以在比赛直播中提供见解和背景。

  4. 英雄指南平台:用户可以创建平台,提供每个英雄的详细指南和提示,帮助玩家掌握游戏。

  5. 团队组合模拟:可以创建工具来模拟和可视化团队组合,让玩家尝试不同的组合。

     

你的计划是否有任何限制?

除了API调用次数,没有其他限制。

刀塔二英雄 API FAQs

要使用此 API,用户必须提供英雄的 ID 以及希望接收响应的语言

有不同的计划适合每个人,包括一个针对少量请求的免费试用,但其速率是有限制的,以防滥用服务

Zyla为几乎所有编程语言提供了广泛的集成方法。您可以根据需要使用这些代码与您的项目集成

该API为您提供有关所有可用Dota 2英雄的详细信息

“通过ID获取英雄”端点返回详细的英雄资料,包括属性、技能和传记。“获取所有英雄”端点提供所有英雄的综合列表,包括他们的ID、名称、主要属性、复杂度等级和图片

关键字段包括"id"(英雄标识符)、"name"(英雄的内部名称)、"name_loc"(本地化名称)、"primary_attr"(英雄的主要属性)、"complexity"(技能水平)和"image"(英雄图像的URL)

响应数据采用JSON格式结构。每个英雄的数据都被封装在一个包含键值对的对象中,使得解析和访问特定属性如技能和传记变得容易

“通过ID获取英雄”端点需要英雄的“ID”和响应的“语言”“获取所有英雄”端点不需要任何参数,返回所有英雄的数据

用户在使用“通过ID获取英雄”端点时可以指定英雄的ID和所需语言这允许根据用户的偏好和需求提供定制的响应

数据直接来自Dota 2游戏,确保信息准确且最新,反映英雄及其属性的当前状态

典型的用例包括分析英雄的优缺点以优化策略 创建英雄指南以及开发工具进行Dota 2中的团队组合模拟

用户可以利用这些数据来增强游戏策略 创建有用的内容 并开发提供英雄协同和反制选择洞察的应用程序

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API


您可能还喜欢