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.

Look up one address free with the ASN lookup.

asn_v1
  • AS3
    ASNMassachusetts Institute of TechnologyUS
  • AS3320
    ASNDeutsche Telekom AGDE
  • AS13335
    ASNCloudflare, Inc.US
  • AS17676
    ASNSoftBank Corp.JP
Entries
123,912
Refresh
Daily

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,912
Refresh
Daily
CSVGZ
2.93 MB

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 database 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.

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

Official clients in twelve languages.

All SDKs on GitHub β†’

Each wraps the database endpoints: list what you're licensed for, poll for a new build and follow the download redirect. Install commands are in the docs.

Trusted by

Data protection, ad tech, telecom and software companies on three continents.

  • Assured Data Protection
  • ASTRAD
  • TAMradar
  • Influentials
  • Ross-Tech
  • Solar Communications
  • Paraty.com
  • zepi

Common questions

Ten answers on ASN: what's in it, how often it's rebuilt and how to get it.

The data

5 questions

What does a row tell me?

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.

Updates and access

5 questions

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 it come 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 database 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 the Data 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.

00 Β· No key

Free lookups, no sign-up.

Paste it into a terminal. Any address answers with its country, network and hostname. ASNs and domains answer too.

curl https://api.internetdata.io/8.8.8.8
{
"ip": "8.8.8.8",
"is_bogon": false,
"is_tor": false,
"is_relay": false,
"is_anycast": true,
"hostname": "dns.google",
"location": {
"continent": "NA",
"continent_name": "North America",
"country": "US",
"country_name": "United States",
"timezone": "America/Los_Angeles",
"currency_code": "USD",
"currency_name": "Dollar",
"currency_symbol": "$",
"flag_emoji": "πŸ‡ΊπŸ‡Έ",
"flag_unicode": "U+1F1FA U+1F1F8"
},
"asn": {
"asn": 15169,
"name": "Google LLC",
"domain": "google.com",
"prefix": "8.8.8.0/24",
"country": "US",
"rpki_status": "valid"
},
"tor": {},
"relay": {}
}
01 Β· Every field

Every field on the Data plan.

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

A free API key answers every field on a daily allowance of lookups, with no card.