Skip to content
Start here

Routes

Get Multi-Origin AS (MOAS) prefixes
radar.bgp.routes.moas(RouteMoasParams**kwargs) -> RouteMoasResponse
GET/radar/bgp/routes/moas
Get prefix-to-ASN mapping
radar.bgp.routes.pfx2as(RoutePfx2asParams**kwargs) -> RoutePfx2asResponse
GET/radar/bgp/routes/pfx2as
Get BGP routing table stats
radar.bgp.routes.stats(RouteStatsParams**kwargs) -> RouteStatsResponse
GET/radar/bgp/routes/stats
List ASes from global routing tables
radar.bgp.routes.ases(RouteAsesParams**kwargs) -> RouteAsesResponse
GET/radar/bgp/routes/ases
Get real-time BGP routes for a prefix
radar.bgp.routes.realtime(RouteRealtimeParams**kwargs) -> RouteRealtimeResponse
GET/radar/bgp/routes/realtime
ModelsExpand Collapse
class RouteMoasResponse:
meta: Meta
data_time: str
query_time: str
total_peers: int
moas: List[Moa]
origins: List[MoaOrigin]
origin: int
peer_count: int
rpki_validation: str
prefix: str
class RoutePfx2asResponse:
meta: Meta
data_time: str
query_time: str
total_peers: int
prefix_origins: List[PrefixOrigin]
origin: int
peer_count: int
prefix: str
rpki_validation: str
class RouteStatsResponse:
meta: Meta
data_time: str
query_time: str
total_peers: int
stats: Stats
distinct_origins: int
distinct_origins_ipv4: int
distinct_origins_ipv6: int
distinct_prefixes: int
distinct_prefixes_ipv4: int
distinct_prefixes_ipv6: int
routes_invalid: int
routes_invalid_ipv4: int
routes_invalid_ipv6: int
routes_total: int
routes_total_ipv4: int
routes_total_ipv6: int
routes_unknown: int
routes_unknown_ipv4: int
routes_unknown_ipv6: int
routes_valid: int
routes_valid_ipv4: int
routes_valid_ipv6: int
class RouteAsesResponse:
asns: List[ASN]
asn: int
cone_size: int

AS’s customer cone size.

country: str

Alpha-2 code for the AS’s registration country.

ipv4_count: int

Number of IPv4 addresses originated by the AS.

ipv6_count: str

Number of IPv6 addresses originated by the AS.

name: str

Name of the AS.

pfxs_count: int

Number of total IP prefixes originated by the AS.

rpki_invalid: int

Number of RPKI invalid prefixes originated by the AS.

rpki_unknown: int

Number of RPKI unknown prefixes originated by the AS.

rpki_valid: int

Number of RPKI valid prefixes originated by the AS.

meta: Meta
data_time: str

The timestamp of when the data is generated.

query_time: str

The timestamp of the query.

total_peers: int

Total number of route collector peers used to generate this data.

class RouteRealtimeResponse:
meta: Meta
asn_info: List[MetaASNInfo]
as_name: str

Name of the autonomous system.

asn: int

AS number.

country_code: str

Alpha-2 code for the AS’s registration country.

org_id: str

Organization ID.

org_name: str

Organization name.

collectors: List[MetaCollector]
collector: str

Public route collector ID.

latest_realtime_ts: str

Latest real-time stream timestamp for this collector.

latest_rib_ts: str

Latest RIB dump MRT file timestamp for this collector.

latest_updates_ts: str

Latest BGP updates MRT file timestamp for this collector.

peers_count: int

Total number of collector peers used from this collector.

peers_v4_count: int

Total number of collector peers used from this collector for IPv4 prefixes.

peers_v6_count: int

Total number of collector peers used from this collector for IPv6 prefixes.

data_time: str

The most recent data timestamp for from the real-time sources.

prefix_origins: List[MetaPrefixOrigin]
origin: int

Origin ASN.

prefix: str

IP prefix of this query.

rpki_validation: str

Prefix-origin RPKI validation: valid, invalid, unknown.

total_peers: int

Total number of peers.

total_visible: int

Total number of peers seeing this prefix.

visibility: float

Ratio of peers seeing this prefix to total number of peers.

query_time: str

The timestamp of this query.

routes: List[Route]
as_path: List[int]

AS-level path for this route, from collector to origin.

collector: str

Public collector ID for this route.

communities: List[str]

BGP community values.

prefix: str

IP prefix of this query.

timestamp: str

Latest timestamp of change for this route.