Skip to content
InternetData
Open

Every IP range, with its country's currency.

Every IPv4 and IPv6 range matched to its country's official currency, with the ISO 4217 code, the name and the symbol, for pricing and checkout pages that adapt to where a request comes from.

In the lookup API: location's currency_code, currency_name and currency_symbol, on every plan, free included.

Real rows, with what each column means.

See documentation →

The schema and metadata are in the docs. It is published as CSVGZ and MMDB.

start_ipend_ipcountrycurrency_codecurrency_namecurrency_symbol
2a01:7a7:2:1630::2a01:7a7:2:1630:ffff:ffff:ffff:ffffFREUREuro€
2001:470:1f13:93::2001:470:1f13:93:ffff:ffff:ffff:ffffININRRupee₹
2a0e:ec01:7c00::2a0e:ec01:7fff:ffff:ffff:ffff:ffff:ffffNZNZDDollarNZ$
1.0.0.01.0.0.255AUAUDDollarA$
23.230.24.023.230.25.255USUSDDollar$
ID
ip_country_currency_v1
Entries
925,665
Refresh
Daily
CSVGZ
6.66 MB
MMDB
3.96 MB

Download it from your code in one call.

Database API reference →

Every official client fetches the current IP Country Currency build to disk, as a link for your own runner or into memory, and checks it against its published checksums.

download()
Streams the current build to a file, which lands only once the whole transfer has arrived, so a failed one never leaves a truncated file behind.
downloadUrl()
The time-limited link the API redirects to, for your own downloader, a job runner or a CDN pull.
downloadBytes()
The build in memory, for a small database or a pipeline that never touches a filesystem.
metadata()
Row count, file sizes and when the build last updated. Poll it and fetch only when a new one has landed.
checksums()
The md5, sha1, sha256 and sha512 digests of one file, to verify it once it lands.
import os
from internetdata import InternetData
client = InternetData(os.environ["INTERNETDATA_API_KEY"])
# what is in today's build, without moving the file
meta = client.database.metadata("ip_country_currency_v1")
client.database.download("ip_country_currency_v1", "mmdb", "./ip_country_currency_v1.mmdb")
sums = client.database.checksums("ip_country_currency_v1", "mmdb")
print(meta.updated, meta.entries, sums["sha256"])
load.pypip install internetdata
Also available for .NET, Ruby, Rust, Swift, Erlang, Perl and Zig. See all on GitHub →

Put it to work in your own systems.

Free with an account, and the file is yours: teams join IP Country Currency against the traffic, logs and routing data they already hold, inside their own infrastructure.

Pricing and checkout

Default a price or a checkout to the visitor's own currency before they have to tell you.

Reporting

Label revenue and invoices with each country's currency.

Free with an account
Sign up, then download it from the console, or with your API key from the API or any official client.
Checksums published per file: md5, sha1, sha256 and sha512.
The ID fixes the schema, so a new build never changes the columns your parser reads.

Call the API in your language, with an official client.

All SDKs on GitHub →

Thirteen official clients, one for each language you ship in and one for the browser, plus middleware for seven web frameworks. Each answers private addresses without a request, caches what it looks up and splits big batches for you.

On this page

Where does the country come from?

It's the country IP Geolocation gives the same range, so the two files agree.

00 · Unlimited

Unlimited lookups, no sign-up.

Paste it into a terminal. Any address answers with its country, network, company and hostname, with no key and no daily or monthly cap. ASes 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,
"is_carrier": false,
"is_satellite": false,
"is_ssh": false,
"is_smtp": false,
"is_web": true,
"is_dns_resolver": true,
"is_bittorrent": false,
"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",
"type": "hosting",
"prefix": "8.8.8.0/24"
},
"company": {
"name": "Google LLC",
"domain": "google.com"
},
"tor": {},
"relay": {},
"abuse": {
"email": "network-abuse@google.com"
}
}
01 · Every field

All of the data on a paid plan.

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

A free API key answers every field for its first 100 lookups each day, with no card.