IP Geolocation API

Retrieve accurate geographic location, ASN and ISP data for any IP address. Built for fraud detection, security investigations and infrastructure intelligence.

What is IP Geolocation?

IP geolocation identifies the physical and network location of an IP address. It provides details such as country, city, region, Autonomous System Number (ASN) and Internet Service Provider (ISP).

This data is essential for security monitoring, fraud prevention and infrastructure analysis.

IP Geolocation API Example

curl -H "x-ninja: YOUR_API_KEY" https://ip-ninja.com/api/v1/geoloc/4.4.4.4
{
  "city": "Columbus",
  "country": "United States",
  "continent": "North America",
  "postal_code": "43221",
  "subdivision": "Ohio",
  "latitude": 40.0233,
  "longitude": -83.0859,
  "asn": 15169,
  "asn_organization": "GOOGLE",
  "network": "8.8.8.0/24"
}

Why IP Geolocation Matters for Security & Fraud Detection

Understanding where traffic originates is critical for identifying anomalies and enforcing security policies.

Explore the Full IP Ninja OSINT API

The IP Geolocation endpoint is part of the IP Ninja unified intelligence platform. Combine geolocation data with other OSINT endpoints for deeper analysis.

Frequently Asked Questions

How accurate is IP geolocation?

Accuracy varies by region and IP type. City-level precision is typically high for fixed broadband networks and slightly lower for mobile networks.

Can IP geolocation detect VPN usage?

Geolocation combined with ASN and ISP data can help identify hosting providers commonly associated with VPN services.

Is ASN information included?

Yes. The API returns ASN and ISP details to help identify network ownership.

How does IP geolocation work for mobile networks (5G/4G)?

Mobile IP geolocation is generally accurate at the country and region level. Since mobile IPs are often assigned dynamically through CGNAT, city-level accuracy may point to the carrier's core network hub rather than the exact tower location.

What is the typical accuracy radius of IP geolocation?

For fixed-line broadband, the accuracy radius is often within 5-50km of the actual location. For mobile and satellite connections, the radius is significantly larger.

Does the API provide real-time ASN and ISP updates?

Yes. Our database is synchronized with global BGP routing tables and RIR (RIPE, ARIN, etc.) registries to provide the most current ASN and network ownership data.

Is IP geolocation included in all plans?

Geolocation is available across subscription tiers with varying rate limits.

Enrich Your Infrastructure Intelligence

Combine IP geolocation with reverse IP, WHOIS and subdomain data — all within one unified API.

View Plans