Jump to content
McKay Development

Fetching game server information


ktfo

Recommended Posts

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.steampowered.com/IGameServersService/GetServerList/v1/?key=xxx&limit=5&filter=\gameaddr\x.x.x.x

 

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

 

Thanks.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...