Skip to content
InternetData

IP Country: continent, country, timezone, currency and flag

IP Country maps every IPv4 and IPv6 range to its continent, country, timezone, currency and flag, free with any account under CC BY-SA 4.0.

Published 2 min read

On this page
  1. One country and one zone per row
  2. What's in it
  3. Getting access

IP Country is out, under Geolocation: every IPv4 and IPv6 range with its continent and country, each as a code and a name, the range's IANA timezone, and the country's currency and flag. It's an Open database, free to download with any account under CC BY-SA 4.0.

One country and one zone per row

RangeContinentCountryTimezoneCurrency
1.6.0.0/15AS AsiaIN IndiaAsia/KolkataINR Rupee, ₹
1.179.103.0/24NA North AmericaUS United StatesAmerica/ChicagoUSD Dollar, $
1.178.32.0/20SA South AmericaBR BrazilAmerica/Sao_PauloBRL Real, R$
2.27.26.128/27AN AntarcticaAQ AntarcticaAntarctica/Syowa
2400:1000::/32AS AsiaJP JapanAsia/TokyoJPY Yen, ¥

Each row also carries the flag, as an emoji and as its two Unicode code points (U+1F1EF U+1F1F5 for Japan) for a system that can't render emoji. Antarctica has no currency of its own, so its ranges keep their country and zone and leave the currency blank.

The country and the zone are the ones IP Geolocation gives the same range, and neighboring ranges with the same country and zone are merged into one row. A country that spans several zones has rows in each: 28 zones for the United States, 23 for Russia, 20 for Canada and 15 for Brazil.

What's in it

The October 16 build holds 2,455,119 ranges, 1,740,693 IPv4 and 714,426 IPv6. They cover 3,702,257,663 IPv4 addresses in 250 countries and territories, with 400 IANA timezones and 154 currencies.

ContinentCountries and territoriesIPv4 addresses
North America411,642,994,735 (44.4%)
Asia51952,163,593 (25.7%)
Europe53771,258,766 (20.8%)
South America14152,593,719 (4.1%)
Africa58117,650,791 (3.2%)
Oceania2865,588,964 (1.8%)
Antarctica57,095

IP Country Flag and IP Country Currency, free as well, carry its flag and currency columns on their own, and IP Timezone its zones. For the network behind each range, IP ASN is free too.

Getting access

Sign up, and IP Country is in the console with a download button, already licensed to your organization: nothing to request. With an API key, the CLI and the client libraries download it as they do any database:

sh
internetdata db download ip_country_v1

In BigQuery, subscribe to the free InternetData Open listing, or InternetData Open EU, and look addresses up inline (BigQuery has the details):

sql
SELECT
    l.ip,
    internetdata_open.ip_country_v1(l.ip).country AS country,
    internetdata_open.ip_country_v1(l.ip).timezone AS timezone,
    internetdata_open.ip_country_v1(l.ip).currency_code AS currency
FROM mydataset.logins AS l

CC BY-SA 4.0 asks two things: credit InternetData with a link to internetdata.io, and share what you build from the data under the same license. Building it into something you sell without sharing alike takes a redistribution license. Its docs page has the schema.

Written by

  • Uman Shahzad

    Founder & CEO

    IP intelligence data expert for over 8 years, former lead engineer at IPinfo, Uman has pioneered many systems and practices used by IP data companies to operate at scale, provide high-quality data and offer the best developer experiences.

Get new posts by email

Or follow along in a feed reader.

RSS feed

Put this data to work.

Everything these posts report on comes from the databases we license, and you can test them first.

00 · Evaluate

Test the real build first.

An evaluation license puts a full current build in your hands, with no sampling, so you can measure it against your own traffic before anyone talks about terms.

01 · License

Then license what you use.

Standard, for detection and decisions inside your own product and operations.
Redistribution, when the data ships onward inside what you sell, priced by scope rather than by seat.
Annual terms, a named contact, and monthly, quarterly or yearly payment.