IP to ASN (Extended) Database Documentation
Overview
The IP to ASN (Extended) Database adds full routing context on top of standard ASN resolution, focusing on routes, peers, upstreams, and downstreams to model real-world topology. Built from live BGP collectors and route servers, it surfaces provider/customer relationships, peer sets, and active announcements to power peering strategy, leak/hijack detection, and path policy validation.
Designed for NetOps and security analytics, each record can include peer, upstream and downstream ASN lists, announced route prefixes, allocation status, and allocation date. If you only need basic ASN identity (IP range, AS number, organization, country, domain, and type), use the Lite dataset; this page documents the full Extended schema, including the Extended-only fields.
Available Database Formats
CSV Database Documentation
1. Overview
The CSV version is a set of Gzip-compressed CSV files containing IP ranges and their extended ASN information. Designed for bulk imports and integration into relational databases.
2. Archive Content
After downloading and extracting the IP to ASN (Extended) CSV database archive, you'll find the following files (with their types noted):
This Gzip-compressed CSV provides ASN info: number, organization, domain, type, and country.
- File Size: 17.88 MB
- Entries: 137.0K
- Fields: 14
Each start_ip–end_ip range links to an ASN details ID in db-asn-details.csv.gz.
- File Size: 242.94 MB
- Entries: 42.6M
- Fields: 3
Documentation for dataset contents, schema, usage, and support.
- File Size: 6.38 KB
SHA-256 checksums for verifying file integrity.
- File Size: 247 Bytes
Schema
This section describes the schema of each file included in the IP to ASN (Extended) Database archive. For every file, you'll find its purpose, field definitions, and examples to help with integration.
1. db-ip-asn.csv.gz
This file contains IP address ranges linked to ASN information. It maps each IP block to a unique asn_details_id, which in turn corresponds to the AS's organization, domain, type, routes, peers, upstreams, downstreams, and country.
| Field | Type | Description | Can Be Empty? | Example |
|---|---|---|---|---|
| start_ip | string | The starting IP address of the range in IPv4 or IPv6 format. | No | 192.168.0.1 |
| end_ip | string | The ending IP address of the range in IPv4 or IPv6 format. | No | 192.168.0.255 |
| asn_details_id | string | The unique identifier for the ASN Details. | No | 187 |
I. Example Records
start_ip,end_ip,asn_details_id
77.129.52.16,77.129.52.16,114953
97.118.12.236,97.118.12.236,27459
184.65.138.115,184.65.138.115,49618
89.40.95.21,89.40.95.21,130970
122.6.134.147,122.6.134.147,13839
74.88.172.50,74.88.172.50,48456
90.254.244.0,90.254.244.0,32243
82.3.197.16,82.3.197.16,30301
102.56.230.112,102.56.230.112,3448
2601:40:c500:50:7db4:c732:9a1a:e78b,2601:40:c500:50:7db4:c732:9a1a:e78b,899672. db-asn-details.csv.gz
This file contains detailed Autonomous System Number (ASN) information. Each entry links a unique ID to an AS number, organization, domain, routes, peers, upstreams, downstreams, type, and country.
| Field | Type | Description | Can Be Empty? | Example |
|---|---|---|---|---|
| id | string | The unique identifier for the ASN details. | No | 1 |
| as_number | string | The Autonomous System Number (ASN), exported as a bare integer without the AS prefix. | No | 29355 |
| as_name | string | The name of the Autonomous System (AS). | No | |
| organization | string | The organization associated with the ASN. | No | Google LLC |
| country | string | The country where the ASN is registered. | No | US |
| type | string | The type of network associated with the ASN (e.g., ISP, BUSINESS, HOSTING, EDUCATION, GOVERNMENT). | No | BUSINESS |
| domain | string | The domain associated with the ASN. | Yes | google.com |
| allocation_status | string | The allocation status of the ASN. | Yes | ASSIGNED |
| whois_host | string | The WHOIS host for the ASN. | Yes | ARIN |
| peers | string | Comma-separated list of peer ASNs. | Yes | AS57950, AS58289, AS48502, AS9198 |
| upstreams | string | Comma-separated list of upstream ASNs. | Yes | AS9009, AS174, AS64073, AS212024 |
| downstreams | string | Comma-separated list of downstream ASNs. | Yes | AS9009, AS174, AS64073, AS212024 |
| routes | string | Comma-separated list of announced route prefixes in CIDR notation. | Yes | 164.40.102.0/24, 2.78.47.0/24, 164.0.212.0/24, 2.76.168.0/21 |
| date_allocated | string | The date when the ASN was allocated. | Yes | 1999-03-15 |
I. Example Records
id,as_number,as_name,organization,country,type,domain,allocation_status,whois_host,peers,upstreams,downstreams,routes,date_allocated
48456,6128,CABLE-NET-1,Cablevision Systems Corp.,US,ISP,optimum.com,,ARIN,"AS36236, AS10761, AS263444, AS262355","AS3303, AS33891, AS37468, AS1299","AS54004, AS20940, AS19720","69.118.240.0/21, 24.187.4.0/23, 67.85.56.0/21, 24.188.248.0/22",
3448,36992,ETISALAT-MISR,Etisalat Misr,EG,ISP,etisalat.com.eg,ASSIGNED,AFRINIC,"AS14789, AS31065, AS6127, AS36870","AS3356, AS6453, AS8452, AS10241","AS14789, AS31065, AS36870, AS6127","2c0f:fc89:43f::/48, 2c0f:fc88:2a::/48, 84.36.105.0/24, 2c0f:fc89:1bb::/48",2007-12-10
89967,33287,COMCAST-33287,"Comcast Cable Communications, LLC",US,ISP,xfinity.com,,ARIN,"AS62644, AS3778, AS11731, AS53373","AS7922, AS3356","AS62644, AS11731, AS3778, AS53373","2001:559:439::/48, 2001:559:84f9::/48, 98.225.128.0/17, 2001:559:4bd::/48",2004-11-16
32243,5378,unspecified,Vodafone Limited,GB,ISP,vodafone.co.uk,ASSIGNED,RIPE,"AS13237, AS36236, AS37721, AS5713","AS37468, AS3216, AS41327, AS60068","AS25310, AS25135","83.104.0.0/14, 90.252.0.0/15, 90.252.0.0/14, 193.237.0.0/16",2002-09-13
13839,4134,CHINANET-BACKBONE,China Telecom Corporation Limited,CN,ISP,chinatelecom.com.cn,,APNIC,"AS2687, AS58541, AS134238, AS58542","AS12389, AS63658, AS60068, AS5511","AS134238, AS2687, AS58541, AS58542","1.68.0.0/14, 240e:5c:8000::/33, 220.168.140.0/24, 106.40.0.0/16",2002-08-01
30301,5089,NTL,Virgin Media Limited,GB,ISP,virginmedia.com,LEGACY,RIPE,"AS15933, AS2567, AS12306, AS2200","AS33891, AS12779, AS3356, AS6830","AS34099, AS41548, AS60142, AS60382","92.233.0.0/16, 194.34.144.0/24, 194.165.29.0/24, 194.168.128.0/17",2002-08-15
114953,15557,LDCOMNET,Société Française du Radiotéléphone SFR SA,FR,ISP,sfr.fr,ASSIGNED,RIPE,"AS60620, AS60068, AS61394, AS8426","AS60068, AS1836, AS29222, AS20562","AS3259, AS57297, AS60620, AS208157","93.191.80.0/21, 195.234.41.0/24, 88.140.0.0/15, 82.101.0.0/18",2002-09-19
49618,6327,SHAW,Rogers Communications Inc.,CA,ISP,rogers.com,,ARIN,"AS14965, AS401175, AS399688, AS60068","AS3303, AS1299, AS174, AS394256","AS14965, AS399688, AS401175, AS54182","68.147.140.0/22, 70.73.140.0/22, 2604:3d09:da00::/40, 2604:3d00:da20::/48",1996-03-08
130970,41496,RO-TVSAT-AS,TV SAT 2002 SRL,RO,ISP,tvsat.ro,ASSIGNED,RIPE,"AS36236, AS198150, AS174, AS268624","AS174, AS268624, AS6204, AS15958",,"86.107.26.0/23, 188.210.252.0/23, 85.122.136.0/21, 37.156.227.0/24",2006-09-01
27459,209,CENTURYLINK-US-LEGACY-QWEST,"CenturyLink Communications, LLC",US,ISP,lumen.com,,ARIN,"AS32153, AS14603, AS14848, AS13516",AS3356,"AS32153, AS13516, AS14848, AS396175","209.144.137.0/24, 65.40.156.0/24, 69.69.244.0/24, 74.4.48.0/20",1998-11-133. File Relationship Diagram
The diagram below illustrates the relationships between the various files included in the CSV database package. It shows how the main CSV file connects to the reference table for ASN details, ensuring accurate data linkage and integrity.
File Format & Encoding
All IP to ASN (Extended) CSV datasets are provided in UTF-8 encoding, comma-separated, and compressed with Gzip (.csv.gz). Each file includes a header row listing the field names for clarity and consistency.
Field values are unquoted by default, with quotes applied only in the following cases:
- Line breaks within text fields.
- Commas inside a value.
- Lists of values.
- Spaces that may be auto-quoted by export tools.
MMDB Database Documentation
1. Overview
The MMDB version of the database consists of three files: one MMDB file containing all ASN information, a README file, and a checksum file, all compressed together in a ZIP file for easy delivery.
2. Archive Content
After downloading and extracting the IP to ASN (Extended) MMDB database archive, you'll find the following files (with their types noted):
Provides full ASN details for IP addresses: organization, domain, type, and country.
- File Size: 64.82 MB
- Entries: 42.6M
Documentation for dataset contents, schema, usage, and support.
- File Size: 4.97 KB
SHA-256 checksums for verifying file integrity.
- File Size: 157 Bytes
Response Schema
This section describes the structure of the data returned from the IP to ASN (Extended) MMDB file. Each field is detailed with its type, meaning, and example values to help you interpret responses and integrate them into your applications.
1. db-ip-asn.mmdb
This file contains Autonomous System Number (ASN) mappings for both IPv4 and IPv6 address ranges. Below is an example of the structure you will encounter in the response.
2. Field Reference
The following reference lists all fields available in the MMDB response. Each entry includes the field path, its description, data type, and example value to help you understand how to parse and integrate the data.
| Field | Type | Description | Example |
|---|---|---|---|
asn | object | ||
asn.as_number | string | The Autonomous System Number (ASN), exported as a bare integer without the AS prefix. | 29355 |
asn.as_name | string | The name of the Autonomous System (AS). | |
asn.organization | string | The organization associated with the ASN. | Google LLC |
asn.country_code | string | The country where the ASN is registered. | US |
asn.type | string | The type of network associated with the ASN (e.g., ISP, BUSINESS, HOSTING, EDUCATION, GOVERNMENT). | BUSINESS |
asn.domain | string | The domain associated with the ASN. | google.com |
asn.allocation_status | string | The allocation status of the ASN. | ASSIGNED |
asn.whois_host | string | The WHOIS host for the ASN. | ARIN |
asn.peers | string | Comma-separated list of peer ASNs. | AS57950, AS58289, AS48502, AS9198 |
asn.upstreams | string | Comma-separated list of upstream ASNs. | AS9009, AS174, AS64073, AS212024 |
asn.downstreams | string | Comma-separated list of downstream ASNs. | AS9009, AS174, AS64073, AS212024 |
asn.routes | string | Comma-separated list of announced route prefixes in CIDR notation. | 164.40.102.0/24, 2.78.47.0/24, 164.0.212.0/24, 2.76.168.0/21 |
asn.date_allocated | string | The date when the ASN was allocated. | 1999-03-15 |
I. Example Records
{
"asn": {
"allocation_status": "ASSIGNED",
"as_name": "LDCOMNET",
"as_number": "15557",
"country_code": "FR",
"date_allocated": "2002-09-19",
"domain": "sfr.fr",
"downstreams": "AS3259,AS57297,AS60620,AS208157",
"organization": "Société Française du Radiotéléphone SFR SA",
"peers": "AS60620,AS60068,AS61394,AS8426",
"routes": "93.191.80.0/21,195.234.41.0/24,88.140.0.0/15,82.101.0.0/18",
"type": "ISP",
"upstreams": "AS60068,AS1836,AS29222,AS20562",
"whois_host": "RIPE"
}
}Database Integrity & Authenticity Verification
There are two ways to verify the integrity and authenticity of our databases:
1. Using the Signature File (Recommended)
IPGeolocation.io signs every database release to ensure its authenticity and integrity. This allows customers to verify that a downloaded IP to ASN (Extended) database file originates directly from IPGeolocation.io and has not been altered, corrupted, or tampered with during transfer or storage.
Each database update includes a corresponding signature file, generated using our private signing key. Customers can validate the database using the provided public verification key. To verify a database file, you need:
- Database file (the downloaded archive)
- Signature file (the matching signature for that archive)
- Public key (public-key.pem)
These files are available via official IPGeolocation.io download endpoints and are also shared in database update notifications.
2. Using the Checksum File (Legacy)
Each database archive includes a checksum.txt file containing the SHA-256 checksums for the files packaged in the archive. You can use this file to validate that the extracted contents are complete and unchanged.
Data Format & Constraints
- All fields defined in the schema are always present in the IP to ASN (Extended) MMDB response.
- Fields may contain empty strings (""), but never null, so null checks are not required.
- All text values are encoded in UTF-8.
- Field names and response structure remain stable across updates for backward compatibility.
Database Updates & Delivery
When you subscribe to our IP to ASN (Extended) database, we'll send you static download links. These links never change, so you can use them both for your initial download and for all future updates. You will receive:
- Database Archive URL: downloads the latest release of your subscribed database (CSV, MMDB or requested formats).
- Signature File URL: downloads the matching signature file for the latest release (used for authenticity verification).
- Public Key URL: downloads the public verification key (used with the signature file).
- Status Endpoint URL: returns the database's most recent update timestamp.
Our databases are updated continuously and shipped on a daily or weekly cycle depending on your plan. Each time your subscribed dataset is updated, you'll also receive an email notification so you don't miss a release.
For automated workflows, you can check our status endpoint to see the last update timestamp. When the date changes, simply re-fetch the archive using your static download URL to pull the latest version into your system.