IP Geolocation API

Get the location of any IP with a world-class API serving city, region, country and lat/long data.
START FOR FREE

https://ipgeolocation.abstractapi.com/v1/
    ? api_key = YOUR_UNIQUE_API_KEY
    & ip_address = 92.184.105.98

{
    "ip_address": "166.171.248.255",,
    "city": "San Jose",
    "city_geoname_id": 5392171,
    "region": "California",
    "region_iso_code: "CA",
    "region_geoname_id": 5332921
    "postal_code": "95141"
    "country":
"United States"
    "country_code": "US"
    "country_geoname_id": 6252001
    "country_is_eu": false
    "continent": "North America"
    "continent_code": "NA"
    "continent_geoname_id": 6255149
    "longitude": -121.7714
    "latitude": 37.1835
    "security": {
      "is_vpn": false
    }

API benefits

Worldwide coverage
with 4 billion IPs
Location data
with leading precision
Rich data including
timezone and unicodes
Real-time
daily update
The world’s best engineering teams run on Abstract
4.8 from 1,863 votes

Built for developers
by developers

Built for global coverage
A global architecture that ensures fast, reliable, and redundant service with industry-standard data sovereignty and privacy.
Built for scale
Whether you have 10 or 10,000 requests per second, we’re ready for you.
graph
Built for blazing speed
Milliseconds matter. We obsess about every single one of them in a response.
Built for reliable uptime
Every minute of uptime counts. That’s why public companies, financial institutions, airlines, governments, and more trust us in production.

Get into production
this afternoon

Customer-obsessed technical support
Everything you need to get live and stay that way. Fast, responsive, and friendly support from developers.  24/7 via email, chat, and phone.
Integrate with your stack
Abstract integrates with the tools you already use, from cloud and analytics platforms to low code tools to ERPs, CRMs, and more.
Zapier
Zapier
Splunk
Splunk
Snowflake
Snowflake
Shopify
Shopify
Salesforce
Salesforce
Pipedream
Pipedream
Pardot
Pardot
Openprice
Openprice
NetSuite
NetSuite
Marketo
Marketo
Make
Make
Mailchimp
Mailchimp
Magento
Magento
Hubspot
Hubspot
GCP
GCP
Databricks
Databricks
Azure
Azure
AWS
AWS
World-class docs and SDKs
We obsess over “time to first production request”. That’s why we provide a ton of code samples, libraries, and SDKs to get you started quickly.
Ready for the enterprise
Compliance is at our core. We’re committed to industry-standard security and privacy frameworks, like SOC 2 and GDPR.
SOC 2
Type II
GPDR
Ready
99.99%
uptime SLA
For more information check our

Get the geolocation and other details of any IP address with Abstract

Weekly updates
Proxy & VPN detection
Detect anonymous users to minimize risk and abuse.
Weekly updates
Company enrichment
Identify the company or ISP behind each IP address.
Weekly updates
Connection type
Detect the connection type behind the IP: DSL, cellular, satellite, etc.
Daily updates
Postal code & city-level accuracy
Identify an IP’s location to the most granular level possible.
Daily updates
Threat intelligence data
Identify risky IPs from 250+ proprietary data feeds.
Longitude and latitude
Get an IP’s location to longitude to better work with geo applications.
Monthly updates
ISP identification
Identify the specific ISP behind each IP address.
Daily updates
IP reputation score
Avoid risky and low quality users with a proprietary reputation score.
Weekly updates
IPv4 and IPv6 coverage
2.5M+ unique locations and 300,000+ cities globally.
Timezone enrichment
Get an IP address’s current timezone for better personalization.
Currency & flag enrichment
Get the currency and flag of the country an IP address is located in.
Geoname encoding
All location data comes in geoname encoding also to better integrate with geo applications.
Get your free
IP Geolocation API
key now
4.8 from 1,863 votes
See why the best developers build on Abstract
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
No credit card required
IP Geolocation
that works where you do

Simple and transparent pricing

Free

$0
  • 1,000 requests
  • 1 request / second

Standard

$
99/ month
0
  • 60,000
    requests / year
  • 3
    requests / second

Enterprise

Custom
A plan based on your specific
needs
  • A plan based on your specific needs
  • 99.99% uptime SLA
  • SSO/AML login
  • 24/7 support via email, chat and phone
  • Technical onboarding support, account manager

Free

$0
  • 1,000 requests / month
  • 1 request / second

STANDARD

$99/ month
  • 60,000
    requests / month
  • 3
    requests / second

Enterprise

Custom
A plan based on your specific
needs
  • A plan based on your specific needs
  • 99.99% uptime SLA
  • SSO/AML login
  • 24/7 support via email, chat and phone
  • Technical onboarding support, account manager

Billed monthly

Billed yearly

The best build
on Abstract

We started off using basic free services for IP geolocation as well as the avatar APIs, but quickly found how limited they were: slow, inaccurate, easily fooled by VPNs, etc. But once we found and started testing out Abstract's IP geolocation API, we were hooked. Awesome data quickly, always fast, and great documentation.
Chris Stanley, Scope
Enterprise ready
Abstract comes with security, compliance, and reliability built into the core. That’s why the Fortune 500, governments, and businesses in critical industries like financial services, healthcare, and airlines trust us.
99.99% uptime SLA
SSO/AML login
24/7 support via email, chat, and phone
Technical onboarding support
Dedicated account manager

IP Geolocation
API Changelog

Fixed a bug that shows an incorrect city for some countries

March 25, 2024

Fixed a bug causing display issues for JSON and XML formats

March 14, 2024

Added reverse geocoding functionality to display coordinates to address

February 19, 2024

Check our API Guides

FAQ about Abstract's
IP Geolocation API

What is the IP Geolocation API?

The Abstract IP Geolocation API takes an IP address and translates it into a location, as well as many other details, such as an address, timezone, and more.

Is the IP Geolocation API similar to an IP lookup?

IP geolocation and IP lookup are terms that are usually used interchangeably. However, individual providers of IP Geolocation / IP lookup services will often provide different information in their response. For example, some will simply provide raw geocoordinates, such as 33° 56' 34.0476'' N and 118° 24' 36.1512'' W, while others while provide additional information, such as the best guess at the location’s address, timezone, and more.

How does the IP Geolocation API work?

Typically an Internet Service Provider (ISP) will have a particular range of IP addresses that they work with. These ISPs can delegate these different IP addresses to the various users and devices as they connect to the internet. IP geolocation works by looking up a particular IP against the IP ranges owned by particular ISP’s in a given area. This method is similar to how determining the carrier of a particular phone number works in the Abstract Phone Validation API, for example.

Are there any drawbacks or limitations of IP Geolocation?

While IP Geolocation can be an incredibly powerful and useful tool for developers and web services, there are several drawbacks and limitations to be aware of. First is that IP addresses have limited accuracy. An ISP may shuffle in IP among several users in a given area. Similarly, the location of the IP may not be the exact location of the user using the device associated with that IP. This can be common if a user is using a mobile phone, such as can be detected using the Phone Validation API. Finally, users can use a variety of services, such as virtual private networks or VPN’s, to mask their real IP.

The HTML5 geolocation API, which is able to provide an almost GPS-like location and a much greater amount of precision. However, unlike pure IP based geolocation, the HTML5 geolocation requires a user’s explicit consent. Unless it’s very clear to a user why you need that info and that it’s valuable to the user, it’s unlikely that information will be provided.

Where does the data for the IP Geolocation API come from?

In its simplest form, IP geolocation is looking up an individual IP against a series of tables that map various IP ranges to ISP’s and locations. Regional internet registries, such as the African Network Information Centre and American Registry for Internet Numbers. Additional information is added constantly to the fundamental dataset, which is regularly cleaned and cross checked to ensure accuracy.

What are some use cases for the IP Geolocation API?

There are many powerful use cases for IP geolocation API’s and data. These include but are not limited to:

- Automatically redirect users to relevant sites or sub sites based on their location 
- Automatically detect and displaying a user’s location, country, or timezone without requiring them to explicitly make this customization
- Customize the content or experience of a website or app based on the user’s location. E.g., showing a user’s local weather, tax and VAT rates, currency, news, public holidays, etc.
- Filter out users based on their location, e.g., if you’re unable to offer your services to users in a particular country.
- Requiring that a user accepts certain terms as required by local regulations, such as GDPR cookie banners for European Union citizens

These are just some sample use cases. If you’re interested in producing a case study with Abstract to share how you’re using our IP geolocation API in exchange for some free credits, please contact us at team@abstractapi.com.

How much of the globe is covered by the IP geolocation data?

We’re constantly working to increase the coverage and accuracy of our data, which improves every week. Currently we support more than 2.25 million unique locations as well as 250,000+ cities and other geographic entities around the world.

How often do you update your geolocation database?

Our IP geolocation database is updated at least once a week, as we get new information about each IP block. We take care of keeping that data updated and cleaned so you can focus on providing great geolocation-related services and experiences to your users.

What if I notice inaccurate or incomplete geolocation data?

While we always strive to provide the most accurate and up to date information possible. However, if you notice anything inaccurate or missing in our data, please email us at: team@abstractapi.com. If we can identify and replicate the incorrect data you’re seeing, we’ll give you extra credits for reporting it :)

What if I'm not a developer and just want to geolocate my IP address?

You're in luck then! We have a free tool that lets anyone find their IP and geolocate it, even if you're not technical. You can find it here: What is my IP address and location?

Get your free
IP Geolocation API
key now
4.8 from 1,863 votes
See why the best developers build on Abstract
get free api key
No credit card required