All released versions are available via npm (opens new window).
npm install starcraft2-api
# Access via CDN
StarCraft2-API is also available as UMD module and it can be accessed via CDN:
// Using jsDelivr: <script src="https://cdn.jsdelivr.net/npm/starcraft2-api/dist/index.umd.js"></script> // Using unpkg: <script src="https://unpkg.com/starcraft2-api/dist/index.umd.js"></script>
# Manual build
StarCraft2-API is available on GitHub (opens new window) and it can be built from source code.
git clone https://github.com/blizzapi/starcraft2-api.git cd starcraft2-api npm install npm run build
All released packages are also available in GitHub releases section (opens new window).