Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more

BLIZZARD_API

JSR Version

Start of what will cover the whole Blizzard Battle.net API when its done.

Link to the module on JSR

WORK IN PROGRESS

Let me know if you want certain APIs to be prioritized. Currently only supports client credentials flow but the plan is to implement authorization code flow also.

APIs implemented

APIs Status Note
World of Warcraft: Game Data APIs βœ…
World of Warcraft: Profile APIs βœ…
World of Warcraft Classic: Game Data APIs
Diablo III: Community APIs
Diablo III: Game Data APIs βœ…
Hearthstone: Game Data APIs βœ…
Overwatch League: Community APIs βœ… Only seem to support US region and some data types are partially defined as Unknown
StarCraft II: Community APIs
StarCraft II: Game Data APIs βœ…

Example

import * as blizzardAPI from "@pinta365/blizzard-api";

const clientId = "<YOUR CLIENT ID>";
const clientSecret = "<YOUR SECRET>";

blizzardAPI.setup({
    clientId,
    clientSecret,
    region: "eu",
    locale: "en_GB",
});

try {
    const sword = await blizzardAPI.wow.item(33791);
    console.log(sword);
} catch (error) {
    console.log(error);
}

Issues

Issues or questions concerning the library can be raised at the github repository page.

License

This project is licensed under the MIT License - see the LICENSE file for details.