Hi @Canapin ,
Thanks for your swift response!
I attempted to make a short python script for this, but it’s only returning a webpage for me and not JSON. When I added .json to the GET URL, it’s returning just {}. However, when I make the request with the User ID (https://your-discourse.com/admin/users/{user_id}/ip-info.json?ip={user_ip}), it does appear the users information with the IP Address.
I even attempted to visit that URL from the browser, only to get an Oops! That page doesn’t exist or is private.
FWIW, our Discourse is currently on Stable version (v3.1.1).
I just wanted to ask, do I need a MaxMind license for this to work? If not, is it possible that the endpoint provided is incorrect? I’m getting a response from /admin/users/{user_id}.json, but for some reason not getting a proper response from /admin/users/ip-info?ip={user_ip}. I just get a blank webpage from our Discourse site in HTML.
In addition, is there a link to the list of useful endpoints that Discourse provides such as the one you shared?
Thank you!