Logo IP GeoLocation

Logo IP GeoLocation


IP
City
Region
Country/Code
Zip Code
Time Zone
Lat/Lon

Description
- This API requires no key or signup.
- Limit : 10 requests per second. Once reached subsequent requests will result in error 429 (too many requests) until your quota is cleared.
- 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
Endpoint - Get IP or Hostname IP Geolocation
This endpoint retrieves geolocation information from any IPv4, IPv6 or hostname in JSON or XML format
http Request : GET https://api.codetabs.com/v1/geolocation/format?q=ip4|ip6|hostname
examples :
- https://api.codetabs.com/v1/geolocation/json
- https://api.codetabs.com/v1/geolocation/json?q=jolav.me
- https://api.codetabs.com/v1/geolocation/xml?q=8.8.8.8
- https://api.codetabs.com/v1/geolocation/xml?q=2a00:1450:4006:803::200e
response :
        {   
          "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   
        }