geoip.me

Hello, 18.204.56.159.

Latitude
39.0481
Longitude
-77.4728
Country code
US
Country name
United States
Region
Virginia
City
Ashburn
Postcode
20149

JSON API example with default en locale:

curl -H 'Accept: */json' https://geoip.me/18.204.56.159
{ "ip": "18.204.56.159", "type": "IPv4", "country_code": "US", "country": "United States", "region": "Virginia", "city": "Ashburn", "postcode": "20149", "latitude": 39.0481, "longitude": -77.4728, "accuracy_radius": 1000 }

JSON API example using pt-BR locale:

curl -H 'Accept-Language: pt-BR' -H 'Accept: */json' https://geoip.me/18.204.56.159
{ "ip": "18.204.56.159", "type": "IPv4", "country_code": "US", "country": "Estados Unidos", "region": "Virgínia", "city": "Ashburn", "postcode": "20149", "latitude": 39.0481, "longitude": -77.4728, "accuracy_radius": 1000 }

Available locales include: en, de, es, fr, ja, pt-BR, ru, zh-CN