DTS_player1 Posted July 11, 2023 Share Posted July 11, 2023 Until 5 days ago, I was getting information as described here: For the last 5 days I have only received one response, "503 Service Temporarily Unavailable" Has something changed? How do I get information now? Link to comment Share on other sites More sharing options...
vincent.ker.adm Posted July 12, 2023 Share Posted July 12, 2023 Hi, You have been calling deprecated servers. Here is the new address: curl -X POST 'https://lobby-v2.klei.com/lobby/read' \ --data-raw '{"__token":"LobbyListings_[redacted]","query":{"__rowId":"KU_[redacted]"}}' Have a good day Link to comment Share on other sites More sharing options...
DTS_player1 Posted July 13, 2023 Author Share Posted July 13, 2023 Where can I find the documentation? I make a request like this: curl -X POST 'https://lobby-v2.klei.com/lobby/read' --data-raw '{"__token":"MY_TOKEN","query":{}}' But I get an error: {"Error":{"Code":"E_INVALID_INPUT"}} In this case: curl -k -X POST -d '{"__gameId":"DontStarveTogether","__token":"MY_TOKEN","query":{}}' https://lobby-v2.klei.com/lobby/read OR curl -k -X POST 'https://lobby-v2.klei.com/lobby/read' --data-raw '{"__gameId":"DontStarveTogether","__token":"MYTOKEN","query":{}}' OR curl -X POST 'https://lobby-v2.klei.com/lobby/read' --data-raw '{"__gameId":"DontStarveTogether","__token":"MYTOKEN","query":{}}' I get an error: {"Error":{"Code":"E_INVALID_INPUT"}} How to request the whole list of servers? Link to comment Share on other sites More sharing options...
DTS_player1 Posted July 20, 2023 Author Share Posted July 20, 2023 On 7/12/2023 at 11:36 PM, vincent.ker.adm said: Hi, You have been calling deprecated servers. Here is the new address: curl -X POST 'https://lobby-v2.klei.com/lobby/read' \ --data-raw '{"__token":"LobbyListings_[redacted]","query":{"__rowId":"KU_[redacted]"}}' Have a good day See my previous post, how to use this with and without "query"? Can I filter by IP? Can I get all servers? How to get servers for China, EU, US? Link to comment Share on other sites More sharing options...
DTS_player1 Posted August 28, 2023 Author Share Posted August 28, 2023 ??? Link to comment Share on other sites More sharing options...
Daniel86268 Posted August 28, 2023 Share Posted August 28, 2023 I'm not too well versed in CURL, but after a little tinkering, I found the following: The Region codes can be queried using this command: https://lobby-v2-cdn.klei.com/regioncapabilities-v2.json Luckily (If one decides to hardcode them manually, otherwise you can probably put the output of the above in a foreach) currently we seemingly only have to condider 4 Regions: us-east-1, eu-central-1, ap-southeast-1, ap-east-1. According to PeterA there's currently these 5 Platforms: Steam, PSN, Rail, XBone, Switch. Adding these parameters to this URL https://lobby-v2-cdn.klei.com/{aws_region}-{platform}.json.gz gives you a result as such: https://lobby-v2-cdn.klei.com/eu-central-1-Steam.json.gz Which returns a JSON file with all the specified servers. (When entered in the Browser URL field.) You'll just need to use a CURL or whatever command to get the JSON file(s) and then use a JSON parser/crawler to get what you want. You can also just append the results of such to have a full list of servers I guess. Information taken from here: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.