WoW API < GetSpellInfo

Get information about a spell.

name, rank, icon, castTime, minRange, maxRange 
= GetSpellInfo(spellId or spellName or spellLink)

Arguments Edit

spellId or spellName or spellLink
Integer - The global spell number, found on wowhead or through COMBAT_LOG_EVENT.
String - The Name of the spell.
String - The formatted link to the spell [Note: this appears to be broken, see Discussion page]

Returns Edit

name, rank, icon, castTime, minRange, maxRange
String - The name of the spell.
String - The rank line from the tooltip of the spell, e.g. "Rank 2". Returns some other classification (like "Summon" for a summoning spell) or an empty string if there is no rank.
String - The interface path to the icon texture.
Number - The cast time, in milliseconds.
Number - The minimum range of the spell.
Number - The maximum range of the spell.

Details Edit

cost, powerType, and isFunnel was removed in 6.0


Using spellId as the argument will always return the info. Using spellName or spellLink will only return the info if the spell is in your spellbook. Otherwise it will return nil.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.