Parsing .sc2replay files [closed]

How do I parse StarCraft 2 replay files (.sc2replay)? Is there an API?

I know of Sc2gears, but it doesn’t quite fulfil my needs.


The Starcraft 2 replays are stored as MPQ a compressed file-format developed and used by Blizzard. On the bottom of the Wiki page you’ll also find links to MPQ parsers.

Maybe you’ll also want to have a look at the following open-source projects:
WARP (a Starcraft 2 replay parser written in Java) or phpsc2replay (a replay parser written in PHP).

Update: As of now, there’s also a Python library out there that can read a lot of the replay data: sc2reader. This is most likely the best option that is currently available (as of March 2013).

Update 2018: sc2reader is now maintained by ggtracker. Anyway sc2reader is hosted now on PyPi so maybe the best way is to pip install sc2reader and find it on sc2readers pypi page

Source : Link , Question Author : Gpx , Answer Author : Dominik Neise

Leave a Comment