Location · API
IP Geolocation
Resolve any IP address to country, city, coordinates, timezone, currency and network — in a single call.
GET /v1/geoip
GET /v1/geoip
200 OK
{ "ip": "8.8.8.8", "country": "United States", "city": "Mountain View", "latitude": 37.386, "timezone": "America/Los_Angeles", "currency": "USD", "isp": "Google LLC" }
Capabilities
Why teams use it
City-level accuracy
Resolved from multiple providers for confident geolocation.
Global coverage
240+ countries and territories, IPv4 and IPv6.
Proxy & VPN detection
Flag anonymized traffic with ISP and ASN context.
Sub-40 ms lookups
Answered from the nearest region for real-time flows.
Request
Call it in your language
curl "https://api.locanium.com/v1/geoip?ip=8.8.8.8" \ -H "Authorization: Bearer sk_live_..."
Response
What you get back
- Country name
countrystring - ISO-3166 alpha-2 code
country_codestring - City name
citystring - Approximate latitude
latitudenumber - Approximate longitude
longitudenumber - IANA time zone
timezonestring - ISO-4217 currency
currencystring - Internet service provider
ispstring - Autonomous system number
asnstring
Use cases
What you can build
Fraud & risk
Score signups and payments by country, proxy and ASN.
Localization
Show the right language, currency and offers automatically.
Analytics
Enrich events with geography without storing raw IPs.
Location family
Full parameters, errors and code samples are in the API reference.