World-of-warcraft – Getting Spells IDs from WoW

warcraftworld of warcraft

Is there a way to get all the current spell IDs using Blizzard's WoW API?

I would like to know the exact IDs because there are spells that might have IDs as low as 3 and up to 8056, while the limit of requests to do is around 3k for anonymous calls and 9k for registered applications (and this shuts down the idea of just trying to get the IDs in an 'for' expression).

Having the exact IDs of the spells, I can safely use Blizzard's API without worrying much about those limits.

Best Answer

Even if you dont like a for loop answer I'll give you one. The Blizzard api has the function GET SPELL /WOW/SPELL/:SPELLID to recieve spell information. Run that function in a loop, request all available spells and back them up in a xml file.

I give you that answer because I found the following in the Blizzard forum.

Hey community devs!

Since we launched the new API endpoints a number of you have run into issues related to the API request quota (10 calls per second). I’m pleased to announce that we’re changing out API requests are throttled in order to make it easier to develop against our APIs.

UPDATE: Throttle raised from 10 cps to 100 cps NEW: 36,000 calls per hour quota

These new limits maintain the same total call throughput, but allows devs to burst requests as necessary.

This post is dated 11/13/2014.

That should be more than enough for your plan.