IP Address
City Update
Region
Country ip address country flag Update
Postal Code
European Union
Latitude / Longitude
Time Zone
Calling Code
Currency
Languages
ASN
Org

Trusted by

Proud to earn awesome feedback from our fantastic Customers

I tried other geolocation services but none are that accurate as @ipapi_co is. via Twitter
What a fantastic job you've done with ipapi. I am a new customer, recently switched over from [..] due to all sorts of issues, and find your service to be of the utmost quality. It is truly making my life easier as a developer, so thank you, and keep up the good work !
Wow thanks for the snippet! I don't think I've gotten support like this from a tech company, ever.
Thank you for your quick reply and even more so, for your eagle-eyes!
Thanks a lot for a fast and thorough response - it's greatly appreciated ! [...] it worked like a charm.
Always 5* support with you guys!
Should add, really happy with the simplicity of the service you guys provide.
I want to show my appreciation to @ipapi_co they saved my day ! Thank you! via Twitter

IP Location API

Powerful & Simple REST API
for IP Address Geolocation

Get started for free. No Sign Up is required !

Just copy the cURL command on the right & paste it in a shell or refer to the API docs below for examples in Ruby, Python, PHP, JavaScript, Java, Node.js, jQuery, C#, Go and more. Find helpful articles, tutorials, open source libraries & packages. Ready to go into production with a reliable & scalable API ?
Compare & subscribe to a suitable plan. Got Queries ? We take great pride in our customer support.
Find IP location in JSON format
curl https://ipapi.co/8.8.8.8/json/

{
"ip" : "8.8.8.8"
"city" : "Mountain View"
"region" : "California"
"region_code" : "CA"
"country_code" : "US"
"country_code_iso3" : "USA"
"country_name" : "United States"
"country_capital" : "Washington"
"country_tld" : ".us"
"continent_code" : "NA"
"in_eu" : false
"postal" : "94035"
"latitude" : 37.386
"longitude" : -122.0838
"timezone" : "America/Los_Angeles"
"utc_offset" : "-0700"
"country_calling_code" : "+1"
"currency" : "USD"
"currency_name" : "Dollar"
"languages" : "en-US,es-US,haw"
"asn" : "AS15169"
"org" : "Google LLC"
}
Specific field for an IP address
curl https://ipapi.co/8.8.8.8/country/
US
curl https://ipapi.co/8.8.8.8/city/
Mountain View
curl https://ipapi.co/8.8.8.8/latitude/
37.3845
curl https://ipapi.co/8.8.8.8/latlong/
37.384500,-122.088100
curl https://ipapi.co/8.8.8.8/org/
Google Inc.
(field : ip, city, region, country, postal, latitude, longitude, timezone, latlong, asn, org, etc.)

Pricing Plans
Transparent Pricing ⋆ Secure Payment ⋆ Easy Cancellation


Warning ! Please enable Javascript for payments
Annual
Monthly
Price
/ Month
IP Lookups
/ Month
Subscribe
Free
No SignUp Required
30 000*
* 1000 / day

We support Credit / Debit Card / Paypal / Apple Pay / ACH / Cheque / Cryptocurrency (Bitcoin, Litecoin & other Altcoins) & more. If your preferred payment method is not available with the pay option above or if you wish to make a corporate purchase please contact us. All prices are in USD.

FAQ

An IP Lookup is defined as finding the geographical location (or related information like currency, timezone etc.) of an IP address. The lookup can be done either with our API or website. For example, with a plan of 60,000 IP Lookups / month, you can find the location of 60,000 IP addresses in a month. Each conversion of IP address to location is counted as a lookup (repeat queries of the same IP address counts as a separate lookup).
We offer subscription plans with monthly & annual billing options. You can choose a plan based on your expected monthly IP address lookup requirement. This IP lookup limit can be changed by upgrading or downgrading your plan. You'll receive an API key along with usage instructions when you sign-up for a paid plan.
You can change your plan anytime from the account dashboard or by sending us a message. Plan upgrades are applied instantly. Downgrades take effect from the start of a new billing cycle.
You will receive an API authentication token and usage instructions on sign-up. The token should be included as a query string in your API requests. It shouldn't take more than a minute to implement this tiny change when you switch from a free plan to a paid plan. If you have any concerns or need assistance with the setup, please feel free to contact us.
We have a hassle free, no questions asked cancellation policy. You can cancel your subscription anytime from the account dashboard or by sending us a message or e-mail (you'll receive the details on sign-up). Once your plan is cancelled, you won't be billed anymore but your plan will continue to work till the end of your billing cycle.
We offer a free IP location plan for trial & testing with no time limit. No credit card is required to use it. Basic fields are accessible without sign-up. If you require full access or a higher limit trial plan, please contact us. We would be happy to help you out.
Under the free tier, you get up-to 1000 IP lookups in a day (approximately 30K/month). The plan is suitable for development purposes but not recommended for production. The system may use heuristics to further restrict free tier API calls under certain conditions. If you are unable to access the free plan, please contact us. We would be happy to help you out.
We use a secure, PCI compliant payment provider to handle credit & debit card transactions. We never view or store any customer’s full credit or debit card details on our platform. Our primary payment processor is Stripe. It has been audited by an independent PCI QSA and is certified as a PCI Level 1 Service Provider. This is the most stringent level of certification available in the payments industry.
The API is suitable for a website, mobile or desktop app to automatically find the location of an IP address. If you need to perform bulk lookup, we offer a separate GUI tool covered under the same subscription plan. If you expect an uncommon usage or traffic pattern, please contact us to ensure that the API will be suitable for you. For further details, please see our terms of service & privacy policy
See our general FAQ or send us a message here.




What makes us the

Best IP Address Location

for thousands of businesses worldwide

Fast
Blazing fast IP Lookup that scales rapidly and grows with your usage.
Secure
HTTPS for everyone - free & paid. Encrypted payment handling. Your privacy & security is our top concern.
Reliable
Built on AWS, our infrastructure provides high availability and scalability. We use multiple independent services to monitor our API uptime & performance. View API Status and Incident Report
Support
We obsess over top-notch customer support, 365 days a year. Every ticket is reviewed by a qualified developer.
Global
Our customers range from startups to Fortune 500 from all over the globe. See what they have to say about us.
Economical
Competitive & transparent pricing. Flexible Plans. Don't hesiate to reach out with your budget.
Accurate
One of the most comprehensive IPv4 & IPv6 coverage. Database updated daily.

Use cases of IP Geolocation

  • Automatically detect & display a user's IP / city / country / timezone from your website or mobile app.
    (even if location tracking is turned off)
  • Customize the content of your website / mobile app for a user's geographical location.
    (e.g. news, weather, store locations, currency, flag etc.)
  • Automatically redirect visitors to a region or country specific websites.
  • Find your external IP address with an API.
  • Display a user's location on a map.
    (accuracy ranges from city to postal code level)
  • Bulk IP lookup - a tool for batch lookup of IP addresses.
    (e.g. for user analytics, log files etc.)
  • Filter out bad bots & crawlers based on region / country.
  • A format that fits your stack : JSON, JSONP, XML, CSV & YAML.
  • Supported languages : PHP, JavaScript, Python, Java, Ruby, Go, C#, C, C++ and more.