Hitting an API endpoint, possible?

Is it possible to hit an API with someone’s Steam ID and store the response? Particularly, when they join the server. I’m wanting to get a simple membership mod made that shows a badge next to someone’s name in chat if they have a membership. For example, it’d hit myserver.com/api/{SteamID} and the response would be either a membership id or 0.

If not, can it read from a separate file? I could easily have my web server push a list of memberships with their Steam Id if so.

Last resort is config. That’s my last resort due to the fact that it’ll take up to a day for someone’s badge to appear. Shouldn’t be a huge deal, though.

Is this possible? Please let me know what you think.

By membership, do you mean a mod that requires any form of payment to use? if so, those mods are not allowed and get taken down very quickly.

Well, not really wanting to blow a massive hole in your plan here… but the only way, that I know of, to get badges next to names in chat - as the chat system is really completely untouchable - is to add the SteamID and setup a badge group in the PrimalGameData and that can only be modified in the DevKit.

You can’t dynamically modify that information during run-time or even at initialisation with ARK.

-WM

Interesting. So a dynamic badge is not possible at all - the badges being next to a certain player’s name is completely dependent upon adding their SteamID right in the Dev Kit? Good to know. I wondered if it was really even doable.

Alright, so squash the badge idea. Is it possible to hit an API endpoint and get data back then? I remember it wasn’t possible the last time I checked, but I also wondered if that’s changed recently (especially with the alarm systems triggering a GET request on URLs).

EDIT:

What about whitelisted players? Admins’ badges are dynamic of course. Would it be possible to setup badges for anyone that’s whitelisted? That’d be a good work around for now.