API to return current user's geolocation "UserCountry.getLocationFromIP" #14496
Labels
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone
Goal of this issue is to make our existing API
UserCountry.getLocationFromIP
return the geolocation information for the requesting IP address by default.Currently, the API requires an
ip
parameter. Example API requestBut if we make it default to the current requester IP address then it will provide some great value and open new use cases. For example some users want to customise the website's content based on the user's geolocation. So they could simply call the API for example via:
https://analytics.example.comorg/?module=API&method=UserCountry.getLocationFromIP&format=json
in JavaScript.The text was updated successfully, but these errors were encountered: