FREE REST API FOR DEVELOPERS & SYSADMINS
Free IP Geolocation REST API
Query public IP addresses, approximate cities, countries, ISPs, and ASNs from your terminal, scripts, or apps. No API key required, zero signup, free forever.
$curl https://www.iplocatortools.com/api/ip
Implementation Examples
curl https://www.iplocatortools.com/api/ip
API Endpoints Reference
GET
/api/ipReturns client's public IP address as plain text (terminated by a newline). Perfect for curl, bash scripts, and Docker initialization.
GET
/api/ip?format=jsonReturns full geolocation details including city, region, country, lat/lon coordinates, ISP, ASN, and timezone in JSON format.
GET
/api/ip?ip=1.1.1.1&format=jsonPass any custom IPv4 or IPv6 address in the ip parameter to inspect third-party servers, visitors, or DNS endpoints.