Log inGet a key

Location & postal data

IP to location API

Resolve any IPv4/IPv6 to its city, region, country, coordinates, timezone and ISP — or leave the IP blank to geolocate the caller.

/ipfree allowance included
api.apimitra.in /ip
am@mitra ~ %$curl "https://api.apimitra.in/ip?ip=8.8.8.8"
{
"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"

}

}

IPv4 + IPv6

both supported

24h

response cache

auto-detect

no IP needed

ASN + ISP

network data

About the API

What this endpoint does.

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

Built for the teams shipping real products.

  1. 01

    Fraud & risk teams

    Flag sign-ins or payments from an unexpected country before they pass.

  2. 02

    Analytics & product

    Enrich every request with a city-level view of where users actually are.

  3. 03

    CDN & edge tooling

    Verify routing and resolve caller location without shipping a geo database.

Under the hood

What you send. What comes back.

Request

Inputs you send

  • ipoptional

    target IPv4/IPv6. Omitted → the caller is detected.

Response

JSON you get back

  • location

    country, region, city, zip, lat, lon, timezone.

  • network

    isp, org and the ASN.

  • ip

    the address resolved.

Try it

One call, real data.

Try it in the playground
/ip?ip=8.8.8.8
am@mitra ~ %$curl "https://api.apimitra.in/ip?ip=8.8.8.8"
{
"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

Ship on this API free, then pay only when your calls outgrow it.

  • A free monthly request allowance on your first key — enough to build and test.
  • The same key works across every endpoint, so you can switch APIs as you grow.
  • When the free requests end, upgrade to paid — your code and endpoints don’t change.

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