Location & postal data
Resolve any IPv4/IPv6 to its city, region, country, coordinates, timezone and ISP — or leave the IP blank to geolocate the caller.
/ipfree allowance includedIPv4 + IPv6
both supported
24h
response cache
auto-detect
no IP needed
ASN + ISP
network data
About the API
Fraud checks, geo-gating and personalisation all want to know where a request is coming from. This endpoint geolocates an IP — country, region, city, latitude/longitude and timezone — plus the ISP and ASN behind it.
Leave the ip parameter out and the endpoint locates the caller automatically from the forwarded headers, which is the simplest way to geo-detect a request in front of a CDN.
Who builds on this
Flag sign-ins or payments from an unexpected country before they pass.
Enrich every request with a city-level view of where users actually are.
Verify routing and resolve caller location without shipping a geo database.
Under the hood
Request
ipoptionaltarget IPv4/IPv6. Omitted → the caller is detected.
Response
locationcountry, region, city, zip, lat, lon, timezone.
networkisp, org and the ASN.
ipthe address resolved.
Try it
{
"status": "ok",
"api": "ip",
"ip": "8.8.8.8",
"location": {
"country": "United States",
"country_code": "US",
"region": "Virginia",
"city": "Ashburn",
"zip": "20149",
"lat": 39.03,
"lon": -77.5,
"timezone": "America/New_York"
},
"network": {
"isp": "Google LLC",
"org": "Google Public DNS",
"as": "AS15169 Google LLC"
}
}Free tier
Every endpoint includes a free monthly request allowance — the size differs from API to API. When your free requests run out, you move to a paid plan with the same key. No card needed to start.
Start with IP to location, free.
Create an account and we’ll issue your free API key in minutes — this endpoint included.
© 2026 API Mitra. All rights reserved.
service statusMade in India