Where can I find information on the Spell ID for a spell used by the WoW API?

I need to know what the spell id is supposed to be for certain spells for my WoW addon, but I'm not sure where to find information on the spells.

Is there a goto list somewhere?

I read on wowwiki that wowhead has this information, but I can't find it anywhere.


Solution 1:

If you search for a spell on Wowhead, the ID will be in the URL.

Example: Searching for Shield Bash gets you a page with the URL of http://www.wowhead.com/spell=72. The part after 'spell=' (in other words, 72) is the ID of the spell.

Its also worth noting that you can link spells in game via:

/script DEFAULT_CHAT_FRAME:AddMessage("\124cff71d5ff\124Hspell:72\124h[Shield Bash]\124h\124r");

where spell:## is the spell id