Categories: DiscussionDota 2

Dota 2 API | How to get current match details?

Hey,

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

Gamer

View Comments

  • I wish I knew the answer. You can check the server_log.txt and retrieve a lobby id but that's not the same as a steam_server_id... I am considering brute-forcing the GetRealtimeStats ID but my worry is that the only games available through the live games API call anyway

Recent Posts

Ledx have been so hard for me this wipe

Not being able to craft them sucks. Especially when everyone I talk to about it…

1 year ago

My interesting and unfortunate Gwent life

First I'd like to say I absolutely love this game it's quality. Basically I first…

1 year ago

Teacher Tuesday 12/Dec/2023 – ask your questions here!

Welcome to Teacher Tuesday, a thread where anyone can ask any type of question without…

1 year ago

This games balance is confusing

I’m kind of new/returning to gwent I played beta and obviously it’s a lot lot…

1 year ago

Summary of 10 Days of Draws from Chaffee’s Bundles

Level 1 Bag (Free with Atmosphere Level 2) 6 small consumable (First Aid, Repair, Fire…

1 year ago

Why is my crew at 135%?

Here's my crew - T34-85M - for the life of me I cant figure out…

1 year ago