🌍 GeoIP API Service

A simple, free, no-authentication IP geolocation lookup service. Just pass an IP address in the URL and get JSON back!

This service is powered by the GeoLite2 database from MaxMind, providing accurate geolocation data for IP addresses worldwide.

Get details like country, city, timezone, latitude, and longitude from any IP address. Perfect for geolocation detection, analytics, and customizing content based on visitor location.

📦 Features

🔗 How to Use

Make a GET request to:

https://geoip.sney.eu/ip/<IP>

Example Response


{
  "ip": "172.68.100.190",
  "country": "Portugal",
  "country_code": "PT",
  "city": "Lisbon",
  "postal_code": "1000-005",
  "latitude": 38.7219,
  "longitude": -9.1398,
  "timezone": "Europe/Lisbon"
}
    

💻 Examples

Using curl


curl https://geoip.sney.eu/ip/172.68.100.190
    

Using fetch in JavaScript


fetch('https://geoip.sney.eu/ip/172.68.100.190')
  .then(response => response.json())
  .then(data => console.log(data));