Geolocate any IP in milliseconds.
A precise, developer-first IP geolocation API. Country, city, ASN, timezone & currency - one call, predictable JSON, no surprises.
const res = await fetch(
"https://api.theipapi.com/v1/ip/216.73.216.122?api_key=YOUR_KEY"
);
const data = await res.json();
console.log(data);
import requests
r = requests.get(
"https://api.theipapi.com/v1/ip/216.73.216.122",
params={"api_key": "YOUR_KEY"},
)
print(r.json())
package main
import (
"io"
"net/http"
)
func main() {
url := "https://api.theipapi.com/v1/ip/216.73.216.122?api_key=YOUR_KEY"
resp, _ := http.Get(url)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
println(string(body))
}
One API. Seven product surfaces.
Localized pricing & currency
Show shoppers the right price, language, and shipping ETA the moment they land - no cookies, no geo-guessing.
- › Currency & tax detection
- › Region-specific promos
- › Fraud-prevention signals
Suspicious login detection
Pipe enriched geo + ASN data into your auth stack. Catch impossible-travel events before they hit MFA.
- › ASN & proxy flags
- › Country-level policy gates
- › Audit-grade logs
Localized content delivery
Personalize bookings by origin city - currency, inventory, regional campaigns, all without an SDK.
- › Dynamic pricing
- › Booking security
- › Regional recommendations
Geo-targeted campaigns
Slice impressions by country, region, or ASN. Measure lift with geo precision that beats IP-country-only datasets.
- › Campaign geo-targeting
- › Regional lift reporting
- › Bot / VPN filtering
Geo-restriction & licensing
Enforce content rights without fingerprinting users. Fast enough to gate at the CDN edge.
- › License compliance
- › VPN / proxy detection
- › Latency-aware routing
Enriched traffic analytics
Turn raw IPs into city, ISP, and ASN dimensions inside your warehouse - with a batch endpoint built for ETL.
- › Batch / bulk lookups
- › ASN & org attribution
- › Warehouse-friendly schema
Ship geolocation in an afternoon.
1,000 free lookups/day, no card required. Upgrade only when your traffic does.