# StarCraft II API

StarCraft II Client - C++ library supported on Windows, Linux and Mac designed for building scripted bots and research using the SC2API.

Repository: https://github.com/Blizzard/s2client-api
Canonical: https://ross.abutalabs.com/products/starcraft-ii-client-api
Language: C++
License: MIT
License Family: permissive
Last push: 2019-12-16T12:05:23+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3341, "days_push": 2452, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1682, forks 281 (observed 2026-08-28T04:05:21.741514+00:00)

## What it is
Blizzard's official StarCraft II Client API, providing protobuf protocol definitions and a reference C++ library for full external control of StarCraft II. It enables building scripted and machine-learning bots, replay analysis, and tool-assisted play against headless Linux, Windows, or Mac clients.

## Use cases
- build a StarCraft II AI bot
- train reinforcement learning agents on StarCraft II
- analyze StarCraft II replays programmatically
- run headless StarCraft II for machine learning research
- control StarCraft II externally from C++ or Python
- create a scripted bot for SC2 bot ladders

## When to choose
- you want the official, low-level protocol for controlling StarCraft II
- you are building a C++ bot or a custom language wrapper on top of the protocol
- you need headless Linux SC2 builds, maps, or replay packs for ML research

## When to avoid
- you want a high-level Python RL environment - use DeepMind's PySC2 instead
- you want a ready-made bot architecture - consider CommandCenter
- you need to control games other than StarCraft II

## Facets
- artifact type: library
- maturity: maintenance
- function: sdk, machine-learning, simulation, parser
- domain: gaming-tools, artificial-intelligence, reinforcement-learning, simulation
- platform: windows, cpp, python
- tags: starcraft-ii, game-ai, protobuf, bot-development, replay-analysis, blizzard, linux, macos

## Member repositories
- Blizzard/s2client-api (main) score 23
- Blizzard/s2client-proto (infra) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:21.741514+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:24:29.438219+00:00, confidence not recorded.
  - readme: https://github.com/Blizzard/s2client-api (fetched 2026-08-28T04:05:21.741514+00:00, sha 0607d2482787)
- Data as of 2026-08-30T08:39:29.467469+00:00.
