Skip to content
InternetData
Open

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.

asnnamecountryregistrydomaintypenum_ipsrpki_valid
3Massachusetts Institute of TechnologyUSarinmit.edueducation18362880
3320Deutsche Telekom AGDEripetelekom.comisp34157312485
13335Cloudflare, Inc.USarincloudflare.comhosting13859845274
17676SoftBank Corp.JPapnicsoftbank.jpisp38445056417
24940Hetzner Online GmbHDEripehetzner.comhosting323712067
ID
asn_v1
Entries
123,680
Refresh
Daily
CSVGZ
2.92 MB

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()
Streams the current build to a file, which lands only once the whole transfer has arrived, so a failed one never leaves a truncated file behind.
downloadUrl()
The time-limited link the API redirects to, for your own downloader, a job runner or a CDN pull.
downloadBytes()
The build in memory, for a small database or a pipeline that never touches a filesystem.
metadata()
Row count, file sizes and when the build last updated. Poll it and fetch only when a new one has landed.
checksums()
The md5, sha1, sha256 and sha512 digests of one file, to verify it once it lands.
import os
from internetdata import InternetData
client = InternetData(os.environ["INTERNETDATA_API_KEY"])
# what is in today's build, without moving the file
meta = 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"])
load.pypip install internetdata
Also available for .NET, Ruby, Rust, Swift, Erlang, Perl and Zig. See all on GitHub →

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.

Free with an account
Sign up, then download it from the console, or with your API key from the API or any official client.
Checksums published per file: md5, sha1, sha256 and sha512.
The ID fixes the schema, so a new build never changes the columns your parser reads.

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.

On this page

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.

00 · Unlimited

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.

curl https://api.internetdata.io/8.8.8.8
{
"ip": "8.8.8.8",
"is_tor": false,
"is_anycast": true,
"is_dns_resolver": true,
"location": {
"country": "US", ...
},
"asn": { "asn": 15169, ... },
"hostname": "dns.google"
}
01 · Every field

All of the data on a paid plan.

VPN, proxy, hosting and CDN flags, each naming the operator.
Location to the city, with coordinates and an accuracy radius.
WHOIS records, the whole abuse contact and the services an address runs.
Up to 1,000 addresses, ASes and domains in one request.

A free API key answers every field for its first 100 lookups each day, with no card.