Dota 2 API | How to get current match details?

Windranger DOTA 2 Hero Warriors Ice


This topic is a never-ending story when no one can really answer to. But maybe this post will get enough attention and finally bring a final answer.

Sites like Gosu / Stratz etc. somehow get current match details which is not that simple task. TF2 wiki API has some useful information on how to get data from dota2 but not for the private current match. The best solution I come up with is using "GetRealtimeStats" (it's not documented at all) but this method requires steam_server_id.

So.. maybe there is a way of founding which STEAM SERVER ID you are currently playing on?

Using the in-game console "status" command.. you can find something like server_id, but it's not working. Maybe it's the wrong server id, maybe this command is not working. However, when you enter a broadcasted / live / tournament steam_server_id it shows everything correctly!

Is there anyone who knows how to get this data? Maybe gosu / Stratz are spoofing on the player's client to get this info.. but I don't think so. There has to be a simpler solution. I don't want to use any API from open data or so.. just I want to know the way how they access this information


leave a comment

Your email address will not be published. Required fields are marked *