Skip to content
InternetData

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.

Free lookups, no key needed · Sign up to try every field, no card
Visitors, placed
  • Visitor on /pricing
    203.0.113.24
    Vienna, AustriaEURPrices in EUR
  • Visitor on /signup
    198.51.100.7
    São Paulo, BrazilBRLIn Portuguese
  • Download
    192.0.2.140
    Tokyo, JapanAsia/TokyoTokyo mirror
  • Stream request
    203.0.113.91
    Toronto, 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.country
  • Country rules

    Licensing, sanctions or content rights differ by country. Allow, block or redirect each visitor by their country.

    Answered bylocation.countryis_vpn
  • The nearest server

    Visitors far from your servers wait longer. Send each one to the closest region by its city's coordinates.

    Answered bylocation.latitudelocation.longitude
  • Analytics 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.country
    The ISO 3166 country code, with country_name beside it.Free
  • location.continent
    The continent, as a code and a name.Free
  • location.timezone
    The IANA timezone, such as Europe/Vienna.Free
  • location.currency_code
    The country's currency, with its name and symbol.Free
  • location.region
    The region or state, with its ISO 3166-2 code.Data plan
  • location.city
    The city, with a postal code.Data plan
  • location.latitude, longitude
    The city's coordinates, with an accuracy radius in kilometers.Data plan

Use it wherever a visitor first arrives.

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

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

  3. 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. 1

    Call it with no key

    100 a day

    Run the code on this page as it is, with no account.

  2. 2

    Sign up for a key

    No card

    A 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. 3

    Upgrade for every lookup

    From $20 a month

    The 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
};
}
localize.mjsnpm install @internetdata/internetdata

Also available for Web, .NET, Ruby, Rust, Swift, Erlang, Perl and Zig. See all on GitHub →

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.

00 · No key

Free lookups, no sign-up.

Paste it into a terminal. Any address answers with its country, network and hostname. ASNs and domains answer too.

curl https://api.internetdata.io/8.8.8.8
{
"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": {}
}
01 · Every field

Every field on the Data plan.

VPN, proxy, hosting and CDN flags, each naming the operator.
Location to the city, with coordinates and an accuracy radius.
The company using an address, its abuse contact, WHOIS records and the services it runs.
Up to 1,000 addresses, ASNs and domains in one request.

A free API key answers every field on a daily allowance of lookups, with no card.