The StarCraft II API is an interface that provides full external control of StarCraft II.
This API exposes functionality for developing software for:
- Scripted bots.
- Machine-learning based bots.
- Replay analysis.
- Tool assisted human play.
The API is available in the retail Windows and Mac clients. There are also Linux clients available at the download links below.
- Protocol
- Protobuf protocol definition of the API.
- Definition
- Documentation
- Reference C++ implementation
- Library designed for building a scripted bots using the API.
- Repository
- StarCraft II Linux Packages
- Self contained headless linux StarCraft II builds.
- Documentation
- Download
- Maps
- Maps from the 1v1 ladder and other custom maps.
- Download
- Replays
- Replay packs of 1v1 ladder games.
- Download
- PySC2
- DeepMind's python environment wrapper.
- Repository
- CommandCenter
- A robust architecture for quickly developing StarCraft AI bots.
- Repository
- Bot Ladders
- Community Wiki
- Unofficial wiki of documentation and tutorials.
- Website
- Discord Server
- Unofficial server for discussing AI questions and projects.
- Invite Link
- Facebook Group
- Unofficial community page.
- Website
To access the linux packages, map packs and replay packs, you must agree to the AI and Machine Learning License
The files are password protected with the password 'iagreetotheeula'.
By typing in the password ‘iagreetotheeula’ you agree to be bound by the terms of the AI and Machine Learning License
- 3.17
- 3.16.1
- 4.0.2
- 4.1.2
- 4.6
- 4.6.1
- 4.6.2
- 4.7
- 4.7.1
- 4.8.2
- 4.8.3
- 4.8.4
- 4.8.6
- 4.9.0
- 4.9.1
- 4.9.2
- 4.9.3
- 4.10
- Ladder 2017 Season 1
- Ladder 2017 Season 2
- Ladder 2017 Season 3 Updated
- Ladder 2017 Season 4
- Ladder 2018 Season 1
- Ladder 2018 Season 2
- Ladder 2018 Season 3
- Ladder 2018 Season 4
- Ladder 2019 Season 1
- Ladder 2019 Season 2
- Ladder 2019 Season 3
- Melee
This is the previous version of the Ladder 2017 Season 3 Map Pack
All additional game data should be extracted within the installation directory.
The default installation directories are:
- Windows: C:\Program Files (x86)\StarCraft II\
- Mac: /Applications/StarCraft II/
On Linux, the installation directory is the folder you extracted the linux package into.
The folder structure is the same across all platforms. However you may need to create some folders if they are missing.
Standard folder layout:
- StarCraft II/
- Battle.net/
- Maps/
- Replays/
- SC2Data/
- Versions/
- Extract the zip file directly into the "Maps" folder.
- In the API, a map can be specified as either an absolute path or its relative path inside this "Maps" folder.
- Replace the "Battle.net" and "Replays" folders with the ones in the zip file.
- In the API, a replay must be specified as an absolute path.
These define the action mappings from ability ids in the protobuf api to the internals of the game.
They also define some general ids that combine multiple abilities that have a similar semantic meaning
(e.g. various forms of burrow, cancel, lift/land, etc). The stableid.json
is updated occasionally with
the game, but can also be updated manually by downloading the stableid.json
from here and placing it
in the root of your StarCraft II
directory.