Sample REST API based on Express.js demonstrating StarCraft2-API features.
Note that this project is for illustrative purposes only. It is not designed to run as a production server.
git clone https://github.com/blizzapi/starcraft2-api-example.git
cd starcraft2-api-example
npm install
Register a client app with Blizzard Battle.net Developer Portal. Note down client id and client secret.
Copy and rename the file .env.sample
to .env
. Edit it accordingly:
API_PORT='8080'
API_BATTLENET_KEY='your client app id'
API_BATTLENET_SECRET='your client app secret'
With Node:
npm start
With Nodemon:
nodemon start.js
Returns all static SC2 profile data (achievements, categories, criteria, and rewards).
Returns metadata for an individual's profile.
Returns data about an individual SC2 profile.
Returns a ladder summary for an individual SC2 profile.
Returns data about an individual profile's ladder.
Returns ladder data for the current season's grandmaster leaderboard.
Returns data about the current season.
Returns metadata for an individual's account.
Retrieves data about an individual SC2 profile.
Retrieves data about an individual SC2 profile's ladders.
Returns data about an individual SC2 profile's match history.
Returns data about an individual SC2 ladder.
Returns data about the achievements available in SC2.
Returns data about the rewards available in SC2.
Returns data for the specified season, queue, team, and league.
Licensed under MIT License. See LICENSE for more information.
This project is not authored, affiliated or endorsed in any way by Blizzard Entertainment.
Battle.net and Blizzard Entertainment are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.
© 2010 Blizzard Entertainment, Inc. All rights reserved. Wings of Liberty is a trademark, and StarCraft and Blizzard Entertainment are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.
© 2013 Blizzard Entertainment, Inc. All rights reserved. Heart of the Swarm and StarCraft are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.