{"repo":"benweier/blizzard.js","free":true,"listed":false,"github":"https://github.com/benweier/blizzard.js","clone":"git clone https://github.com/benweier/blizzard.js.git","description":"A promise-based Node.JS library for the Blizzard Battle.net Community Platform API","language":"TypeScript","stars":155,"topics":["blizzard","battlenet","api","promise","starcraft","diablo","hearthstone","warcraft","typescript"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Blizzard.js Blizzard.js is a promise-based library for the Blizzard Battle.net Community Platform API, written in TypeScript with zero runtime dependencies. Requires Node.js =20.19 (uses the global fetch API). The client also runs on edge runtimes and browsers. Upgrading from v4? See the migration guide. Install Battle.net API Key Please refer to the Battle.net Developer Portal documentation to obtain Blizzard API credentials. Usage Game Clients All game clients are available via their named export. - Diablo 3 : d3 - Hearthstone : hs - Starcraft 2 : sc2 - World of Warcraft (Retail) : wow - World of Warcraft (Classic) : wow.classic With TypeScript & ES modules With CommonJS API Methods All API methods can accept the same key , secret , token , origin , locale parameters as createInstance , for cases where you need to use different values to the default. Methods resolve to a { data, status, statusText, headers } response object. Failed requests throw a ResponseError with the same response object attached at error.response . Response data is typed unknown by default — pass a response type per call when you want typed access: Method parameters are encoded with encodeURIComponent for URL safety. Sanitizing your inputs is still important, but just be aware in case certain requests fail for this reason. Refer to the resource references for the available methods and parameters: - Diablo 3 - Hearthstone - Starcraft 2 - World of Warcraft (Retail) - World of Warcraft (Classic) User Toke","default_branch":null,"files":null,"tree":[],"storefront":"/r/benweier","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/benweier/blizzard.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}