Battle.net API Wrapper for NodeJS

API Discussion
Hello Developers!

I love open source software. So today I am releasing a new wrapper for the Battle.net API available through NPM for developers using NodeJS. Why? Because the other Battle.net API wrappers have not been updated in some time, and may no longer be maintained by their authors.

Available under the MIT license this means you can fork it and do whatever you'd like. This also satisfies Blizzard's Usage Policy that any client library that engages the Battle.net API be open-sourced and freely available.

All API methods for the World of Warcraft, Starcraft 2, and Diablo 3 APIs have been implemented. Hearthstone, Heroes of the Storm, and Overwatch APIs will be added when/if they are made available.

You can find it on NPM: https://www.npmjs.org/package/battlenet-api

Or on GitHub: https://github.com/benweier/battlenet-api

Please open a Github issue if you have any problems or feature requests.

--- Future ---

0.5.x
- Custom request configuration

--- History ---

0.1.x
- Initial release
- WoW API methods
- WoW documentation

0.2.x
- SC2 API methods
- SC2 documentation

0.3.x
- D3 API methods
- D3 documentation

0.4.x
- Locales
Awesome! +1

How were you able to do this so fast? :O
Thanks Locust. I had already written most of the library for the app I'm working on (I'm going to post that here first for developers to get a first-look when I'm ready to unveil it). When Blizzard announced the new Dev Portal it was pretty simple to update the URLs to the new format. Very little of the methods had to be changed so I think I was fairly lucky.

The decision to release the library was already made and the new API was the nudge to get it out the door :)
How can I implant this into my Wordpress website?
you have to install nodejs on your server and install the package
Nytoro, WordPress is written in PHP while this library is written in JavaScript. Technically it may be possible to get WordPress to talk to this lib, but I'd recommend checking out one of the PHP libraries your fellow devs have written.

Speaking of which, I was just reading this post ...

http://us.battle.net/en/forum/topic/14059065774#3
Thanks for releasing this library skt, it is very useful.

I have a few requests which I will open a github issue for.

Also you may be interested in this (which domain to use for api requests):

http://us.battle.net/en/forum/topic/14419692209
Thanks Jafula, I've checked your issue and can't see an immediate reason why .api.battle.net wouldn't work but battle.net/api would. Perhaps there's a proxy or filter blocking access?

I'm working on introducing some overrides and other features like you suggest and will post again when I release them :)

Join the Conversation

Return to Forum