IP API - JSON & XML
Simple, free and fast IP geolocation with IPv6 support.
Quick start
GET https://ip-geo-api.com/api/v1/ip?format=json
GET https://ip-geo-api.com/api/v1/ip/8.8.8.8?format=xml
Examples
# curl
curl "https://ip-geo-api.com/api/v1/ip?format=json"
# JavaScript
fetch("https://ip-geo-api.com/api/v1/ip?format=json").then(r => r.json())
# Python
import requests
print(requests.get("https://ip-geo-api.com/api/v1/ip", params={"format":"json"}).json())
# PHP
echo file_get_contents("https://ip-geo-api.com/api/v1/ip?format=xml");
# Go
http.Get("https://ip-geo-api.com/api/v1/ip?format=json")
Features
- IPv4/IPv6 Free lookup
- JSON and XML output
- API key & plan based rate limit
- Daily DB Update
Plans
- Public (no signup): 50 req/min per IP
- Free Plan (with signup): 200 req/min
- Higher Rate: Contact [email protected]