Logo GeoIP.xyz

Logo GeoIP.xyz

API to retrieve geolocation from any IP or hostname. No Key or signup. CORS enabled
IP
City
Region/Code
Country/Code
Zip Code
Time Zone
Lat/Lon

API doc (version 0.1.3)

HTTP Request template:
GET https://geoip.xyz/v1/{format}?q={IP-or-hostname}
Supported formats : json and xml
If no IP or hostname is provided it retrieves your own IP
IPv4 and IPv6 supported
CORS support out of the box makes this perfect to your front end apps or webs
Examples:
- https://geoip.xyz/v1/json
- https://geoip.xyz/v1/json?q=jolav.me
- https://geoip.xyz/v1/xml?q=8.8.8.8
- https://geoip.xyz/v1/xml?q=2a00:1450:4006:803::200e

Usage Limits:
10 request per second.Nearly 1 million daily hits
Once reached subsequent requests will result in error 429 until your quota is cleared

This API requires no key or signup.

JSON response example
{   
  "ip": "172.168.90.240",
  "country_code": "FR",
  "country_name": "France",
  "region_code": "IDF",
  "region_name": "Ile-de-France",
  "city": "Paris",
  "zip_code": "75001",
  "time_zone": "Europe/Paris",
  "latitude": 48.8628,
  "longitude": 2.3292   
}