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

IPstack

Operational

Real-time IP geolocation API · by APILayer

Get your API key

Free plan · 100 requests / month · no card

Playground tab is switched off on the live page (AP-6510). Delete this widget to turn it back on.

Overview

API info

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.

Example request

GETShellcurl
curl --request GET \
  --url "https://api.apilayer.net/ipstack/134.201.250.155?access_key=YOUR_ACCESS_KEY"
Run it in the Playground

Example response

200 - OK
{
    "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"
    }
}

Features

  • Easy to integrate

    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.

  • Global coverage

    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

  • Built for security

    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.

  • Reliable at scale

    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

Flexible plans for every stage of growth

Start free. Upgrade when you go live.

MonthlyYearlySave up to 15%

Free

For testing and side projects

$0forever

No credit card

No overage charges

Get free API key

100 requests / month

Includes:

  • SSL Encryption (HTTPS)
  • Location Module
  • Non-commercial use
See all 9 features

Starter

For your first live product

$12.99/ month

Billed monthly

Then $0.0010392 per extra request, up to 100,000 extra a month

Subscribe now

50,000 requests / month

Everything in Free, plus:

  • Time Zone Module
  • Connection Module
  • Currency Module
  • Standard Support included
See all 9 features
Most popular

Professional

For growing traffic

$59.99/ month

Billed monthly

Then $0.00047992 per extra request, up to 1,000,000 extra a month

Subscribe now

500,000 requests / month

Everything in Starter, plus:

  • 10× the requests of Starter
  • Lower cost per request
See all 9 features

Enterprise

For high volume

$99.99/ month

Billed monthly

Then $0.00019998 per extra request, up to 4,000,000 extra a month

Subscribe now

2,000,000 requests / month

Everything in Professional, plus:

  • Security Module
  • Bulk Endpoint support
  • 4× the requests of Professional
  • Lower cost per request
See all 9 features

Custom

Need more? Contact sales for custom needs.

Contact us

Compare all features

9 featuresFree$0Get free keyStarter$12.99/moSubscribeProfessional$59.99/moSubscribeEnterprise$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 limitNone$0.0010392$0.00047992$0.00019998

Playground

Try the API

Build a request in your browser and see the response it returns.

GET
security Optional

Add your free API key to run it from your code.

curl
200 - OK

      
    

Agents

Agents: start here

Steps for AI coding agents that add IPstack to a project.

  1. 1Get an API key

    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).

  2. 2Keep the key out of code

    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.

    .env
    # add .env to .gitignore
    APILAYER_ACCESS_KEY=your_api_key
  3. 3Make the first request

    Base URL
    https://api.apilayer.net/ipstack
    Auth
    access_key query parameter
    Formats
    JSON, XML
    Endpoints
    • /{ip_address} Standard lookup
    • /check Requester lookup
    • /{ip_address},{ip_address} Bulk lookup (Enterprise, up to 50 IPs)
    Shell
    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.

  4. 4Check the plan before you use a feature

    Each plan adds features to the plan before it. Check that the account's plan includes a feature before writing code that uses it.

    PlanRequests / monthAdds
    Free100SSL Encryption (HTTPS), Location Module
    Starter50,000Time Zone Module, Connection Module, Currency Module, Standard Support included, Commercial use
    Professional500,000Same features as Starter
    Enterprise2,000,000Security Module, Bulk Endpoint support

    Prices are in the Pricing tab.

  5. 5Use the machine-readable docs

FAQs

Need clarity?

Here are the answers you might be seeking

Data & features

01.What is IPstack?

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.

02.What data can I get from an IP lookup?

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

03.Which response formats does the API support?

IPstack supports both JSON and XML responses, so you can integrate it with almost any backend, frontend, or middleware stack.

04.How accurate and reliable is the IP data?

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

05.How accurate is IPstack?

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.

06.How many API requests can IPstack handle?

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.

07.How often is IP data updated?

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.

08.How much of the global network is supported?

Data coverage is expanding rapidly, with IPstack currently supporting over 2 million unique locations in more than 200,000 cities worldwide.

09.How to use IPstack API to get real-time IP lookup data?

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.

10.What is a geolocation API, and how does IPstack help?

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.

11.Is IPstack a free IP API?

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.

API access

01.What happens if my allowed volume is exceeded?

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.

Plans & pricing

01.Is there a free tier, and how do I get started?

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.

02.What if I need more than 2,000,000 API requests per month?

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.

03.Why would I choose a paid subscription?

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.

04.How can I pay?

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.

05.Can I cancel anytime?

Yes. IPstack is a subscription-based service, and your chosen plan renews automatically each month. You can upgrade, downgrade, or cancel at any time.

06.Can I pay yearly?

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.

07.How do I cancel/downgrade?

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.

08.How do I change between monthly and yearly billing?

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.”

Overages

01.What is an overage?

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.

PlanMonthly priceRequests / monthPrice per extra requestExtra requestsOverage cost
Starter$12.9950,000$0.001039210,000$10.39
Professional$59.99500,000$0.0004799210,000$4.80
Enterprise$99.992,000,000$0.0001999810,000$2.00

Note: For complete details, please refer to the overages documentation here.

02.Why does APILayer have overage fees?

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.

03.How do I know if I will be charged for overages?

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.

04.What if I consistently have more API calls than my plan allows?

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.

05.How will I be charged for my API subscription?

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.

06.What happens if I don't have any overage fees?

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.

07.I would like to upgrade my plan. How can I do that?

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 support

IPstack reviews

IPstack has 142 reviews on G2.

View more on G2