Use caseIP geolocation
Geolocate any IP address.
Get the country, timezone and currency of any address free, with no key needed to try it. The Data plan adds the region, city, postal code and coordinates, from our IP Geolocation database.
- Visitor on /pricing203.0.113.24Vienna, AustriaEURPrices in EUR
- Visitor on /signup198.51.100.7São Paulo, BrazilBRLIn Portuguese
- Download192.0.2.140Tokyo, JapanAsia/TokyoTokyo mirror
- Stream request203.0.113.91Toronto, CanadaCADNot licensed
Show every visitor the right price, rules and server.
Prices and language
Visitors see prices in a currency that isn't theirs. Show their own currency and language on the first page they open.
Answered bylocation.currency_codelocation.countryCountry rules
Licensing, sanctions or content rights differ by country. Allow, block or redirect each visitor by their country.
Answered bylocation.countryis_vpnThe nearest server
Visitors far from your servers wait longer. Send each one to the closest region by its city's coordinates.
Answered bylocation.latitudelocation.longitudeAnalytics without a script
You want visitors by country without a tag on the page. Count them by country and city from your own logs.
Answered bylocation.countrylocation.city
One lookup places an address down to its city.
The country, continent, timezone and currency answer with no key, and with no cap on a free key. The region, city, postal code and coordinates come with the Data plan, and Pricing lists every field by plan.
location.countryThe ISO 3166 country code, with country_name beside it.Freelocation.continentThe continent, as a code and a name.Freelocation.timezoneThe IANA timezone, such as Europe/Vienna.Freelocation.currency_codeThe country's currency, with its name and symbol.Freelocation.regionThe region or state, with its ISO 3166-2 code.Data planlocation.cityThe city, with a postal code.Data planlocation.latitude, longitudeThe city's coordinates, with an accuracy radius in kilometers.Data plan
Use it wherever a visitor first arrives.
- 01
On the first page
Read the country as the page renders, so prices, currency and language are right before the visitor picks anything. Keep their own choice once they make one.
- 02
At your edge
Route each request to the nearest region by its city's coordinates, or by its country where that's enough. The official clients keep each answer for an hour, so a returning visitor costs no lookup.
- 03
In your logs
Look up the addresses in stored requests 1,000 at a time, on the Data plan. Visitors are then counted by country and city with no script on the page.
Start free, then add every field.
The same code runs with no key and with one: without a key it answers the free fields, and an upgrade adds the rest with no change to the code.
- 1
Call it with no key
100 a dayRun the code on this page as it is, with no account.
- 2
Sign up for a key
No cardA free key answers every field on your first 1,000 lookups each day, so you can try the city and coordinates on your own visitors.
- 3
Upgrade for every lookup
From $20 a monthThe Data plan answers every field on every lookup, at the quota you pick, and takes up to 1,000 lookups in one request.
import { InternetData } from "@internetdata/internetdata";// No key needed for the country. A Data plan key adds the city.const client = new InternetData({ apiKey: process.env.INTERNETDATA_API_KEY });export async function localize(req) {const { location } = await client.lookup(req.ip);return {country: location.country, // "AT"currency: location.currency_code, // "EUR"timezone: location.timezone, // "Europe/Vienna"city: location.city ?? null, // "Vienna", on the Data plan};}
Also available for Web, .NET, Ruby, Rust, Swift, Erlang, Perl and Zig. See all on GitHub →
Other use cases
- Fraud preventionVPN, proxy, Tor and hosting checks at sign-up, log-in and checkout.is_vpnis_resproxyis_mobproxy
- Threat intelligenceAn address's network, abuse contact, services and anonymity flags, for alerts and logs.asnhostnameis_tor, is_relay
- Domain intelligenceWhether a domain is registered, its DNS records, its organization's ranges and disposable email.is_registeredhas_a, has_aaaa, has_mxdns
Industries that run this check
All industries →- E-commerceCheckout fraud, local prices and throwaway sign-upslocation.country, currency_codelocation.city, postal_codeis_resproxy, is_mobproxy
- GamingRegion routing, ban evasion and bot farmslocation.country, timezonelocation.latitude, longitudeis_vpn
- HealthcareTelehealth by state and patient portal log-inslocation.region, region_codelocation.countrylocation.timezone
Trusted by
Data protection, ad tech, telecom and software companies on three continents.
- Assured Data Protection
- ASTRAD
- TAMradar
- Influentials
- Ross-Tech
- Solar Communications
- Paraty.com
- zepi
Common questions
Five answers on city precision, free commercial use, VPN users, IPv6 and downloads.
How precise is the city?
The Data plan's coordinates are the city's, not the device's, and accuracy_radius is the kilometers around them that hold the true location with 67% confidence.
Is the country free for commercial use?
Yes. The free plan answers the country, continent, timezone and currency with a key or without one, commercial use included, as long as its answers aren't redistributed, resold or used in a competing service.
Where does a VPN user show up?
Where the VPN's server is, not where the person is. The Data plan's is_vpn says the address is a VPN's, so a country rule can treat it apart.
Does it place IPv6 addresses?
Yes, on the same endpoint and with the same fields as IPv4. An IPv4-mapped address (::ffff:a.b.c.d) answers as the IPv4 address it carries.
Can I download the data instead?
Yes. IP Geolocation is a database licensed on its own, and IP Country, IP Timezone, IP Country Flag and IP Country Currency are free with an account.
Free lookups, no sign-up.
Paste it into a terminal. Any address answers with its country, network and hostname. ASNs and domains answer too.
{"ip": "8.8.8.8","is_bogon": false,"is_tor": false,"is_relay": false,"is_anycast": true,"hostname": "dns.google","location": {"continent": "NA","continent_name": "North America","country": "US","country_name": "United States","timezone": "America/Los_Angeles","currency_code": "USD","currency_name": "Dollar","currency_symbol": "$","flag_emoji": "🇺🇸","flag_unicode": "U+1F1FA U+1F1F8"},"asn": {"asn": 15169,"name": "Google LLC","domain": "google.com","prefix": "8.8.8.0/24","country": "US","rpki_status": "valid"},"tor": {},"relay": {}}
Every field on the Data plan.
A free API key answers every field on a daily allowance of lookups, with no card.