{"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,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","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},"links":{"run":"https://pullrow.dev/v1/apis/api_f7afe2ccb71d87fc9c6b1635/run","openapi":"https://pullrow.dev/v1/apis/api_f7afe2ccb71d87fc9c6b1635/openapi.json","contract":"https://pullrow.dev/v1/apis/api_f7afe2ccb71d87fc9c6b1635/contract.json","page":"https://pullrow.dev/catalog/bgp-looking-glass"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Data from RIPEstat by the RIPE NCC, built from its RIS route collectors. Credit RIPEstat (RIPE NCC) when you show or publish results; the RIPE NCC provides this data for network analysis, monitoring, debugging and research.","This is the RIS view only: about 23 collectors and the networks that peer with them (1.1.1.0/24 showed 365 routes from 23 collectors). Other parts of the internet, and routes not confirmed in the last 24 hours, are not shown.","A prefix must be routed exactly as written: a block that is announced only as larger or smaller pieces returns no rows. An IP address returns the routes of the most specific routed block that holds it. AS numbers are not accepted.","Routes are near real time, usually seconds to minutes behind the collectors, so a change made a moment ago may not show yet.","peer_asn is the first AS in the path. peer_location is filled only for peers of the multihop collectors RRC00, RRC24 and RRC25, and only when RIPEstat knows it.","community_descriptions holds the meanings RIPEstat knows for some networks' communities; most communities have none.","Up to 50 entries and 5,000 routes per run. A collector name that does not exist, or a location word no collector has, simply returns no rows."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"resource","label":"Resource","description":"The entry this row answers, as it was asked, such as 1.1.1.0/24 or 1.1.1.1.","group":"Basics","shown":true,"written":false},{"name":"prefix","label":"Prefix","description":"The routed IP block the route is for, such as 1.1.1.0/24.","group":"Basics","shown":true,"written":false},{"name":"collector","label":"Collector","description":"The RIS route collector that reported the route, such as RRC01.","group":"Basics","shown":true,"written":false},{"name":"collector_location","label":"Collector location","description":"Where the collector is, such as London, GB.","group":"Location","shown":true,"written":false},{"name":"collector_country","label":"Collector country","description":"Two-letter country code of the collector's location, such as GB.","group":"Location","shown":true,"written":false},{"name":"peer_ip","label":"Peer ip","description":"IP address of the BGP peer that sent the route to the collector.","group":"Basics","shown":true,"written":false},{"name":"peer_asn","label":"Peer asn","description":"AS number of that peer: the first AS in the path.","group":"Basics","shown":true,"written":false},{"name":"peer_location","label":"Peer location","description":"Where the peer is, for peers of the multihop collectors, such as Lome, TG.","group":"Location","shown":true,"written":false},{"name":"as_path","label":"As path","description":"The AS path as the peer sees it, from the peer to the origin, such as 3257 13335.","group":"Basics","shown":true,"written":false},{"name":"as_path_length","label":"As path length","description":"Number of AS numbers in the path, prepending included.","group":"Basics","shown":true,"written":false},{"name":"upstream_asn","label":"Upstream asn","description":"The AS right before the origin in the path (prepending skipped): the origin's neighbour on this path.","group":"Basics","shown":true,"written":false},{"name":"origin_asn","label":"Origin asn","description":"The AS number that originates the route, such as 13335.","group":"Basics","shown":true,"written":false},{"name":"bgp_origin","label":"Bgp origin","description":"The route's BGP origin attribute: IGP, EGP or INCOMPLETE.","group":"Basics","shown":true,"written":false},{"name":"communities","label":"Communities","description":"Standard BGP communities on the route, such as 3257:4000.","group":"Basics","shown":true,"written":false},{"name":"large_communities","label":"Large communities","description":"Large BGP communities on the route, such as 13335:10000021:0.","group":"Basics","shown":true,"written":false},{"name":"extended_communities","label":"Extended communities","description":"Extended BGP communities on the route.","group":"Basics","shown":true,"written":false},{"name":"community_descriptions","label":"Community descriptions","description":"Known meanings of the route's communities, each as the community and its meaning, such as 3257:4000 GTT customer route.","group":"Basics","shown":true,"written":false},{"name":"next_hop","label":"Next hop","description":"The next hop address the peer gives for the route.","group":"Basics","shown":true,"written":false},{"name":"last_updated_at","label":"Last updated","description":"When this peer's route last changed (UTC).","group":"Dates","shown":true,"written":false},{"name":"last_confirmed_at","label":"Last confirmed","description":"When the collector last confirmed the route (UTC).","group":"Dates","shown":true,"written":false}],"inputs":[{"name":"resources","label":"Resources","help":"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","written":false},{"name":"collectors","label":"Collectors","help":"Only these RIS route collectors, such as RRC00 (Amsterdam), RRC01 (London) or RRC11 (New York). All collectors when empty.","example":"RRC01, RRC11","written":false},{"name":"locations","label":"Locations","help":"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","written":false}]}},"incidents":[]}