hero

StarCraft2-API

Flexible and feature-rich Node.js library for StarCraft II Community and Game Data APIs

Get Started →

Install

npm install starcraft2-api

Quick start

const StarCraft2API = require('starcraft2-api');

const sc2api = new StarCraft2API({
  region: 'us',
  clientId: 'client id',
  clientSecret: 'client secret'
});

const data = await sc2api.queryProfile({
  regionId: 1,
  realmId: 1,
  profileId: 1084304,
});

console.log(data);

// Do something with data