IP to ASN database Free download
Our free IP to ASN database maps IP address ranges to their Autonomous System Number (ASN), along with the organization that owns the ASN. It's ideal for understanding network ownership and traffic sources. Like our other free databases, it is updated daily.
Data fields
The IP to ASN database includes the following data fields for each IP network range.
Example
Look up an IP address using the MMDB database
Here's how to perform a local lookup using our MMDB database file with Node.js.
get_asn_from_ip_address.js
import fs from 'fs';
import * as mmdb from 'mmdb-lib'; // npm install mmdb-lib
const db = fs.readFileSync('/path/to/ip-to-asn.mmdb');
const reader = new mmdb.Reader(db);
console.log(reader.get('104.23.1.8'));
// {
// asn: 132892,
// country_code: 'US',
// name: 'CLOUDFLARE',
// org: 'Cloudflare, Inc.',
// domain: 'cloudflare.com',
// network: '104.23.0.0/19'
// }