5 RIRs LIVE · 80,514 ASNs
AS13335 (Cloudflare) AS15169 (Google) AS3356 (Lumen Tier-1) AS6939 (Hurricane Electric) AS701 (Verizon Business) AS1299 (Arelion / Telia)

Peering relationships are compiled directly from the 5 RIRs (AFRINIC, APNIC, ARIN, LACNIC, RIPE NCC) and RIPE NCC's Routing Information Service (RIS) 26 global multi-hop BGP route collectors (rrc00–rrc26). Full bidirectional peering links are compiled into the SQLite database file (bgpstreams.db).

Total Peering Edges507,252
BGP Collectors26 (RIPE RIS)
RIR Data Sources5 Official
ASN Organization Country RIR Peering Links
AS6939Hurricane Electric LLCUSARIN10,400+
AS13335Cloudflare, Inc.USARIN950+
AS15169Google LLCUSARIN850+
AS8075Microsoft CorporationUSARIN750+
AS16509Amazon.com, Inc.USARIN600+

Ranked by BGP customer cone size (downstream routing reachability). Networks without transit providers operate as settlement-free transit backbones (Tier-1).

loading transit metrics...

Download the complete, portable SQLite database file containing all active ASNs, upstreams, and peering links. Compiled daily strictly from the 5 RIRs.

bgpstreams.db
Standard SQLite 3 Database • Indexed • 64 MB
Download .db

Ready for direct inspection with sqlite3, DuckDB, Python, Go, Rust, or any database GUI. Includes fully indexed asns, upstreams, peers, and metadata tables.

bgpstreams.db.gz
Gzip Compressed SQLite 3 Database • 25 MB
Download .db.gz

High-compression archive for automated cron pipelines, remote servers, and low-bandwidth environments. Decompress using gunzip bgpstreams.db.gz.

cURL / Wget
# Download uncompressed SQLite database curl -LO https://bgpc.salty.cool/bgpstreams.db # Or download gzipped archive curl -LO https://bgpc.salty.cool/bgpstreams.db.gz gunzip bgpstreams.db.gz
Python SQLite3
import sqlite3 conn = sqlite3.connect("bgpstreams.db") cur = conn.cursor() # 1. Query Upstream Transits for Cloudflare (AS13335) cur.execute(""" SELECT u.upstream_asn, a.org, a.country, a.is_tier1 FROM upstreams u JOIN asns a ON u.upstream_asn = a.asn WHERE u.asn = 13335 """) print("Upstreams:", cur.fetchall()) # 2. Query BGP Peering links for Google (AS15169) cur.execute(""" SELECT p.peer_asn, a.org, a.country FROM peers p JOIN asns a ON p.peer_asn = a.asn WHERE p.asn = 15169 LIMIT 10 """) print("Peers:", cur.fetchall())
Single ASNGET /api/asn/:asn
Search QueryGET /api/search?q=query
Global StatsGET /api/stats
Database FileGET /bgpstreams.db
cURL
$ curl -s https://bgpc.salty.cool/api/asn/13335 { "asn": 13335, "name": "CLOUDFLARENET", "org": "Cloudflare, Inc.", "country": "US", "rir": "ARIN", "is_tier1": false, "total_upstreams": 107, "total_peers": 957, "customer_cone": 1021, "upstreams": [ { "asn": 174, "name": "COGENT", "org": "Cogent Communications", "country": "US", "is_tier1": true }, { "asn": 1299, "name": "ARELION", "org": "Arelion Sweden", "country": "SE", "is_tier1": true } ], "peers": [ { "asn": 15169, "name": "GOOGLE", "org": "Google LLC", "country": "US", "is_tier1": false } ], "database_url": "https://bgpc.salty.cool/bgpstreams.db" }