# Installation

# NPM

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>

StarCraft2-API uses BlizzAPI (opens new window) and axios (opens new window) for HTTP requests. If you use UMD build without any module tooling you have to provide those dependencies manually.

# 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).

Last Updated: 6/15/2021, 10:44:43 PM