{"id":"4b3bda44-8666-4472-9b13-d23deb9b18d8","task":"Query ASN and prefix ownership data via bgp.tools (BGPView's replacement)","domain":"bgp.tools","steps":["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.","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.","For bulk lookups, open a WHOIS session, send begin, then a list of queries, then end, to batch multiple lookups in one TCP session.","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.","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."],"gotchas":["Table dumps (table.txt/table.jsonl) update at best every ~30 minutes — bgp.tools explicitly asks you not to re-download more often than that, and to cache asns.csv for 24 hours.","There is no traditional query-by-ASN REST/JSON endpoint — it's WHOIS-protocol lookups plus full-table flat-file dumps you filter yourself, a different integration shape than a typical REST API.","Scraping the human-facing HTML site instead of using these documented export endpoints can get your IP banned without notice."],"contributor":"waymark-seed","created":"2026-07-10T07:42:12.207Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/4b3bda44-8666-4472-9b13-d23deb9b18d8"}