API for Developers

Free access to IPv4 address data

API Endpoint

GET https://geomyip.com/api/public/lookup?ip={ipv4_address}

The ip parameter accepts only IPv4 addresses (e.g.: 8.8.8.8, 1.1.1.1)

Example Request

Request:

curl "https://geomyip.com/api/public/lookup?ip=8.8.8.8"

Response:

{
  "ip": "8.8.8.8",
  "type": "IPv4",
  "hostname": "dns.google",
  "asn": 15169,
  "organization": "Google LLC",
  "isp": null,
  "domain": "google.com",
  "subnet": "8.8.8.0/24",
  "country": "United States",
  "country_code": "US",
  "region": "California",
  "city": "Mountain View",
  "postal": "94043",
  "latitude": 37.40552,
  "longitude": -122.07746,
  "timezone": "America/Los_Angeles",
  "is_vpn": false,
  "is_proxy": false,
  "is_tor": false,
  "is_hosting": true
}

JavaScript Example

fetch('https://geomyip.com/api/public/lookup?ip=8.8.8.8')
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));

Python Example

import requests

response = requests.get('https://geomyip.com/api/public/lookup', params={'ip': '8.8.8.8'})
data = response.json()
print(data)

Usage Terms

  • API is completely free
  • Limit: 1000 requests per day per IP
  • Data is cached for faster performance
  • Commercial use allowed

Need more requests? Contact us