For an autonomous system: how many upstream and downstream
security_asn_peers_upstreamFor an autonomous system (e.g. AS13335): how many upstream (transit) and downstream neighbours RIPEstat sees in BGP, the top upstreams ranked by 'power' with their IPv4 and IPv6 peer counts, and the top downstreams. Built from RIS route collector paths, so it is an observed view, not the contract. Related tools on this server, for a different need: security_cymru_asn_lookup when you need to map an IPv4 address to its origin AS number, the BGP; security_ip_geolocation_asn when you need IPv4 or IPv6 address → covering BGP prefix, origin. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"asn": "<asn>"
},
"name": "security_asn_peers_upstream"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asn | Yes | AS number such as AS13335 or 13335 (required) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asn | No | ||
| counts | No | ||
| source | No | ||
| checkedAt | No | ||
| upstreams | No | ||
| downstreams | No |