How to get information of specific in-game server using its server id/gameId/access code?

I have a server access code of format 00000000-0000-0000-0000-000000000000 where every 0 is replaced with a randomized letter or number. Using this server id, how can I retrieve information about the specific server, such as the place id related to it and if it’s a public/friends or VIP server?

I guess you could save the information to a datastore? You would need to get the information from the server you want and save it under the server access code.

I want to avoid creating a new system for a task such as this and I’m not aware of what I’m allowed to log and what not regarding VIP servers. Also, I want the solution to be able to function for other games as well.

Can you elaborate more on what you’re worried about?

I’m not sure what you mean by this.

Do you mean you want to access the information in separate games or to have a system that works for each individual separate game?

I’m looking for a web API-based solution, able to function for every game on the platform.

I’m not sure if this will help but do you see that would assist you in this?

The only endpoint close to what I’m looking for is https://games.roblox.com/v1/private-servers?privateServerIds=ids however it only works for VIP servers and its parameter is the VIP server id, not its access code(however an API to convert an access code to VIP server id will be very useful here).

https://games.roblox.com/v1/games/{placeId}/servers/{serverType} gets the games server list, would this be of any use?

Edit: You would use the placeId and then the serverType, Ex: Public, Friend, VIP.

That is not a public information, you can retrieve it from here but you must be authenticated as the owner of the vip server

This works, however, in order to figure out if a server is VIP or not I have to retrieve EVERY public server of the specific place, and then check if the server with the specified access code exists in there or not. However, this method is completely inefficient and unoptimized, especially for games with a lot of concurrent players.

That is true but I have been searching and have found zero other ways of completing this. My knowledge ends here.