Skip to main content

IP Geolocation API

Accurate IP-to-location mapping with ASN ownership, organization data, and threat context. Power fraud detection, compliance geofencing, and security alert enrichment.

What you can do

Real outcomes teams achieve with IP Geolocation

Geographic Location

Get country, region, city, coordinates, timezone, and postal code for any IPv4 or IPv6 address with high accuracy.

Network Intelligence

Identify ASN ownership, ISP/organization operating the IP range, and network type (residential, business, datacenter).

Reverse DNS

Perform PTR lookups to find hostnames associated with IP addresses, with forward-confirmed reverse DNS validation.

Bogon Detection

Identify private, reserved, and invalid IP addresses that should never appear on the public internet.

Simple Integration

Get started in minutes with our RESTful API, or connect via MCP and let your AI call these endpoints directly. Clean documentation, predictable responses, and comprehensive error handling.

  • RESTful JSON API
  • Global edge-delivered responses
  • Comprehensive documentation
  • 99.9% uptime target
  • MCP-compatible — use with Claude, ChatGPT, or Gemini
Geolocate an IP address
const response = await fetch(
  'https://api.edgedns.dev/v1/ip/geolocation?ip=8.8.8.8',
  { headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }
);

const { data } = await response.json();
console.log({
  country: data.country.name,     // "United States"
  city: data.city,                // "Mountain View"
  organization: data.asn.organization // "Google LLC"
});

Put IP Geolocation to work — via API or AI

Start free with 200 requests/month. Call the API directly or connect your AI through MCP. Upgrade to Pro when you need private monitoring and higher limits.

No credit card required

Already have an account? Sign in