IP address lookup API. Locate any IP at city level in one call.

Look up any IPv4 or IPv6 address. Get country, city, ISP, currency, timezone, and threat signals back as JSON. 100+ fields in a single GET request.

  • No credit card
  • Setup in 60 seconds
Trusted by Developers Worldwide
Microsoft Airbnb Samsung Activision HubSpot

100+ fields per lookup. Location, network, and threat signals in one response.

One lookup returns the full profile of any IPv4 or IPv6 address: where it is, who runs it, and whether to trust it.

City-level location

Continent, country, region, city, ZIP, and precise lat/long for any IP. 200,000+ cities, 2M+ locations covered.

{
  "continent_name": "North America",
  "country_name": "United States",
  "region_name": "Virginia",
  "city": "Ashburn",
  "zip": "20149",
  "latitude": 39.0438,
  "longitude": -77.4879
}

Threat detection

is_proxy, is_tor, is_crawler, threat_level. Block proxies, Tor exits, and known threats before checkout.

  • is_proxyfalseALLOW
  • is_torfalseALLOW
  • is_crawlerfalseALLOW
  • threat_level"low"ALLOW

Currency, language, timezone

Localize prices, copy, and scheduling on first paint, without a client-side library or extra round-trip.

currency.code USD$
languages[0] Englishen
time_zone.id America/New_York

Connection and ISP

ASN and ISP name in every response. See who owns and routes any IP you look up; tag VPNs by ASN, group traffic by carrier.

ASN 14618 amazon.com Inc.

IPv4 and IPv6, one shape

Same endpoint, same fields for both stacks. No special-casing IPv6 in your client code.

IPv4 api.ipstack.com/134.201.250.155
IPv6 api.ipstack.com/2606:2800:220:1
Get Free API Key 100 free calls a month · No credit card
Building with AI agents?

ipstack ships an MCP server so Claude, Cursor, and custom agents can call IP geolocation directly.

Read the MCP guide

One endpoint. Any language.

Look up any IP. Get city-level geolocation back in milliseconds. JSON or XML, IPv4 or IPv6, same response shape every time.

# Look up any IP at city level
curl "https://api.ipstack.com/134.201.250.155?access_key=YOUR_KEY"

What developers do with an IP address lookup

Trace a suspicious login to its source

Look up the session IP and read city, region_name, connection.isp, and connection.asn to see where it really came from. Combine with security.is_proxy, is_tor, and threat_level to score the risk in the same call.

Debug why a user sees the wrong region

Paste the user's IP, look it up, and compare the returned country_code and region_name against what your app served. Settles "is it the IP data or my routing?" in one request.

Enrich server logs with location

Run the IPs from your access logs through the API and stamp each with country_code, city, and connection.isp. Turn a raw log of addresses into something you can group, filter, and audit by geo and network.

Audit a list of IPs in one request

Send up to 50 addresses to the Bulk endpoint and get a full lookup back for each: screen an allowlist, vet vendor IP ranges, or check a batch of flagged addresses in a single call. Available on Professional+.

99.9%
Uptime
2M+
Locations
200,000+
Cities
100+
Fields per lookup

Pricing that scales with your traffic.

Start with 100 free calls a month. Upgrade when you outgrow them. No setup fees, cancel any time.

Free
$0/mo
 

For evaluation and low-volume projects.

  • 100 calls / mo
  • Location module: country, region, city, ZIP
  • SSL encryption
  • JSON or XML, IPv4 + IPv6
Get Free API Key
Basic
$12.99/mo
or $479.88/yr

For production apps with modest traffic.

  • 50,000 calls / mo
  • Location, currency, timezone, connection
  • SSL, JSON or XML
  • Overage at $0.00104 / call
Subscribe Now
Professional
$59.99/mo
or $599.88/yr

For growing products with higher volume.

  • 500,000 calls / mo
  • Everything in Basic
  • Overage at $0.00048 / call
Subscribe Now

Need more than 2M lookups per month?

The team will design a custom plan for your scale: dedicated infrastructure, a private SLA, priority support, and volume pricing.

Talk to Sales

Questions developers ask about IP address lookups

ipstack is integrated with a network of large ISPs that continuously provide updated IP ranges. The API returns city-level accuracy for the vast majority of routable addresses and country-level accuracy for virtually all of them, across 2 million+ unique locations in 200,000+ cities worldwide.

Get your API key. Look up your first IP in 60 seconds.

  • 100 free calls a month
  • No credit card
Get Free API Key