Free
For testing and side projects
$0forever
No credit card
No overage charges
100 requests / month
Includes:
- SSL Encryption (HTTPS)
- Location Module
- Non-commercial use
AI agents: the setup steps for IPstack are in the Agents section of this page (#agents) and as Markdown at /products/ipstack/agents.md. Index of every APILayer API: https://apilayer.com/llms.txt
Real-time IP geolocation API · by APILayer
Free plan · 100 requests / month · no card
Overview
IPstack gives you accurate IP-based location, ISP, timezone, and security data in a single API call. Instantly locate users, detect VPNs and proxies, and adapt your product or service to each visitor in real-time.
curl --request GET \
--url "https://api.apilayer.net/ipstack/134.201.250.155?access_key=YOUR_ACCESS_KEY"
{
"ip": "134.201.250.155",
"type": "ipv4",
"continent_code": "NA",
"continent_name": "North America",
"country_code": "US",
"country_name": "United States",
"region_code": "CA",
"region_name": "California",
"city": "Los Angeles",
"zip": "90013",
"latitude": 34.0655,
"longitude": -118.2405,
"location": {
"geoname_id": 5368361,
"capital": "Washington D.C.",
"languages": [
{
"code": "en",
"name": "English",
"native": "English"
}
],
"country_flag": "https://assets.ipstack.com/flags/us.svg",
"country_flag_emoji": "🇺🇸",
"country_flag_emoji_unicode": "U+1F1FA U+1F1F8",
"calling_code": "1",
"is_eu": false
},
"time_zone": {
"id": "America/Los_Angeles",
"current_time": "2026-11-26T07:35:08-08:00",
"gmt_offset": -28800,
"code": "PST",
"is_daylight_saving": false
},
"currency": {
"code": "USD",
"name": "US Dollar",
"plural": "US dollars",
"symbol": "$",
"symbol_native": "$"
},
"connection": {
"asn": 25876,
"isp": "Los Angeles Department of Water & Power"
}
}Ship faster with a simple REST API that returns JSON or XML in milliseconds. Plug in your access key, call the endpoint, and start enriching requests with IP intelligence right away.
Look up IPs from over 2 million locations and 200,000 plus cities worldwide, with support for both IPv4 and IPv6. Build location-aware features that work anywhere your users are
Identify VPNs, proxies, and other risky IPs, backed by 256-bit SSL encryption and real-time threat detection to protect logins, payments, and admin surfaces.
IPstack is trusted by thousands of developers and businesses, with 99.9 percent uptime and enterprise-grade reliability, so your IP checks stay online as you grow.
Pricing
Start free. Upgrade when you go live.
For testing and side projects
$0forever
No credit card
No overage charges
100 requests / month
Includes:
For your first live product
$12.99/ month
Billed monthly
Then $0.0010392 per extra request, up to 100,000 extra a month
50,000 requests / month
Everything in Free, plus:
For growing traffic
$59.99/ month
Billed monthly
Then $0.00047992 per extra request, up to 1,000,000 extra a month
500,000 requests / month
Everything in Starter, plus:
For high volume
$99.99/ month
Billed monthly
Then $0.00019998 per extra request, up to 4,000,000 extra a month
2,000,000 requests / month
Everything in Professional, plus:
Need more? Contact sales for custom needs.
| 9 features | Free$0Get free key | Starter$12.99/moSubscribe | Professional$59.99/moSubscribe | Enterprise$99.99/moSubscribe |
|---|---|---|---|---|
| SSL Encryption (HTTPS) | ||||
| Location Module | ||||
| Time Zone Module | – | |||
| Connection Module | – | |||
| Currency Module | – | |||
| Security Module | – | – | – | |
| Bulk Endpoint support | – | – | – | |
| Standard Support included | – | |||
| Commercial use | – | |||
| Price per extra request after the monthly limit | None | $0.0010392 | $0.00047992 | $0.00019998 |
Playground
Build a request in your browser and see the response it returns.
Agents
Steps for AI coding agents that add IPstack to a project.
A person creates the account: an agent cannot sign up. Sign up at app.apilayer.com and subscribe to IPstack. The Free plan includes 100 requests / month and needs no credit card.
Copy the API key from the APILayer dashboard and give it to the agent as an environment variable (step 2).
Read the key from an environment variable named APILAYER_ACCESS_KEY. Do not write the key into source code, commit it to git, or paste it into a chat.
Call IPstack from server code. The key travels in the request URL, so a request sent from a browser shows the key to every visitor.
# add .env to .gitignore
APILAYER_ACCESS_KEY=your_api_keyhttps://api.apilayer.net/ipstackaccess_key query parameter/{ip_address} Standard lookup/check Requester lookup/{ip_address},{ip_address} Bulk lookup (Enterprise, up to 50 IPs)curl "https://api.apilayer.net/ipstack/134.201.250.155?access_key=$APILAYER_ACCESS_KEY"The API info tab shows the response this request returns.
Each plan adds features to the plan before it. Check that the account's plan includes a feature before writing code that uses it.
| Plan | Requests / month | Adds |
|---|---|---|
| Free | 100 | SSL Encryption (HTTPS), Location Module |
| Starter | 50,000 | Time Zone Module, Connection Module, Currency Module, Standard Support included, Commercial use |
| Professional | 500,000 | Same features as Starter |
| Enterprise | 2,000,000 | Security Module, Bulk Endpoint support |
Prices are in the Pricing tab.
FAQs
Here are the answers you might be seeking
IPstack is a real-time IP to geolocation API that returns accurate location data and IP intelligence so you can identify visitors and adjust your application experience accordingly. It is used by thousands of developers and businesses and is built to handle both small projects and large-scale apps.
A single IPstack lookup can return location details such as city, region, country, latitude, and longitude, along with ISP, connection type, ASN, timezone, currency, and security insights like VPN, proxy, and threat detection flags
IPstack supports both JSON and XML responses, so you can integrate it with almost any backend, frontend, or middleware stack.
IPstack uses partnerships with leading ISPs and a global dataset that covers more than 2 million locations and 200,000 plus cities, backed by a 99.9% uptime SLA for consistent, up-to-date results
Since the IPstack database and API is integrated with a series of large ISPs who constantly provide information about new and existing IP ranges, we are proud to offer a very high level of accuracy in IP data.
With 9 years of continuous optimization, the infrastructure behind IPstack and the IPstack API has evolved to become highly scalable and efficient, currently handling between 2 and 3 billion API requests per day.
IPstack is integrated with multiple channels, delivering real-time IP data. This is why the database used by the IPstack API is updated regularly, with up to 24 database updates per day.
Data coverage is expanding rapidly, with IPstack currently supporting over 2 million unique locations in more than 200,000 cities worldwide.
The response is delivered in a structured JSON format, making it easy to integrate with your applications. This JSON IP API provides accurate geolocation data, including country, city, latitude, longitude, timezone, and more.
A geolocation API enables developers to retrieve geographic information based on specific parameters. The IPstack API provides real-time location data, including continent, country, region, and city, based on an IP address.
Yes, IPstack offers a free IP API tier with limited monthly requests, ideal for personal projects, testing, and small applications. You can upgrade to a paid plan for higher limits and additional features like bulk lookups and access to the security data module.
Users will be automatically notified via e-mail and on their Account Dashboard once at least 75%, 90%, and 100% of their monthly API Request allowance has been reached. After reaching 100% of the allowance, overages fees will apply so we make sure you won’t experience any disruptions and your website/application will keep running smoothly. You can learn more about overages billing here.
Yes. IPstack offers a free tier so you can test the API and build prototypes without upfront cost. Sign up for an account, grab your API key, then follow the Quickstart guide in the docs to make your first request.
The infrastructure behind IPstack was built to scale almost indefinitely. Please let us know your requirements, and we will develop a custom solution tailored to your needs.
The IPstack Free Plan provides a way to test the API and its capabilities on a non-production website or application. Premium plans include standard customer support, commercial use, increased query limits, and essential API features such as the time zone, connection and currency modules, plus bulk lookups and the security module on Enterprise.
Payment can be made via credit card (Visa, MasterCard, American Express, Diner’s Club, Discover), or, for Enterprise clients, standard bank transfer. You can change your payment method at any given time in your account dashboard.
Yes. IPstack is a subscription-based service, and your chosen plan renews automatically each month. You can upgrade, downgrade, or cancel at any time.
Yes. If you choose annual billing, the total price of your subscription plan will be up to 15% lower than the total amount you would pay with a monthly payment frequency.
You can initiate a cancellation or downgrade by selecting a new plan and providing at least one reason for your decision. The customer service team will cancel or downgrade your plan. Downgrades are not effective immediately; your premium subscription will remain active until the end of the current billing period.
To change your subscription from monthly to yearly billing, submit a request on the Contact Us page following these steps:
Step 1: Sign in to your account.
Step 2: Go to the Contact Us page.
Step 3: Fill out the form and choose the “Sales” category for this request.
Step 4: In the text box, include your specific request, for example “Change from Monthly to Yearly subscription.”
An overage occurs when you go over a quota for your API plan. When you reach your API calls limit, we will charge you a small amount for each new API call so we can make sure there will be no disruption in the service we provide to you and your website or application can continue running smoothly.
Prices for additional API calls will vary based on your plan. See the table below for prices per call and an example of an overage billing.
| Plan | Monthly price | Requests / month | Price per extra request | Extra requests | Overage cost |
|---|---|---|---|---|---|
| Starter | $12.99 | 50,000 | $0.0010392 | 10,000 | $10.39 |
| Professional | $59.99 | 500,000 | $0.00047992 | 10,000 | $4.80 |
| Enterprise | $99.99 | 2,000,000 | $0.00019998 | 10,000 | $2.00 |
Note: For complete details, please refer to the overages documentation here.
Overage fees allow customers to continue using an API once a quota limit is reached. We want to make sure your website or application continues running at all times, so charges will apply if you go over your monthly quota limit. If you notice you are going over your quota limit each month, look on your dashboard for an upgraded plan to help with larger request limits.
When you are close to reaching your API calls limit for the month, you will receive an automatic notification (at 75%, 90%, and 100% of your monthly quota). You can keep track of your quota usage to prevent overages by tracking the number of API calls you make and checking the dashboard for up-to-date usage statistics.
If your usage consistently surpasses the set limits each month, you may face additional charges for the excess usage. Nevertheless, as your monthly usage reaches a certain threshold, it becomes more practical to consider upgrading to the next plan. By doing so, you ensure a smoother and more accommodating experience for your growing customer base. Find out about our pricing plans here.
You will be charged for your monthly subscription plan, plus any overage fees applied. Your credit card will be billed after the billing period has ended.
In this case, there will be no change to your monthly invoice. Only billing cycles that incur overages will see any difference in monthly charges. The Business Continuity plan is an insurance plan to be used only if needed and guarantees your end users never see a drop in coverage from you.
You can easily upgrade your plan by going to your Dashboard and selecting the new plan that would be more suitable for your business needs. Additionally, you may contact your Account Manager to discuss a custom plan if you expect a continuous increase in usage.
Still have a question?
Contact support4.5
142 reviews on G2
Source: G2.com, Inc.
IPstack has 142 reviews on G2.
View more on G2