Get location information for client IP address or provided IP address.
This service is designed to be used as an API in your scripts or programs.
For example:
To get your location information for your IP in plain text format response with curl:
curl -s https://ip-locator.xyz/text/client > record
To download a PNG format flag for your IP location with curl:
curl -s https://ip-locator.xyz/flag/client > flag.png
IP Locator uses IP2Location.io IP geolocation web service.
Flags are provided by FlagsAPI.