{"api":{"id":"api_dd0f5a1e997dea41cfc301fc","slug":"bgp-asn-upstreams","name":"ASN Upstreams & Peers API","description":"The network neighbours of any ASN as seen in global internet routing (RIPEstat): one row per neighbour with its name, its side in routes, a plain upstream-or-peer or downstream label, how many routing paths show the link and the snapshot time.","kind":"ready_made","visibility":"public","domain":"stat.ripe.net","source_url":"https://stat.ripe.net/docs/data-api/api-endpoints/asn-neighbours","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":11,"created_at":"2026-12-06T03:33:09.184Z","updated_at":"2026-12-06T03:33:09.184Z","runnable":true},"version":"1.0","contract_hash":"92189d3f6c4a4b016fd7c67c08c656dc24ef00653ea935b93efa1c1e70d1418e","fields":[{"name":"asn","type":"integer","description":"The network number (ASN) you asked about, such as 577.","required":true,"coverage":1,"example":577},{"name":"asn_name","type":"string","description":"Registered name of that network, such as BACOM - Bell Canada.","required":false,"coverage":1,"example":"BACOM - Bell Canada"},{"name":"neighbour_asn","type":"integer","description":"Network number (ASN) of the neighbour.","required":true,"coverage":1,"example":1299},{"name":"neighbour_name","type":"string","description":"Registered name of the neighbour network, such as TWELVE99 Arelion Sweden AB.","required":false,"coverage":1,"example":"TWELVE99 Arelion Sweden AB"},{"name":"side","type":"string","description":"Where the neighbour sits in routes: left (toward the core), right (away from it) or uncertain.","required":false,"coverage":1,"example":"left"},{"name":"relationship","type":"string","description":"Plain label made from side: upstream_or_peer (left), downstream (right) or uncertain.","required":false,"coverage":1,"example":"upstream_or_peer"},{"name":"path_count","type":"integer","description":"Number of distinct routing paths that show this link (RIPEstat calls it power); higher means a busier link.","required":false,"coverage":1,"example":19332},{"name":"ipv4_routes_seen","type":"integer","description":"IPv4 routes that use this link, counted once for every RIS peer that sees them: a sign of how widely the link is used.","required":false,"coverage":1,"example":366496},{"name":"ipv6_routes_seen","type":"integer","description":"IPv6 routes that use this link, counted the same way.","required":false,"coverage":1,"example":6381},{"name":"neighbour_url","type":"url","description":"The neighbour network's page on RIPEstat.","required":false,"coverage":1,"example":"https://stat.ripe.net/resource/AS1299"},{"name":"snapshot_at","type":"datetime","description":"Time of the routing snapshot the link was seen in (UTC).","required":false,"coverage":1,"example":"2026-12-05T00:00:00.000Z"}],"inputs":[{"name":"asns","type":"array","description":"Network numbers (ASNs) to look up, written AS577 or 577. Up to 100 per run.","example":["AS577","13335"],"required":true},{"name":"date","type":"string","description":"Day to look at, as YYYY-MM-DD (such as 2026-12-01). Leave empty for the newest snapshot.","example":"2026-12-01"},{"name":"relationship","type":"string","description":"Which neighbours to return: all, upstream_or_peer (left side), downstream (right side) or uncertain.","default":"all","example":"all","enum":["all","upstream_or_peer","downstream","uncertain"]},{"name":"include_names","type":"boolean","description":"Add the registered name of every network. Turn it off for a faster run with numbers only.","default":true,"example":true}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"asn":{"description":"The network number (ASN) you asked about, such as 577.","type":"integer"},"asn_name":{"description":"Registered name of that network, such as BACOM - Bell Canada.","type":"string"},"ipv4_routes_seen":{"description":"IPv4 routes that use this link, counted once for every RIS peer that sees them: a sign of how widely the link is used.","type":"integer"},"ipv6_routes_seen":{"description":"IPv6 routes that use this link, counted the same way.","type":"integer"},"neighbour_asn":{"description":"Network number (ASN) of the neighbour.","type":"integer"},"neighbour_name":{"description":"Registered name of the neighbour network, such as TWELVE99 Arelion Sweden AB.","type":"string"},"neighbour_url":{"description":"The neighbour network's page on RIPEstat.","format":"uri","type":"string"},"path_count":{"description":"Number of distinct routing paths that show this link (RIPEstat calls it power); higher means a busier link.","type":"integer"},"relationship":{"description":"Plain label made from side: upstream_or_peer (left), downstream (right) or uncertain.","type":"string"},"side":{"description":"Where the neighbour sits in routes: left (toward the core), right (away from it) or uncertain.","type":"string"},"snapshot_at":{"description":"Time of the routing snapshot the link was seen in (UTC).","format":"date-time","type":"string"}},"required":["asn","neighbour_asn"],"title":"ASN Upstreams & Peers API","type":"object"},"samples":[{"asn":577,"asn_name":"BACOM - Bell Canada","neighbour_asn":1299,"neighbour_name":"TWELVE99 Arelion Sweden AB","side":"left","relationship":"upstream_or_peer","path_count":19332,"ipv4_routes_seen":366496,"ipv6_routes_seen":6381,"neighbour_url":"https://stat.ripe.net/resource/AS1299","snapshot_at":"2026-12-05T00:00:00.000Z"},{"asn":577,"asn_name":"BACOM - Bell Canada","neighbour_asn":6939,"neighbour_name":"HURRICANE - Hurricane Electric LLC","side":"left","relationship":"upstream_or_peer","path_count":13609,"ipv4_routes_seen":50465,"ipv6_routes_seen":49494,"neighbour_url":"https://stat.ripe.net/resource/AS6939","snapshot_at":"2026-12-05T00:00:00.000Z"},{"asn":577,"asn_name":"BACOM - Bell Canada","neighbour_asn":174,"neighbour_name":"COGENT-174 - Cogent Communications, LLC","side":"left","relationship":"upstream_or_peer","path_count":10830,"ipv4_routes_seen":168350,"ipv6_routes_seen":1985,"neighbour_url":"https://stat.ripe.net/resource/AS174","snapshot_at":"2026-12-05T00:00:00.000Z"}],"validation":{"checked_at":"2026-12-06T03:33:09.177Z","field_coverage":{"asn":1,"asn_name":1,"ipv4_routes_seen":1,"ipv6_routes_seen":1,"neighbour_asn":1,"neighbour_name":1,"neighbour_url":1,"path_count":1,"relationship":1,"side":1,"snapshot_at":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:33:09.184Z","activated_at":"2026-12-06T03:33:09.184Z","active":true,"contract_hash":"92189d3f6c4a4b016fd7c67c08c656dc24ef00653ea935b93efa1c1e70d1418e","fields_count":11}]}