This API lets you query data from the KnightHood game heroes. All parameters are lists (comma seperated values) except effect.
WORK IN PROGRESS - CHANGES TO COME - last update 2024-11-21
Input parameters...
- name (n): Query heroes by name.
- rarity (r): Query heroes by rarity.
- class (c): Query heroes by class.
- alignment (a): Query heroes by alignment.
- strong_vs (vs): Query heroes by Strong VS.
- effect (e): Query heroes by the effects that can be applied by their powers. [Stun, CureDebuff, etc.]
- target (t): Query heroes by their target type. [Current, FrontRow, etc.]
- behaviour (b): Specify the hero power's behaviour (mainly for IgnoreArmor).
- power: If present, the heroes powers data will also be returned, otherwise they're not.
Response structure...
- api: <string> API name and method called
- query: <json-list> Input parameters found
- {parameter name}
- {values}
- response: <integer> 200 (OK)
- error: <null> or...
- code: {error code}
- message: {error message}
- link: {link to documentation}
- found: <integer>
- heroes: <json-list>
- alignment
- class
- name
- rarity
- strong_vs
- url (hero picture)
- base (if power parameter is specified)
- behaviour: ["PreferArmor", "PreferHealth", "IgnoreArmor"]
- charge: <integer> Base charge hits number.
- damage: base values for hero damage calculation.
- effect: ["CureDefuffs", "DispelBuffs", "DelayPowers", "FillRage"]
- hits: number of hits [not always precise as far as I can see]
- inflicts: ["Acid", "Burn", "Expose", "Focus", "Freeze", "Fury", "Poison", "Protect", "Regenerate", "Stun", "Unfocus", "Weaken"]
- name: name of the power.
- recoil: <decimal>% of damage or heal back.
- strong_vs: ["Beast", "Cult", "Demon", "Goblin", "Golem", "Militia", "Outlaw", "Troll", "Undead"]
- target: ["Current", "Self", "Equally", "Distribute", "FrontRow", "BackRow", "LineInFront", "BackSingle", "Random"]
- rage (same as base, except for charge which is not present in rage power.)
Examples...