{"api":{"id":"api_f7afe2ccb71d87fc9c6b1635","slug":"bgp-looking-glass","name":"BGP Looking Glass API","description":"The routes the RIPE NCC's RIS route collectors see right now for an IP block, from RIPEstat's looking glass: one row per collector and BGP peer with the AS path, peer and origin AS, communities and their known meanings, next hop and when the route last changed.","kind":"ready_made","visibility":"public","domain":"stat.ripe.net","source_url":"https://stat.ripe.net/docs/data-api/api-endpoints/looking-glass","category":"developer","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":20,"created_at":"2026-12-06T03:57:27.609Z","updated_at":"2026-12-06T03:57:27.609Z","runnable":true},"version":"1.0","contract_hash":"466ab5f50fd871595a4a4dabfed45d4cacc38cfd1d085b8cfbee2ee4ac1c3fb3","fields":[{"name":"resource","type":"string","description":"The entry this row answers, as it was asked, such as 1.1.1.0/24 or 1.1.1.1.","required":true,"coverage":1,"example":"1.1.1.0/24"},{"name":"prefix","type":"string","description":"The routed IP block the route is for, such as 1.1.1.0/24.","required":true,"coverage":1,"example":"1.1.1.0/24"},{"name":"collector","type":"string","description":"The RIS route collector that reported the route, such as RRC01.","required":true,"coverage":1,"example":"RRC00"},{"name":"collector_location","type":"string","description":"Where the collector is, such as London, GB.","required":false,"coverage":1,"example":"Amsterdam, NL"},{"name":"collector_country","type":"string","description":"Two-letter country code of the collector's location, such as GB.","required":false,"coverage":1,"example":"NL"},{"name":"peer_ip","type":"string","description":"IP address of the BGP peer that sent the route to the collector.","required":true,"coverage":1,"example":"154.11.12.212"},{"name":"peer_asn","type":"integer","description":"AS number of that peer: the first AS in the path.","required":false,"coverage":1,"example":852},{"name":"peer_location","type":"string","description":"Where the peer is, for peers of the multihop collectors, such as Lome, TG.","required":false,"coverage":1,"example":"Edmonton, CA"},{"name":"as_path","type":"string","description":"The AS path as the peer sees it, from the peer to the origin, such as 3257 13335.","required":false,"coverage":1,"example":"852 13335"},{"name":"as_path_length","type":"integer","description":"Number of AS numbers in the path, prepending included.","required":false,"coverage":1,"example":2},{"name":"upstream_asn","type":"integer","description":"The AS right before the origin in the path (prepending skipped): the origin's neighbour on this path.","required":false,"coverage":1,"example":852},{"name":"origin_asn","type":"integer","description":"The AS number that originates the route, such as 13335.","required":false,"coverage":1,"example":13335},{"name":"bgp_origin","type":"string","description":"The route's BGP origin attribute: IGP, EGP or INCOMPLETE.","required":false,"coverage":1,"example":"IGP"},{"name":"communities","type":"array","description":"Standard BGP communities on the route, such as 3257:4000.","required":false,"coverage":0.4,"example":["1403:1050"]},{"name":"large_communities","type":"array","description":"Large BGP communities on the route, such as 13335:10000021:0.","required":false,"coverage":0.4,"example":["13335:10000020:0"]},{"name":"extended_communities","type":"array","description":"Extended BGP communities on the route.","required":false,"coverage":0,"example":null},{"name":"community_descriptions","type":"array","description":"Known meanings of the route's communities, each as the community and its meaning, such as 3257:4000 GTT customer route.","required":false,"coverage":0.2,"example":["3356:3 North America","3356:123 Customer route"]},{"name":"next_hop","type":"string","description":"The next hop address the peer gives for the route.","required":false,"coverage":1,"example":"154.11.12.212"},{"name":"last_updated_at","type":"datetime","description":"When this peer's route last changed (UTC).","required":false,"coverage":1,"example":"2026-12-02T19:26:02.350Z"},{"name":"last_confirmed_at","type":"datetime","description":"When the collector last confirmed the route (UTC).","required":false,"coverage":1,"example":"2026-12-06T03:24:38.140Z"}],"inputs":[{"name":"resources","type":"array","description":"IP prefixes or IP addresses to look up, such as 1.1.1.0/24 or 1.1.1.1. Up to 50 per run. AS numbers are not accepted.","example":["1.1.1.0/24"],"required":true},{"name":"collectors","type":"array","description":"Only these RIS route collectors, such as RRC00 (Amsterdam), RRC01 (London) or RRC11 (New York). All collectors when empty.","example":["RRC01","RRC11"]},{"name":"locations","type":"array","description":"Only routes whose collector or peer location contains one of these words, such as Amsterdam, US or Tokyo. All locations when empty.","example":["Amsterdam","US"]}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"as_path":{"description":"The AS path as the peer sees it, from the peer to the origin, such as 3257 13335.","type":"string"},"as_path_length":{"description":"Number of AS numbers in the path, prepending included.","type":"integer"},"bgp_origin":{"description":"The route's BGP origin attribute: IGP, EGP or INCOMPLETE.","type":"string"},"collector":{"description":"The RIS route collector that reported the route, such as RRC01.","type":"string"},"collector_country":{"description":"Two-letter country code of the collector's location, such as GB.","type":"string"},"collector_location":{"description":"Where the collector is, such as London, GB.","type":"string"},"communities":{"description":"Standard BGP communities on the route, such as 3257:4000.","type":"array"},"community_descriptions":{"description":"Known meanings of the route's communities, each as the community and its meaning, such as 3257:4000 GTT customer route.","type":"array"},"extended_communities":{"description":"Extended BGP communities on the route.","type":"array"},"large_communities":{"description":"Large BGP communities on the route, such as 13335:10000021:0.","type":"array"},"last_confirmed_at":{"description":"When the collector last confirmed the route (UTC).","format":"date-time","type":"string"},"last_updated_at":{"description":"When this peer's route last changed (UTC).","format":"date-time","type":"string"},"next_hop":{"description":"The next hop address the peer gives for the route.","type":"string"},"origin_asn":{"description":"The AS number that originates the route, such as 13335.","type":"integer"},"peer_asn":{"description":"AS number of that peer: the first AS in the path.","type":"integer"},"peer_ip":{"description":"IP address of the BGP peer that sent the route to the collector.","type":"string"},"peer_location":{"description":"Where the peer is, for peers of the multihop collectors, such as Lome, TG.","type":"string"},"prefix":{"description":"The routed IP block the route is for, such as 1.1.1.0/24.","type":"string"},"resource":{"description":"The entry this row answers, as it was asked, such as 1.1.1.0/24 or 1.1.1.1.","type":"string"},"upstream_asn":{"description":"The AS right before the origin in the path (prepending skipped): the origin's neighbour on this path.","type":"integer"}},"required":["resource","prefix","collector","peer_ip"],"title":"BGP Looking Glass API","type":"object"},"samples":[{"resource":"1.1.1.0/24","prefix":"1.1.1.0/24","collector":"RRC00","collector_location":"Amsterdam, NL","collector_country":"NL","peer_ip":"154.11.12.212","peer_asn":852,"peer_location":"Edmonton, CA","as_path":"852 13335","as_path_length":2,"upstream_asn":852,"origin_asn":13335,"bgp_origin":"IGP","communities":[],"large_communities":[],"extended_communities":[],"community_descriptions":[],"next_hop":"154.11.12.212","last_updated_at":"2026-12-02T19:26:02.350Z","last_confirmed_at":"2026-12-06T03:24:38.140Z"},{"resource":"1.1.1.0/24","prefix":"1.1.1.0/24","collector":"RRC00","collector_location":"Amsterdam, NL","collector_country":"NL","peer_ip":"198.58.198.252","peer_asn":1403,"peer_location":"Longueuil, CA","as_path":"1403 13335","as_path_length":2,"upstream_asn":1403,"origin_asn":13335,"bgp_origin":"IGP","communities":["1403:1050"],"large_communities":[],"extended_communities":[],"community_descriptions":[],"next_hop":"198.58.198.252","last_updated_at":"2026-12-02T19:25:51.250Z","last_confirmed_at":"2026-12-06T03:24:37.140Z"},{"resource":"1.1.1.0/24","prefix":"1.1.1.0/24","collector":"RRC00","collector_location":"Amsterdam, NL","collector_country":"NL","peer_ip":"193.0.0.56","peer_asn":3333,"peer_location":"Amsterdam, NL","as_path":"3333 13335","as_path_length":2,"upstream_asn":3333,"origin_asn":13335,"bgp_origin":"IGP","communities":[],"large_communities":["13335:10000020:0"],"extended_communities":[],"community_descriptions":[],"next_hop":"193.0.0.56","last_updated_at":"2026-12-02T19:24:37.310Z","last_confirmed_at":"2026-12-06T03:24:38.150Z"}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"as_path":1,"as_path_length":1,"bgp_origin":1,"collector":1,"collector_country":1,"collector_location":1,"communities":0.33,"community_descriptions":0,"extended_communities":0,"large_communities":0.33,"last_confirmed_at":1,"last_updated_at":1,"next_hop":1,"origin_asn":1,"peer_asn":1,"peer_ip":1,"peer_location":1,"prefix":1,"resource":1,"upstream_asn":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:57:27.609Z","activated_at":"2026-12-06T03:57:27.609Z","active":true,"contract_hash":"466ab5f50fd871595a4a4dabfed45d4cacc38cfd1d085b8cfbee2ee4ac1c3fb3","fields_count":20}]}