| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository contains the databases that are used by the commercial IP API https://ipapi.is and the documentation for the API and all databases.
Please consider subscribing to a paid plan at https://ipapi.is/pricing.html to help out the project. The API runs on several servers across the globe and currently handles millions of daily requests.
The following databases are available:
The databases in this repository power the IP API at https://api.ipapi.is. The API returns geolocation, ASN, company/organization, abuse contact and hosting information for any IPv4 or IPv6 address, as well as the security flags is_bogon, is_mobile, is_satellite, is_crawler, is_datacenter, is_tor, is_proxy, is_vpn and is_abuser. The API can be used anonymously for up to 1,000 requests per day.
Usage with curl:
curl 'https://api.ipapi.is/?q=32.5.140.2'Bulk lookups of up to 100 IP addresses in one API call are supported via POST:
curl --header "Content-Type: application/json" \
--request POST \
--data '{"ips": ["162.158.0.0", "2406:dafe:e0ff:ffff:ffff:ffff:dead:beef"], "key": "your_api_key"}' \
https://api.ipapi.isBesides the default JSON output, the API supports several other output formats (all billed the same as JSON):
The full API documentation can be found at https://ipapi.is/developers.html.
The following files can be downloaded directly from this repository (or from ipapi.is):
| Database | Free Download / Sample |
|---|---|
| IP to Geolocation (IPv4) | Full Database (CSV) |
| IP to Geolocation (IPv6) | Full Database (CSV) |
| IP to Geolocation (Commercial Version) | CSV IPv4, MMDB IPv4, CSV IPv6, MMDB IPv6 |
| IP to Hosting (IPv4) | CSV, MMDB |
| IP to Hosting (IPv6) | CSV, MMDB |
| ASN Database (keyed by ASN) | JSON |
| IP to ASN | CSV, MMDB |
| IP to VPN (enumerated-vpn) | CSV, MMDB |
| IP to VPN (interpolated-vpn) | CSV, MMDB |
| Reverse DNS | RDNSZ, TSV |
| IP to Abuser | CSV, MMDB |
| IP to Company | CSV, MMDB |
The IP to Hosting Database is a commercial database that can be purchased here. The IP to Hosting Database contains all known hosting IP ranges of the Internet. The database is continuously updated and new hosting / cloud providers are added as soon as they emerge.
The database considers all of the following services as hosting providers:
A proprietary algorithm was developed to determine if a network belongs to a hosting provider or not. The database contains more than 565,000 IPv4 networks and more than 629,000 IPv6 networks and is constantly growing.
The file format of the database is CSV (or MMDB), where each line of the file contains the following fields:
Example excerpt of the database (CSV):
startIp,endIp,ipVersion,datacenter,domain
92.222.187.0,92.222.187.255,4,OVH VPS ES,ovh.net
153.120.81.0,153.120.81.255,4,SAKURA Internet Inc.,sakura.ad.jp
185.39.138.85,185.39.138.85,4,MissDomain Group AB,missdomain.com
86.66.23.232,86.66.23.239,4,Internet Services,isi.ch
51.77.100.128,51.77.100.143,4,OVH Ltd,ovh.co.uk
38.142.65.248,38.142.65.255,4,"Imperva, Inc",www.imperva.com
185.103.97.252,185.103.97.255,4,UK Dedicated Servers Ltd,uksrv.co.uk
103.64.80.0,103.64.83.255,4,"Guangdong Aofei Data Technology Co., Ltd.",ofidc.com
194.218.29.104,194.218.29.111,4,Iver Sverige AB,iver.com
135.125.25.152,135.125.25.159,4,OVH SAS,ovhcloud.com
46.165.192.0,46.165.255.255,4,Leaseweb Deutschland GmbH,leaseweb.com
5.198.151.0,5.198.151.127,4,Xidras GmbH,xidras.com
78.41.202.254,78.41.202.254,4,Snel.com B.V.,snel.com
133.32.45.0,133.32.45.255,4,"GMO Internet,Inc.",gmo.jp
5.9.232.240,5.9.232.255,4,Hetzner Online GmbH,hetzner.com
176.9.127.64,176.9.127.95,4,Hetzner Online GmbH,hetzner.com
159.148.115.56,159.148.115.63,4,SIA Latnet,bite.lv
51.91.67.0,51.91.67.255,4,OVH SAS,ovhcloud.com
89.151.66.192,89.151.66.255,4,Pulsant Limited,pulsant.com
156.240.103.0,156.240.103.255,4,Bunny Technology LLC,bunny.net
149.6.42.4,149.6.42.7,4,Netwise Hosting Ltd,netwise.co.ukDatabase samples:
An autonomous system (AS) is a large network or group of networks with a single routing policy. Each AS is assigned a unique ASN, which is a number that identifies the autonomous system (AS). Most IP addresses belong to an AS. There are many different reasons why ASN metadata can be useful.
You can purchase the full ASN database here - Sample: ASN Database Sample (JSON)
The ASN database includes all assigned and allocated AS numbers by IANA and respective meta information. The database furthermore contains unassigned and inactive ASNs (currently around 85,000 active ASNs and more than 370,000 inactive/unassigned ASNs).
The ASN database is updated several times per week. For active ASNs (at least one route/prefix assigned to the AS), the database includes rich meta information. For example, the provided information for the ASN 50673 would be:
{
"asn": 50673,
"abuser_score": "0.0013 (Low)",
"descr": "SERVERIUS-AS, NL",
"country": "nl",
"active": true,
"org": "Serverius Holding B.V.",
"domain": "serverius.net",
"abuse": "abuse@serverius.net",
"type": "hosting",
"created": "2010-09-07",
"updated": "2022-11-15",
"rir": "RIPE",
"whois": "https://api.ipapi.is/?whois=AS50673",
"prefixes": [
"5.56.133.0/24",
"5.178.64.0/21",
"5.178.64.0/24",
"5.188.12.0/22",
"5.188.12.0/24",
"5.188.13.0/24",
// many more routes
],
"prefixesIPv6": [
"2001:67c:b0::/48",
"2a00:1ca8::/32",
"2a00:1ca8:77::/48",
"2a00:1caa::/32",
"2a02:1680::/32",
"2a03:3f40::/32",
"2a06:8000::/29",
"2a09:e40::/32",
"2a09:4d41::/32",
"2a09:aa80::/32",
"2a0a:3f40::/32",
"2a0c:480::/32",
"2a0e:c9c0::/29",
"2a0f:4a80::/48"
],
"elapsed_ms": 0.6
}The database is in JSON format. The key is the ASN as int and the value is an object with AS meta information such as the one above.
The ASN data is also available as an IP to ASN database in CSV or MMDB format, where each row maps an IP range to its ASN metadata (CSV Sample, MMDB Sample):
startIp,endIp,ipVersion,asn,abuser_score,route,descr,country,active,org,domain,abuse,type,created,updated,rir
1.0.0.0,1.0.0.255,4,13335,0.0154 (Elevated),1.0.0.0/24,"CLOUDFLARENET - Cloudflare, Inc., US",us,true,"Cloudflare, Inc.",cloudflare.com,abuse@cloudflare.com,hosting,2010-07-14,2017-02-17,ARIN
1.0.4.0,1.0.4.255,4,38803,0.0006 (Low),1.0.4.0/24,"GTELECOM-AS-AP - Gtelecom Pty Ltd, AU",au,true,Gtelecom Pty Ltd,gtelecom.com.au,support@gtelecom.com.au,isp,,2024-09-18,APNICEach entry of the ASN database has the meta data listed below. If the ASN is inactive, there is less metadata for the ASN. For example, inactive ASNs have no prefixes or prefixesIPv6 fields.
The IP to Geolocation Database is free and can be downloaded directly from this repository. The database includes geolocation information for a large part of the IPv4 address space and many IPv6 networks. The database is updated several times per week. The accuracy of the data is very good on the country level. For critical applications, it is not recommended to rely on the geolocation database to be accurate to the city level. The database (CSV file) has an accuracy column that specifies how accurate the geolocation for that particular network is.
The geolocation database is provided as large CSV file with the following header fields:
Example excerpt of the database (CSV):
ip_version,start_ip,end_ip,continent,country_code,country,state,city,zip,timezone,latitude,longitude,accuracy,source
4,1.0.0.0,1.0.0.255,OC,AU,Australia,Victoria,Research,3760,Australia/Melbourne,-37.7,145.18333,3,whoisDescrAttr
4,1.0.1.0,1.0.1.255,AS,CN,China,Beijing,Beijing,100000,Asia/Shanghai,39.9075,116.39723,3,whoisDescrAttr
4,1.0.2.0,1.0.3.255,AS,CN,China,Beijing,Beijing,100000,Asia/Shanghai,39.9075,116.39723,3,whoisDescrAttr
4,1.0.4.0,1.0.4.255,OC,AU,Australia,New South Wales,Warren,2824,Australia/Sydney,-31.70224,147.83392,3,whoisDescrAttrThere is also a commercial version of the geolocation database with higher accuracy, more meta data (such as isDst) and MMDB support: CSV IPv4 Sample, MMDB IPv4 Sample, CSV IPv6 Sample, MMDB IPv6 Sample. Learn more on the IP to Geolocation page.
Remove the first column from geolocationDatabaseIPv4.csv:
cut -d, -f2- geolocationDatabaseIPv4.csv > dataIPv4.csvThen convert using mmdbctl:
mmdbctl import --in dataIPv4.csv --out dataIPv4.mmdbThat works like a charm and yields a ready-to-use dataIPv4.mmdb file with all networks.
The IP to VPN Database is a database that contains VPN IP addresses from well-known providers like ExpressVPN and NordVPN. Additionally, the database contains IP ranges from other VPN providers from which the provider's name is not known. The database is updated on a regular basis and is available for purchase in CSV or MMDB format.
Despite the fact that VPN services bring a lot of benefits to its users, they also have a dark side. VPN services are often used by cybercriminals to hide their real IP address and to bypass geo-restrictions and commit fraud. The IP to VPN Database is a valuable tool for businesses that want to detect VPN usage on their website or app and to take appropriate measures to protect their services.
The IP to VPN Database contains three different datasets with different detection accuracy and different false positive rates:
The enumerated-vpn dataset contains the following fields (the mandatory fields are ipVersion, startIp, endIp, serviceName, serviceUrl, exitNodeType, lastSeen and lastSeenStr, the other fields are optional):
Example excerpt of the enumerated-vpn database (CSV):
startIp,endIp,ipVersion,serviceName,serviceUrl,exitNodeType,lastSeen,lastSeenStr,exitNodeRegion,hostname,countryCode,cityName,latitude,longitude
45.14.193.5,45.14.193.5,4,NordVPN,https://nordvpn.com,exit_node,1783270858483,2026-07-05T17:00:58.483Z,no226.nordvpn.com,,NO,,,
107.170.235.165,107.170.235.165,4,TunnelBear,https://tunnelbear.com,exit_node,1783386256931,2026-07-07T01:04:16.931Z,,,,,,
83.219.96.34,83.219.96.34,4,ExpressVPN,https://expressvpn.com,exit_node,1779087431055,2026-05-18T06:57:11.055Z,jamaica,,JM,,,
45.134.20.109,45.134.20.109,4,ExpressVPN,https://expressvpn.com,exit_node,1779098436659,2026-05-18T10:00:36.659Z,australia-woolloomooloo,,AU,Woolloomooloo,-33.87042,151.21968
151.240.44.38,151.240.44.38,4,Private Internet Access,https://privateinternetaccess.com,exit_node,1781718537869,2026-06-17T17:48:57.869Z,us-wisconsin,,US,Wisconsin,,This example shows how to work with the IP to VPN Database in MMDB format. First, you have to download the database sample:
curl -O https://ipapi.is/data/samples/Enumerated-VPN-Database-Sample.mmdbAnd then you can read the database with mmdbctl:
mmdbctl read -f json-pretty 2.26.12.14 Enumerated-VPN-Database-Sample.mmdbwhich outputs:
{
"exitNodeType": "vpn_server",
"ip": "2.26.12.14",
"ipVersion": "4",
"lastSeen": "1783942716787",
"lastSeenStr": "2026-07-13T11:38:36.787Z",
"network": "2.26.12.14-2.26.12.14",
"serviceName": "PublicVpnConfigs"
}The Reverse DNS Database contains the PTR record (reverse DNS hostname) of every IPv4 address on the Internet. It is the result of a complete sweep of the routable IPv4 address space: 3,702,258,432 IP addresses queried, yielding 1,039,377,899 resolved PTR records. The database is re-crawled from scratch and re-published every month.
Reverse DNS hostnames are one of the most information-dense signals that exist for an IP address. A single PTR record such as ec2-3-137-190-186.us-east-2.compute.amazonaws.com reveals the hosting provider, the service type and the region of an IP address - while dynamic-077-183-045-122.77.183.pool.telefonica.de immediately identifies a residential dial-up customer. The ipapi.is API derives several of its signals - such as is_datacenter, is_vpn and the detection of new hosting providers - in part from this reverse DNS data.
Unlike most reverse DNS datasets, this database stores the DNS outcome for every single queried IPv4 address, not only the IP addresses that have a PTR record. For each IP, one of the following statuses is recorded: has_ptr, noerror_empty, nxdomain, servfail, refused, timeout, net_error or lame_delegation. Where a PTR hostname could be verified with a forward lookup, the database additionally stores the Forward-Confirmed reverse DNS (FCrDNS) result.
The database ships in .rdnsz, a purpose-built binary format that stores the complete sweep - all 3.7 billion query results including all hostnames - in roughly 0.99 GB (less than a byte per queried IP address). The format achieves this with IP delta encoding, hostname templating and Zstandard block compression. The binary format specification is included in the package, so you can implement a reader in any language - the reference implementations in JavaScript and Go are less than 300 lines each.
A converted excerpt of the database looks like this (IP address, tab, PTR hostnames):
1.0.16.108 st2-smtp.kakeibo.tepco.co.jp 1.0.64.20 20.64.0.1.megaegg.ne.jp 1.0.64.40 40.64.0.1.megaegg.ne.jp 1.0.64.60 60.64.0.1.megaegg.ne.jp
Every database package includes rdnsz_query.js, a self-contained reader tool with zero npm dependencies - it only requires Node.js >= 22.15. To try it out, download the sample database and the tool:
curl -O https://ipapi.is/data/samples/Reverse-DNS-Database-Sample.rdnsz
curl -O https://ipapi.is/src/rdnsz_query.jsLook up a single IP address:
node rdnsz_query.js lookup 1.0.64.20 Reverse-DNS-Database-Sample.rdnszwhich outputs:
{
"ip": "1.0.64.20",
"status": "has_ptr",
"ptr": [
"20.64.0.1.megaegg.ne.jp"
],
"fcrdns_match": true
}Show the crawl statistics of a database file or convert it to plain text (TSV) / JSONL:
node rdnsz_query.js stats Reverse-DNS-Database-Sample.rdnsz
node rdnsz_query.js dump Reverse-DNS-Database-Sample.rdnsz --limit 5Typical use cases for the Reverse DNS Database are IP classification and enrichment, threat intelligence and abuse analysis, email deliverability checks, asset discovery / attack surface management, Internet research and offline reverse DNS lookups with zero latency. Because each monthly release is a complete, self-contained snapshot, you can also diff two releases to detect infrastructure changes. Read more on the Reverse DNS Database page.
The IP to Abuser Database is a database that contains IP addresses known for abusive behavior. The database is aggregated from more than 150 independent blocklist sources, updated on a regular basis and available for purchase in CSV or MMDB format. Currently, the database contains more than 5 million abusive IP addresses.
Abusive IP addresses can be used for various malicious activities, including spam, hacking attempts, and DDoS attacks. The IP to Abuser Database is a valuable tool for businesses that want to detect and prevent abuse on their website or app and to take appropriate measures to protect their services.
The IP to Abuser Database is provided as a CSV or MMDB file with the following fields:
The database is sorted by sourceCount in descending order. IPs with higher sourceCount values are found on more independent blocklists and are generally considered more reliably abusive.
Example excerpt of the database (CSV Sample, MMDB Sample):
startIp,endIp,ipVersion,isAbuser,sourceCount,totalSources
93.174.95.106,93.174.95.106,4,true,34,154
86.54.31.38,86.54.31.38,4,true,33,154
118.26.111.107,118.26.111.107,4,true,32,154
80.82.77.33,80.82.77.33,4,true,31,154The IP to Company Database contains the name, domain and type for every company / organization in the Internet that owns an IP address or IP network. IP ownership of companies is obtained by querying the five major WHOIS registries responsible for number resources: ARIN, RIPE, APNIC, LACNIC, and AFRINIC. The IP to Company Database is updated in regular intervals to ensure the correctness of the firmographic data.
The IP to Company Database allows you to accurately classify traffic according to different criteria, such by company name or type. For example, traffic from an organization classified as hosting tends to have a lower reputation compared to traffic from a government or education network.
The file format of the IP to Company Database is either in CSV or MMDB format (CSV Sample, MMDB Sample) and contains the following fields:
If you have any questions, suggestions or if you found an error in the data, please contact us. Errors in the data can also be reported directly on ipapi.is.
| Back | FazBrowse Home | New Git URL |