Query ASN and prefix ownership data via bgp.tools (BGPView's replacement)

domain: bgp.tools · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Note that BGPView (bgpview.io) shut down in November 2025 — do not build against it; use bgp.tools or RIPEstat instead for public BGP/ASN data.
  2. For single lookups, query bgp.tools' WHOIS service on TCP port 43, e.g. a -v AS<number> or IP/MAC query, which returns pipe-delimited AS/prefix/country/registry/allocation-date fields.
  3. For bulk lookups, open a WHOIS session, send begin, then a list of queries, then end, to batch multiple lookups in one TCP session.
  4. For full-table analysis, download https://bgp.tools/table.txt or table.jsonl (JSON-lines with CIDR/ASN/Hits fields) and filter client-side, plus https://bgp.tools/asns.csv for ASN-name mapping.
  5. Set a specific, contactable User-Agent string (e.g. yourcompany bgp.tools - contact@yourcompany.com) on every request — generic or default User-Agents get blocked since there's no other way to reach you.

Known gotchas

Related routes

Look up ASN and prefix routing data via the RIPEstat Data API
ripe.net · 5 steps · unrated
Look up ASN, network, and geolocation data for an IP address via the ipinfo.io API
ipinfo.io · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans