Hey does anybody know if there’s a public api available for unit stats/civs etc…?
Not a public online API for unit/civ stats that I’m aware of. The usual approach is to read the game’s data file (empires2_x2_p1.dat
) and parse it, there are several open-source parsers for that.
If I misunderstood you and you meant civ stats aggregated from actual matches: there’s at least API - aoestats.
Unit-level telemetry, e.g., “how often unit X was produced”, isn’t publicly available to my knowledge; you’d need extensive parsing of replay files to derive that.