APIHub
Back to Explore

IP 2 Country

A JSON API that returns geolocation data, including the country, for a supplied IPv4 or IPv6 address via a simple GET request (e.g., https://api.ip2country.info/ip?5.6.7.8).

Geocoding
none
HTTPS
CORS: Unknown
Description enriched
Visit official documentation

Latency

672ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
GET

/ip

Map an IP to a country

  • ip (query, required) — IP address to look up

1 endpoint auto-detected

curl -X GET \
  "https://ip2country.info/ip"

ip2country.info · HTTPS only