Skip to content
InternetData

IP ASN, now free: announced space by origin AS

IP ASN, every announced IPv4 and IPv6 range with its origin AS and the route's RPKI status, is free now with any account under CC BY-SA 4.0.

Published 2 min read

On this page
  1. One origin per range
  2. What's in it
  3. Getting access

IP ASN is now one of our Open databases, every column included: free to download with any account under CC BY-SA 4.0. It's every range in the global routing table, split so that each address belongs to the most specific prefix announcing it, with the AS originating that prefix, the network's name, domain, type and country, and the route's RPKI status.

One origin per range

PrefixASNameDomainTypeCountryRPKI
1.1.1.0/2413335Cloudflare, Inc.cloudflare.comhostingUSvalid
13.35.201.0/2416509Amazon.com, Inc.amazon.comhostingUSvalid
37.99.10.0/2421299Kar-Tel LLCbeeline.kzispKZnot_found
102.135.34.0/249009M247 Europe SRLm247global.comhostingROinvalid:origin
2a01:4f8::/3224940Hetzner Online GmbHhetzner.comhostingDEvalid

Where more than one AS originates a prefix, the row keeps the one most of the routing table sees. country is where the AS is registered, which isn't always where an address is used: IP Country has that. rpki_status is the route checked against the published RPKI data (RFC 6811): valid, not_found where no ROA covers it, and invalid:origin or invalid:length where one contradicts it.

What's in it

The October 15 build holds 1,468,057 ranges, 1,168,584 IPv4 and 299,473 IPv6, covering 3,127,523,472 announced IPv4 addresses from 86,443 origin networks. Routes that RPKI validates cover 65.1% of those addresses and routes no ROA covers 34.9%, with 1,929,928 under an invalid route.

The origin AS's typeIPv4 addresses
isp1,989,816,745 (63.6%)
hosting456,405,863 (14.6%)
government314,997,776 (10.1%)
education203,939,828 (6.5%)
business162,363,260 (5.2%)

name, domain, type and country are the origin AS's as the free ASN database publishes them, so the two join on asn.

Getting access

Sign up, and IP ASN is in the console with a download button, already licensed to your organization: nothing to request. With an API key, the CLI and the client libraries download it as they do any database:

sh
internetdata db download ip_asn_v1

In BigQuery, subscribe to the free InternetData Open listing, or InternetData Open EU, and look addresses up inline (BigQuery has the details):

sql
SELECT
    l.ip,
    internetdata_open.ip_asn_v1(l.ip).asn AS asn,
    internetdata_open.ip_asn_v1(l.ip).name AS network,
    internetdata_open.ip_asn_v1(l.ip).type AS type
FROM mydataset.logins AS l

CC BY-SA 4.0 asks two things: credit InternetData with a link to internetdata.io, and share what you build from the data under the same license. Building it into something you sell without sharing alike takes a redistribution license. Its docs page has the schema.

Written by

  • Uman Shahzad

    Founder & CEO

    IP intelligence data expert for over 8 years, former lead engineer at IPinfo, Uman has pioneered many systems and practices used by IP data companies to operate at scale, provide high-quality data and offer the best developer experiences.

Get new posts by email

Or follow along in a feed reader.

RSS feed

Put this data to work.

Everything these posts report on comes from the databases we license, and you can test them first.

00 · Evaluate

Test the real build first.

An evaluation license puts a full current build in your hands, with no sampling, so you can measure it against your own traffic before anyone talks about terms.

01 · License

Then license what you use.

Standard, for detection and decisions inside your own product and operations.
Redistribution, when the data ships onward inside what you sell, priced by scope rather than by seat.
Annual terms, a named contact, and monthly, quarterly or yearly payment.