Skip to content

Get city, region, country, coordinates, timezone, ISP, currency, and continent for any IPv4 or IPv6 address via a simple REST API. 5,000 free requests/month.

Notifications You must be signed in to change notification settings

omkarcloud/ip-geolocation-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

IP Geolocation API Featured Image

IP Geolocation API

Get city, region, country, coordinates, timezone, ISP, currency, and continent for any IPv4 or IPv6 address via a simple REST API. 5,000 free requests/month.

Key Features

  • Look up any IPv4 or IPv6 address
  • Get 14 data points per IP: city, region, country, coordinates, postal code, timezone, ISP, continent, currency, country flag, and EU status
  • Live data from authoritative sources — no stale caches
  • 5,000 requests/month on free tier
  • Example Response:
{
    "ip": "49.36.131.188",
    "city": "Mumbai",
    "region": "Maharashtra",
    "country": "IN",
    "loc": "19.0728,72.8826",
    "org": "AS55836 Reliance Jio Infocomm Limited",
    "postal": "400017",
    "timezone": "Asia/Kolkata",
    "country_name": "India",
    "isEU": false,
    "country_flag": {
        "emoji": "🇮🇳",
        "unicode": "U+1F1EE U+1F1F3"
    },
    "country_currency": {
        "code": "INR",
        "symbol": ""
    },
    "continent": {
        "code": "AS",
        "name": "Asia"
    },
    "latitude": "19.0728",
    "longitude": "72.8826"
}

Get API Key

Create an account at omkar.cloud to get your API key.

It takes just 2 minutes to sign up. You get 5,000 free requests every month — more than enough for most developers to get their job done without paying a dime.

This is a well built product, and your search for the best IP Geolocation API ends right here.

Quick Start

curl -X GET "https://ip-geolocation-api.omkar.cloud/ip-geolocation/lookup?ip=49.36.131.188" \
  -H "API-Key: YOUR_API_KEY"
{
    "ip": "49.36.131.188",
    "city": "Mumbai",
    "region": "Maharashtra",
    "country": "IN",
    "loc": "19.0728,72.8826",
    "org": "AS55836 Reliance Jio Infocomm Limited",
    "postal": "400017",
    "timezone": "Asia/Kolkata",
    "country_name": "India",
    "isEU": false,
    "continent": {
        "code": "AS",
        "name": "Asia"
    },
    "latitude": "19.0728",
    "longitude": "72.8826"
}

Quick Start (Python)

pip install requests
import requests

response = requests.get(
    "https://ip-geolocation-api.omkar.cloud/ip-geolocation/lookup",
    params={"ip": "49.36.131.188"},
    headers={"API-Key": "YOUR_API_KEY"}
)

print(response.json())

API Reference

IP Lookup

GET https://ip-geolocation-api.omkar.cloud/ip-geolocation/lookup

Parameters

Parameter Required Default Description
ip Yes IPv4 or IPv6 address to geolocate.

Example

import requests

response = requests.get(
    "https://ip-geolocation-api.omkar.cloud/ip-geolocation/lookup",
    params={"ip": "49.36.131.188"},
    headers={"API-Key": "YOUR_API_KEY"}
)

print(response.json())

Response

Sample Response (click to expand)
{
    "ip": "49.36.131.188",
    "city": "Mumbai",
    "region": "Maharashtra",
    "country": "IN",
    "loc": "19.0728,72.8826",
    "org": "AS55836 Reliance Jio Infocomm Limited",
    "postal": "400017",
    "timezone": "Asia/Kolkata",
    "country_name": "India",
    "isEU": false,
    "country_flag": {
        "emoji": "🇮🇳",
        "unicode": "U+1F1EE U+1F1F3"
    },
    "country_currency": {
        "code": "INR",
        "symbol": ""
    },
    "continent": {
        "code": "AS",
        "name": "Asia"
    },
    "latitude": "19.0728",
    "longitude": "72.8826"
}

Error Handling

response = requests.get(
    "https://ip-geolocation-api.omkar.cloud/ip-geolocation/lookup",
    params={"ip": "8.8.8.8"},
    headers={"API-Key": "YOUR_API_KEY"}
)

if response.status_code == 200:
    data = response.json()
elif response.status_code == 401:
    # Invalid API key
    pass
elif response.status_code == 429:
    # Rate limit exceeded
    pass

FAQs

What data does the API return?

IP Lookup returns per IP address:

  • IP address, city, region, country code, country name
  • Postal code, latitude, longitude
  • Timezone, ISP/organization (with AS number)
  • EU membership status
  • Continent code and name
  • Country flag emoji and unicode
  • Local currency code and symbol

All in structured JSON. Ready to use in your app.

How accurate is the data?

Very Accurate. Data is pulled from authoritative data sources for every request.

What are common use cases?

Fraud detection — Flag suspicious logins from unexpected locations.

Content localization — Show the right language, currency, and content based on visitor location.

Analytics — Map where your traffic comes from at the city level.

Compliance — Check EU membership status for GDPR-related decisions.

Ad targeting — Serve location-relevant ads without asking for permissions.

Rate Limits

Plan Price Requests/Month
Free $0 5,000
Starter $25 100,000
Grow $75 1,000,000
Scale $150 10,000,000

Questions? We have answers.

Reach out anytime. We will solve your query within 1 working day.

Contact Us on WhatsApp about IP Geolocation API

Contact Us on Email about IP Geolocation API