Every AS number, free with an account.
Each allocated AS number, and each other one announced in global BGP, with its holder, country, registry, allocation date, domain, network type, the space it announces and its RPKI counts.
In the lookup API: its name, country, registry, allocation date and domain on every plan, and its type, num_ips and RPKI counts on a paid plan.
Look up one address free with the ASN lookup.
Real rows, with what each column means.
See documentation →The schema and metadata are in the docs. It is published as CSVGZ. For each AS number's upstreams, peers, downstreams and customer cone, see ASN Extended.
| asn | name | country | registry | domain | type | num_ips | rpki_valid |
|---|---|---|---|---|---|---|---|
| 3 | Massachusetts Institute of Technology | US | arin | mit.edu | education | 1836288 | 0 |
| 3320 | Deutsche Telekom AG | DE | ripe | telekom.com | isp | 34157312 | 485 |
| 13335 | Cloudflare, Inc. | US | arin | cloudflare.com | hosting | 1385984 | 5274 |
| 17676 | SoftBank Corp. | JP | apnic | softbank.jp | isp | 38445056 | 417 |
| 24940 | Hetzner Online GmbH | DE | ripe | hetzner.com | hosting | 3237120 | 67 |
Download it from your code in one call.
Database API reference →Every official client fetches the current ASN 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("asn_v1")client.database.download("asn_v1", "csvgz", "./asn_v1.csv.gz")sums = client.database.checksums("asn_v1", "csvgz")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 ASN against the traffic, logs and routing data they already hold, inside their own infrastructure.
Network attribution
Name the organization behind an AS number, and the domain it goes by.
Classification
Tell hosting, ISP, education, government and business networks apart.
Routing hygiene
See how much of a network's announced space RPKI covers.
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 fifteen web frameworks. Each answers private addresses without a request, caches what it looks up and splits big batches for you.
Common questions
What does a row tell us?
One AS number, allocated by a registry or announced in global BGP: its holder, country, registry and allocation date, the holder's own domain, the kind of network it runs, the IPv4 space and prefixes it announces, and how its announcements fare under RPKI.
What do the type values mean?
isp, hosting, education, government or business: the kind of network the AS runs. business is also the default when no signal says otherwise.
What do the RPKI counts mean?
rpki_valid counts announcements a ROA authorizes, rpki_invalid those ROAs contradict with a wrong origin or a longer prefix than allowed, and rpki_not_found those no ROA covers.
Does num_ips include IPv6?
No. It counts the IPv4 addresses the AS originates in global BGP. IPv6 is counted in prefixes, as num_prefixes6.
What does ASN Extended add?
Fifteen columns more: each AS number's upstreams, peers and downstreams, its customer cone, its rank, its transit degree, whether it is Tier 1, and its siblings.
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. It's keyed by AS number, so there is no address lookup to build.
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 AS lookup answers its name, country, registry, allocation date and domain on every plan, free included, and its type, num_ips and RPKI counts on a paid plan.
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_tor": false,"is_anycast": true,"is_dns_resolver": true,"location": {"country": "US", ...},"asn": { "asn": 15169, ... },"hostname": "dns.google"}
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.