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.

    • stringip:"216.73.216.245",
    • stringhostname:"216.73.216.245",
    • objectlocation:Object,
      • stringcontinent_code:"NA",
      • stringcontinent_name:"North America",
      • stringcountry_code2:"US",
      • stringcountry_code3:"USA",
      • stringcountry_name:"United States",
      • stringcountry_name_official:"United States of America",
      • stringcountry_capital:"Washington, D.C.",
      • stringstate_prov:"Ohio",
      • stringstate_code:"US-OH",
      • stringdistrict:"Franklin",
      • stringcity:"Columbus",
      • stringlocality:"Columbus",
      • stringaccuracy_radius:"5.848",
      • stringconfidence:"medium",
      • stringdma_code:"535",
      • stringzipcode:"43215",
      • stringlatitude:"39.96199",
      • stringlongitude:"-83.00275",
      • booleanis_eu:false,
      • stringcountry_flag:"https://ipgeolocation.io/static/flags/us_64.png",
      • stringgeoname_id:"4516394",
      • stringcountry_emoji:"🇺🇸",
    • objectcountry_metadata:Object,
      • stringcalling_code:"+1",
      • stringtld:".us",
      • languages:Array[4],
        • stringlanguages[0]:"en-US",
        • stringlanguages[1]:"es-US",
        • stringlanguages[2]:"haw",
        • stringlanguages[3]:"fr",
    • objectnetwork:Object,
      • stringconnection_type:"",
      • stringroute:"216.73.216.0/22",
      • booleanis_anycast:false,
      • booleanis_cdn:false,
      • stringcdn_provider_name:"",
    • objectcurrency:Object,
      • stringcode:"USD",
      • stringname:"US Dollar",
      • stringsymbol:"$",
    • objectasn:Object,
      • stringas_number:"AS16509",
      • stringorganization:"Amazon.com, Inc.",
      • stringcountry:"US",
      • stringtype:"HOSTING",
      • stringdomain:"amazon.com",
      • stringdate_allocated:"2000-05-04",
      • stringrir:"ARIN",
    • objectcompany:Object,
      • stringname:"Anthropic, PBC",
      • stringtype:"BUSINESS",
      • stringdomain:"anthropic.com",
    • objectsecurity:Object,
      • numberthreat_score:5,
      • booleanis_tor:false,
      • booleanis_proxy:false,
      • proxy_provider_names:Array[0],
        • numberproxy_confidence_score:0,
        • stringproxy_last_seen:"",
        • numberproxy_days_seen_30d:0,
        • numberproxy_days_seen_7d:0,
        • numberproxy_provider_count_30d:0,
        • booleanis_residential_proxy:false,
        • booleanis_vpn:false,
        • vpn_provider_names:Array[0],
          • numbervpn_confidence_score:0,
          • stringvpn_last_seen:"",
          • booleanis_relay:false,
          • stringrelay_provider_name:"",
          • booleanis_anonymous:false,
          • booleanis_known_attacker:false,
          • booleanis_bot:false,
          • numberbot_confidence_score:0,
          • stringbot_operator_name:"",
          • stringbot_type:"",
          • booleanis_known_good_bot:false,
          • stringbot_last_seen:"",
          • booleanis_spam:false,
          • booleanis_cloud_provider:true,
          • stringcloud_provider_name:"Amazon.com, Inc.",
          • booleanis_corporate_gateway:false,
          • stringcorporate_gateway_type:"",
          • stringcorporate_gateway_provider_name:"",
        • objectabuse:Object,
          • stringroute:"216.73.216.0/22",
          • stringcountry:"US",
          • stringname:"Anthropic",
          • stringorganization:"Anthropic, PBC",
          • stringkind:"group",
          • stringaddress:"548 Market St., PMB 90375, San Francisco, CA, 94104-5401, United States",
          • emails:Array[1],
            • stringemails[0]:"arin@anthropic.com",
          • phone_numbers:Array[1],
            • stringphone_numbers[0]:"+14152360599",
        • objectcarrier:Object,
          • booleanis_mobile:false,
        • objecttime_zone:Object,
          • stringname:"America/New_York",
          • numberoffset:-5,
          • numberoffset_with_dst:-5,
          • stringcurrent_time:"2026-12-03 18:13:58.373-0500",
          • numbercurrent_time_unix:1796339638.373,
          • stringcurrent_tz_abbreviation:"EST",
          • stringcurrent_tz_full_name:"Eastern Standard Time",
          • stringstandard_tz_abbreviation:"EST",
          • stringstandard_tz_full_name:"Eastern Standard Time",
          • booleanis_dst:false,
          • numberdst_savings:0,
          • booleandst_exists:true,
          • stringdst_tz_abbreviation:"EDT",
          • stringdst_tz_full_name:"Eastern Daylight Time",
          • objectdst_start:Object,
            • stringutc_time:"2027-03-14 TIME 07:00",
            • stringduration:"+1.00H",
            • booleangap:true,
            • stringdate_time_after:"2027-03-14 TIME 03:00",
            • stringdate_time_before:"2027-03-14 TIME 02:00",
            • booleanoverlap:false,
          • objectdst_end:Object,
            • stringutc_time:"2027-11-07 TIME 06:00",
            • stringduration:"-1.00H",
            • booleangap:false,
            • stringdate_time_after:"2027-11-07 TIME 01:00",
            • stringdate_time_before:"2027-11-07 TIME 02:00",
            • booleanoverlap:true,
        • objectuser_agent:Object,
          • stringuser_agent_string:"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.c...",
          • stringname:"ClaudeBot",
          • stringtype:"Robot",
          • stringversion:"1.0",
          • stringversion_major:"1",
          • objectdevice:Object,
            • stringname:"Anthropic ClaudeBot",
            • stringtype:"Robot",
            • stringbrand:"Anthropic",
            • stringcpu:"Unknown",
          • objectengine:Object,
            • stringname:"ClaudeBot",
            • stringtype:"Robot",
            • stringversion:"1.0",
            • stringversion_major:"1",
          • objectoperating_system:Object,
            • stringname:"Cloud",
            • stringtype:"Cloud",
            • stringversion:"??",
            • stringversion_major:"??",
            • stringbuild:"??",

      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.

      Response Preview
      {
        "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.

      Response Preview
      {
        "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.

      Response Preview
      {
        "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.

      Response Preview
      {
        "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.

      Response Preview
      {
        "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.

      Response Preview
      {
        "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.

      Response Preview
      {
        "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.

      Response Preview
      {
        "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.

      Response Preview
      {
        "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.

      Response Preview
      {
        "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.

      Request
      curl 'https://api.ipgeolocation.io/v3/ipgeo?include=hostname&fields=hostname&ip=8.8.8.8&apiKey=API_KEY'
      Response Preview
      {
        "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.

      Response Preview
      {
        "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.

      Request
      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 FlagEnglish
      • German FlagGerman
      • Russian FlagRussian
      • Japanese FlagJapanese
      • French FlagFrench
      • Chinese Simplified FlagChinese Simplified
      • Spanish FlagSpanish
      • Czech FlagCzech
      • Italian FlagItalian
      • Korean FlagKorean
      • Persian FlagPersian
      • Portuguese FlagPortuguese
      • Standard Arabic FlagStandard 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.

      content localization image

      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.

      Digital Rights Protection image

      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.

      Access Denied image

      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.

      CTA Illustration
      CTA Illustration

      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.

      IP Geolocation API FAQs

      Yes. The free plan gives you 1,000 API credits per day for life, with no credit card required, and you can use it in production. It covers core location, country metadata, currency, basic ASN, and time zone. Paid plans start at $19 per month and add company and network data, security and VPN/proxy detection, abuse contacts, bulk lookups, and domain lookups.

      Send the IP to the unified endpoint and you get its location back in JSON or XML. A single call to https://api.ipgeolocation.io/v3/ipgeo returns city, country, coordinates, basic ASN, currency, and time zone for any IPv4 or IPv6 address, and paid plans add company and network data. See the API documentation for parameters and exact field paths.

      One call returns location (city, state, country, coordinates), country metadata, currency, basic ASN (number, organization, and country), and time zone. Paid plans add company details, the full ASN record, network and connection type, security and anonymizer detection, abuse contacts, user agent parsing, hostname, and domain lookup. You can request only the fields you need to keep responses small and fast.

      Yes. The bulk endpoint accepts up to 50,000 IPv4 or IPv6 addresses in a single request, which is the fastest way to enrich logs, user tables, or event streams. For continuous high-volume processing, the same data is also available as a downloadable IP geolocation database.

      Accuracy is the same on every plan, including the free plan, because every plan gets its lookup results from the same database. That database is built in our own multi-step pipeline, including active measurement: we ping and traceroute networks from our own measurement points around the world. It refreshes daily. See how our IP geolocation data is built.

      Yes. The security module returns a threat score plus VPN, proxy, residential proxy, Tor, relay, and bot flags for any IP, with the bot type and operator when bot activity is detected, plus corporate gateway detection in the same response as the location data. Security adds 2 credits per lookup on paid plans. You can score risk and locate a visitor in one call instead of stitching two services together.

      No. There are no per-second or per-minute rate limits on any plan. Credit allowances reset daily on the Free plan, monthly on paid monthly plans, and yearly on paid annual plans. A standard unified lookup costs 1 credit. On paid plans, adding Security costs 2 extra credits and adding Abuse Contact costs 1 extra credit. Every successful response includes the X-Credits-Charged header so you can see the cost of that call.

      The API returns JSON or XML over HTTPS, with official SDKs for Python, Java, Go, PHP, JavaScript, and more. Paid plans can return geolocation fields in multiple languages, including German, French, Japanese, Spanish, and Standard Arabic. The response schema stays the same across plans, so scaling up never breaks your integration.

      Subscribe to Our Newsletter

      Get the latest in geolocation tech, straight to your inbox.