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_ip | end_ip | country | currency_code | currency_name | currency_symbol |
|---|---|---|---|---|---|
| 2a01:7a7:2:1630:: | 2a01:7a7:2:1630:ffff:ffff:ffff:ffff | FR | EUR | Euro | € |
| 2001:470:1f13:93:: | 2001:470:1f13:93:ffff:ffff:ffff:ffff | IN | INR | Rupee | ₹ |
| 2a0e:ec01:7c00:: | 2a0e:ec01:7fff:ffff:ffff:ffff:ffff:ffff | NZ | NZD | Dollar | NZ$ |
| 1.0.0.0 | 1.0.0.255 | AU | AUD | Dollar | A$ |
| 23.230.24.0 | 23.230.25.255 | US | USD | Dollar | $ |
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()downloadUrl()downloadBytes()metadata()checksums()import osfrom internetdata import InternetDataclient = InternetData(os.environ["INTERNETDATA_API_KEY"])# what is in today's build, without moving the filemeta = 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"])
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.
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.
Common questions
Where does the country come from?
It's the country IP Geolocation gives the same range, so the two files agree.
Why is the currency sometimes empty?
A few territories have no currency of their own, Antarctica among them. Their ranges still carry the country, with the currency left blank.
How often is it rebuilt?
Daily. The metadata call answers when the current build landed and how many rows it holds, before you fetch it.
Which formats does a build ship in?
Gzipped CSV and MMDB, both cut from the same build. The MMDB opens in any MaxMind DB reader.
Is it really free?
Yes. Create an account and download it from the console, or with your API key from the API or any official client. It's licensed under CC BY-SA 4.0: credit InternetData and share what you build from it under the same license.
Is there a lookup API?
Yes. An address lookup answers location's currency_code, currency_name and currency_symbol on every plan, free included.
What if a row looks wrong?
Send it to us and we'll tell you what we hold on it and when it was last seen. Corrections land in the next build.
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.
{"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"}}
All of the data on a paid plan.
A free API key answers every field for its first 100 lookups each day, with no card.