IP
IPLocatorNETWORK TOOLS
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/ip

Returns client's public IP address as plain text (terminated by a newline). Perfect for curl, bash scripts, and Docker initialization.

GET/api/ip?format=json

Returns 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=json

Pass any custom IPv4 or IPv6 address in the ip parameter to inspect third-party servers, visitors, or DNS endpoints.