API that retrieves geolocation information from any IPv4, IPv6 or hostname.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_db 😺 😺 Nov 27, 2018
_lib
www
.gitignore 😺 😺 Nov 27, 2018
LICENSE.md
README.md
a_config.go
geoip.go
geoip_test.go 😺 😺 Nov 27, 2018
hits.go
main.go

README.md

Version
Maintained YES
Ask Me Anything !

logo GEOIP.XYZ

version 0.1.0

  • Free service that provides a public secure API (CORS enabled) to retrieve geolocation from any IP or hostname.
  • 10 request per second. Once reached subsequent requests will result in error 429 until your quota is cleared.
  • This API requires no key or signup.
  • JSON and XML supported
  • 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=codetabs.com
https://geoip.xyz/v1/xml?q=8.8.8.8
https://geoip.xyz/v1/xml?q=2a00:1450:4006:803::200e

Response JSON :

{   
  "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   
}

Acknowledgment

  • This site includes GeoLite2 data created by MaxMind, available from maxmind.com