Bgp Route Lookup
bgp_route_lookupRetrieve current BGP routes for any IP prefix from global tables, returning origin AS, AS path, communities, and peer data. Filter by RIPE RIS collector for regional perspective.
Instructions
Look up current BGP routes for a prefix from global routing tables.
Returns BGP route entries including origin AS, AS path, communities, and peer information. Optionally filter by a specific RIPE RIS collector to get a regional perspective (e.g. RRC06 for Tokyo, RRC15 for Sao Paulo).
Source order: RIPEstat looking glass, then Cloudflare Radar (if a
token is configured), then bgproutes.io (if a key is configured), then
the bgp.tools full table only if RIPEstat itself failed. At most 20
routes are returned; total reports how many were observed. Use
ris_collectors first to pick a collector ID for a regional view.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | Yes | IP prefix in CIDR notation (e.g. '1.1.1.0/24') | |
| collector | No | RIPE RIS collector ID to filter by (e.g. 'RRC00', 'RRC06'). Use ris_collectors to see available collectors and their locations. None queries all collectors. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Set when an upstream lookup failed; other fields may be empty or partial. | |
| total | Yes | Total routes observed, even if the list is truncated | |
| prefix | Yes | Prefix that was queried | |
| routes | Yes | Observed routes (capped; see total) | |
| source | Yes | Which data source produced this result |