Free IP Geolocation API & IP Address Lookup
Accurate IP geolocation API for any IPv4 or IPv6 address. Instantly locate any IP address and get city-level location, ASN, company, currency, time zone and threat data in JSON or XML.
ip:"216.73.216.245",
hostname:"216.73.216.245",
location:Object,
continent_code:"NA",
continent_name:"North America",
country_code2:"US",
country_code3:"USA",
country_name:"United States",
country_name_official:"United States of America",
country_capital:"Washington, D.C.",
state_prov:"Ohio",
state_code:"US-OH",
district:"Franklin",
city:"Columbus",
locality:"Columbus",
accuracy_radius:"5.848",
confidence:"medium",
dma_code:"535",
zipcode:"43215",
latitude:"39.96199",
longitude:"-83.00275",
is_eu:false,
country_flag:"https://ipgeolocation.io/static/flags/us_64.png",
geoname_id:"4516394",
country_emoji:"🇺🇸",
country_metadata:Object,
calling_code:"+1",
tld:".us",
- languages:Array[4],
languages[0]:"en-US",
languages[1]:"es-US",
languages[2]:"haw",
languages[3]:"fr",
network:Object,
connection_type:"",
route:"216.73.216.0/22",
is_anycast:false,
is_cdn:false,
cdn_provider_name:"",
currency:Object,
code:"USD",
name:"US Dollar",
symbol:"$",
asn:Object,
as_number:"AS16509",
organization:"Amazon.com, Inc.",
country:"US",
type:"HOSTING",
domain:"amazon.com",
date_allocated:"2000-05-04",
rir:"ARIN",
company:Object,
name:"Anthropic, PBC",
type:"BUSINESS",
domain:"anthropic.com",
security:Object,
threat_score:5,
is_tor:false,
is_proxy:false,
- proxy_provider_names:Array[0],
proxy_confidence_score:0,
proxy_last_seen:"",
proxy_days_seen_30d:0,
proxy_days_seen_7d:0,
proxy_provider_count_30d:0,
is_residential_proxy:false,
is_vpn:false,
- vpn_provider_names:Array[0],
vpn_confidence_score:0,
vpn_last_seen:"",
is_relay:false,
relay_provider_name:"",
is_anonymous:false,
is_known_attacker:false,
is_bot:false,
bot_confidence_score:0,
bot_operator_name:"",
bot_type:"",
is_known_good_bot:false,
bot_last_seen:"",
is_spam:false,
is_cloud_provider:true,
cloud_provider_name:"Amazon.com, Inc.",
is_corporate_gateway:false,
corporate_gateway_type:"",
corporate_gateway_provider_name:"",
abuse:Object,
route:"216.73.216.0/22",
country:"US",
name:"Anthropic",
organization:"Anthropic, PBC",
kind:"group",
address:"548 Market St., PMB 90375, San Francisco, CA, 94104-5401, United States",
- emails:Array[1],
emails[0]:"arin@anthropic.com",
- phone_numbers:Array[1],
phone_numbers[0]:"+14152360599",
carrier:Object,
is_mobile:false,
time_zone:Object,
name:"America/New_York",
offset:-5,
offset_with_dst:-5,
current_time:"2026-12-03 18:13:58.373-0500",
current_time_unix:1796339638.373,
current_tz_abbreviation:"EST",
current_tz_full_name:"Eastern Standard Time",
standard_tz_abbreviation:"EST",
standard_tz_full_name:"Eastern Standard Time",
is_dst:false,
dst_savings:0,
dst_exists:true,
dst_tz_abbreviation:"EDT",
dst_tz_full_name:"Eastern Daylight Time",
dst_start:Object,
utc_time:"2027-03-14 TIME 07:00",
duration:"+1.00H",
gap:true,
date_time_after:"2027-03-14 TIME 03:00",
date_time_before:"2027-03-14 TIME 02:00",
overlap:false,
dst_end:Object,
utc_time:"2027-11-07 TIME 06:00",
duration:"-1.00H",
gap:false,
date_time_after:"2027-11-07 TIME 01:00",
date_time_before:"2027-11-07 TIME 02:00",
overlap:true,
user_agent:Object,
user_agent_string:"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.c...",
name:"ClaudeBot",
type:"Robot",
version:"1.0",
version_major:"1",
device:Object,
name:"Anthropic ClaudeBot",
type:"Robot",
brand:"Anthropic",
cpu:"Unknown",
engine:Object,
name:"ClaudeBot",
type:"Robot",
version:"1.0",
version_major:"1",
operating_system:Object,
name:"Cloud",
type:"Cloud",
version:"??",
version_major:"??",
build:"??",
IP Location Module
Pinpoint where an IP is, down to the city. The IP location module returns continent, country, state, city, latitude, longitude, and postal code, plus, on paid plans, an accuracy radius and confidence value so you know how precise each result is.
For every field and type, see the full field reference in the docs.
{
"location": {
"continent_code": "NA",
"continent_name": "North America",
"country_code2": "US",
"country_code3": "USA",
"country_name": "United States",
"country_name_official": "United States of America",
"country_capital": "Washington, D.C.",
"state_prov": "California",
"state_code": "US-CA",
"district": "Santa Clara",
"city": "Mountain View",
"locality": "Mountain View",
"accuracy_radius": "24.569",
"confidence": "low",
"dma_code": "807",
"zipcode": "94043-1351",
"latitude": "37.42240",
"longitude": "-122.08421",
"is_eu": false,
"country_flag": "https://ipgeolocation.io/static/flags/us_64.png",
"geoname_id": "6301403",
"country_emoji": "🇺🇸"
}
}Country Metadata Module
The country metadata module provides the country calling (dialing) code, the country's top-level domain name (ccTLD) and the official spoken languages in the country associated with the queried IP address.
{
"country_metadata": {
"calling_code": "+1",
"tld": ".us",
"languages": [
"en-US",
"es-US",
"haw",
"fr"
]
}
}Network Module
The network module provides network-level details for an IP address, including the connection type (DSL, Mobile, 5G, etc.), the BGP route (CIDR) the IP belongs to, and whether the IP is anycast.
{
"network": {
"connection_type": "Mobile",
"route": "107.77.200.0/24",
"is_anycast": false,
"is_cdn": false,
"cdn_provider_name": ""
}
}ASN Module
The ASN module provides Autonomous System information for an IP address, including the AS number, the organization name, the country where the ASN is registered, the ASN type such as ISP, HOSTING, BUSINESS, EDUCATION, or GOVERNMENT, the organization domain when available, the allocation date when the ASN was assigned to the organization, and the Regional Internet Registry (RIR) that issued the ASN.
For deeper network intelligence such as ASN peers, upstreams, downstreams, and routes, or to look up an ASN directly by its number, not just from an IP, use our dedicated ASN API.
{
"asn": {
"as_number": "AS14061",
"organization": "DigitalOcean, LLC",
"country": "US",
"type": "HOSTING",
"domain": "digitalocean.com",
"date_allocated": "2012-09-25",
"rir": "ARIN"
}
}Currency Module
The currency module provides currency information of the country such as currency name, currency symbol and currency code from an IP address.
{
"currency": {
"code": "USD",
"name": "US Dollar",
"symbol": "$"
}
}Company Module
Know the ISP/Company behind an IP. The company module returns the company name, its type (ISP, HOSTING, BUSINESS, EDUCATION, or GOVERNMENT), and the company domain when available.
{
"company": {
"name": "DigitalOcean, LLC",
"type": "HOSTING",
"domain": "digitalocean.com"
}
}Security Module
Flag risky traffic before it converts. The security module returns a threat score plus VPN, proxy, residential proxy, Tor, relay and bot flags, the anonymizer's provider name, the bot type and operator, and whether the IP is a known attacker, a cloud provider or a corporate gateway.
For dedicated VPN, proxy and Tor detection, use the IP Security API.
{
"security": {
"threat_score": 15,
"is_tor": false,
"is_proxy": false,
"proxy_provider_names": [],
"proxy_confidence_score": 0,
"proxy_last_seen": "",
"proxy_days_seen_30d": 0,
"proxy_days_seen_7d": 0,
"proxy_provider_count_30d": 0,
"is_residential_proxy": false,
"is_vpn": false,
"vpn_provider_names": [],
"vpn_confidence_score": 0,
"vpn_last_seen": "",
"is_relay": false,
"relay_provider_name": "",
"is_anonymous": false,
"is_known_attacker": false,
"is_bot": false,
"bot_confidence_score": 0,
"bot_operator_name": "",
"bot_type": "",
"is_known_good_bot": false,
"bot_last_seen": "",
"is_spam": true,
"is_cloud_provider": true,
"cloud_provider_name": "Leaseweb USA, Inc.",
"is_corporate_gateway": false,
"corporate_gateway_type": "",
"corporate_gateway_provider_name": ""
}
}Abuse Contact Module
The abuse contact module provides contact details of the responsible party for the queried IP address, including country, organization, email address and phone number. Ideal for reporting malicious activity or handling abuse complaints.
Only need the abuse contact for an IP, not a full lookup? Use our dedicated IP Abuse Contact API.
{
"abuse": {
"route": "8.8.8.0/24",
"country": "US",
"name": "Abuse",
"organization": "Google Inc.",
"kind": "group",
"address": "1600 Amphitheatre Parkway, Mountain View, CA, 94043, United States",
"emails": [
"network-abuse@google.com"
],
"phone_numbers": [
"+16502530000"
]
}
}Time Zone Module
The time zone module provides time and time zone related information such as time zone name, UTC/GMT offset, current date and time, daylight saving time status, daylight saving offset in hours, along with start and end details of daylight saving time.
Need more than IP-based time data? Our dedicated Time Zone API also looks up by coordinates, city, airport code, or time zone name, and converts time between any two zones.
{
"time_zone": {
"name": "America/Los_Angeles",
"offset": -8,
"offset_with_dst": -7,
"current_time": "2026-10-29 03:33:57.445-0700",
"current_time_unix": 1793270037.445,
"current_tz_abbreviation": "PDT",
"current_tz_full_name": "Pacific Daylight Time",
"standard_tz_abbreviation": "PST",
"standard_tz_full_name": "Pacific Standard Time",
"is_dst": true,
"dst_savings": 1,
"dst_exists": true,
"dst_tz_abbreviation": "PDT",
"dst_tz_full_name": "Pacific Daylight Time",
"dst_start": {
"utc_time": "2026-03-08 TIME 10:00",
"duration": "+1.00H",
"gap": true,
"date_time_after": "2026-03-08 TIME 03:00",
"date_time_before": "2026-03-08 TIME 02:00",
"overlap": false
},
"dst_end": {
"utc_time": "2026-11-01 TIME 09:00",
"duration": "-1.00H",
"gap": false,
"date_time_after": "2026-11-01 TIME 01:00",
"date_time_before": "2026-11-01 TIME 02:00",
"overlap": true
}
}
}User Agent Parser Module
The user agent parser module reads the browser user agent string and provides detailed device information such as device name, device version, device type, device operating system, device browser, browser engine and browser version. It can identify robots, crawlers and attackers.
To parse user agents on their own, use our dedicated User Agent API.
{
"user_agent": {
"user_agent_string": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
"name": "Chrome",
"type": "Browser",
"version": "144",
"version_major": "144",
"device": {
"name": "Apple Macintosh",
"type": "Desktop",
"brand": "Apple",
"cpu": "Intel"
},
"engine": {
"name": "Blink",
"type": "Browser",
"version": "144",
"version_major": "144"
},
"operating_system": {
"name": "Mac OS",
"type": "Desktop",
"version": ">=10.15.7",
"version_major": ">=10.15",
"build": "??"
}
}
}Reverse IP Lookup Module
With reverse IP Lookup, you can resolve the host name, domain, or router DNS address. This gives you detailed information about the original source of traffic.
curl 'https://api.ipgeolocation.io/v3/ipgeo?include=hostname&fields=hostname&ip=8.8.8.8&apiKey=API_KEY'{
"ip": "8.8.8.8",
"hostname": "dns.google"
}Domain IP Lookup
Enter a domain name in place of an IP address and our API will perform a DNS lookup to give you the web hosting provider and the geographical location of the website.
{
"domain": "ipgeolocation.io",
"ip": "116.202.113.61",
"location": {
"country_name": "Germany",
"state_prov": "Bavaria",
"city": "Falkenstein"
}
}Bulk IP Address Lookup Support
Use our Bulk IP Lookup endpoint to perform batch lookup of multiple IPs in one go. One request can have up to 50,000 IPs, and both IPv4 and IPv6 are supported.
For offline or very high volume, use our downloadable IP geolocation database; to plan spend, see what each call costs.
curl -X POST 'https://api.ipgeolocation.io/v3/ipgeo-bulk?apiKey=API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"ips": ["1.1.1.1", "1.2.3.4", "1.2.3.5", "1.2.3.6", "1.2.3.7"]
}'Response in Multiple Languages
You can retrieve the geolocation information for an IP address in the following languages:
-
English
-
German
-
Russian
-
Japanese
-
French
-
Chinese Simplified
-
Spanish
-
Czech
-
Italian
-
Korean
-
Persian
-
Portuguese
-
Standard Arabic
Use Cases
Website Content Localization with Our IP API
Adapt your website to where your visitors are. Make your visitors feel right at home by "talking" to them in their local language and connect with them instantly. With IP geolocation, redirect users to their region-specific site and serve the right language and currency automatically, with no location pop-up.
Non-Intrusive Geolocation with IP Geolocation API
Do you have an awesome content localization strategy in place? IP geolocation is a non-intrusive way to know where your visitors are coming from. Don't ruin your visitor's website experience by showing annoying pop-ups asking for their location. Our geolocation API will detect their location from their IP address and show them the relevant message.
Digital Rights Protection
Enforce digital rights of your content using IP location data from the IP Geolocation API. Build a virtual fence around your content and make sure that only the people inside the fence can see it. You can now confidently restrict unauthorized access while providing uninterrupted experiences to authorized users with the accuracy of our IP Geolocation API.
IP API to Prevent Threats and Scams
With our security, geolocation, and user agent modules, you can identify anonymous traffic sources, known attackers, suspicious devices and Tor nodes to prevent online fraud, trial abuse, forum spam and botnet attacks.
Ready to get started? Add the IP Geolocation API to your stack today
Enrich every request with precise geolocation and real-time threat intelligence, delivered on a global edge with a 99.99% uptime SLA. Start free and scale when you're ready.
Start on the free plan with 1,000 credits a day, no credit card, and use it in production. No per-second or per-minute throttling. Paid plans start at $19 a month. See pricing.