Jump to content


Photo

Fetching game server information


  • Please log in to reply
3 replies to this topic

#1 ktfo

ktfo

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 15 March 2019 - 02:25 PM

I am looking to get information such as current map, amount of players, etc. from multiple specified IP addresses - how would one go about doing this in the best way? I found it can be achieved through this API call:

 

https://api.steampow...ameaddr\x.x.x.x

 

I want to check upwards of 50-100 servers every 10-20 seconds - is this possible?

 

Thanks.



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,992 posts

Posted 15 March 2019 - 04:53 PM

I'm not aware of any way to request multiple IPs at once using that API method. You'd need to either make a request for each IP, find a tag that each server you're interested in has and use \gametype\taggoeshere and filter the output yourself, or use a Source engine query library.



#3 ktfo

ktfo

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 16 March 2019 - 03:46 AM

I'm not aware of any way to request multiple IPs at once using that API method. You'd need to either make a request for each IP, find a tag that each server you're interested in has and use \gametype\taggoeshere and filter the output yourself, or use a Source engine query library.

 

That's a shame. I'm seeing \white\1 Servers that are whitelisted is in the filters list - what is this exactly? Can you add server addresses to a local whitelist and search for them only? I've looked around and can't find any documentation whatsoever.

 

In the Steam client there's a "favorite" tab where you can query favorited servers only, is there any way you can simulate that (local whitelist, set of addresses) using Node in any way?

 

Thanks.


Edited by ktfo, 16 March 2019 - 03:47 AM.


#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,992 posts

Posted 16 March 2019 - 07:42 AM

No, \white\1 is for finding Valve servers. The favorites tab bypasses the Steam master server entirely and sends direct Source engine queries to those servers.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users