Bgp Historical Lookup
bgp_historical_lookupRetrieve historical BGP routes from RIPE RIS MRT archives for any prefix, showing routing table snapshots or announcements and withdrawals within a time window.
Instructions
Look up historical BGP routes for a prefix from MRT archive data.
Downloads and parses MRT files from RIPE RIS to show what BGP routes existed for a prefix at a specific point in time (rib) or what route changes occurred during a time window (update).
For RIB lookups: shows all routes for the prefix at that snapshot. For update lookups: shows announcements and withdrawals during the window.
Note: RIB files are ~400MB and take 30-60s to download and parse. Update files are ~3MB and parse in seconds. Prefer 'update' for narrow time windows and 'rib' for full routing state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | Yes | IP prefix in CIDR notation (e.g. '1.1.1.0/24') | |
| time_end | Yes | End time in ISO 8601 format | |
| collector | No | RIPE RIS collector ID (e.g. 'rrc00'). Defaults to the configured collector (rrc00). | |
| data_type | No | 'rib' for routing table snapshot or 'update' for BGP changes | rib |
| time_start | Yes | Start time in ISO 8601 format (e.g. '2026-03-22T00:00:00') | |
| max_results | No | Maximum entries to return (default 50) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Set when an upstream lookup failed; other fields may be empty or partial. | |
| total | Yes | Number of entries returned | |
| prefix | Yes | Prefix that was queried | |
| source | Yes | Which data source produced this result | |
| entries | Yes | Matching records (capped by max_results) | |
| mrt_file | No | MRT file URL that was parsed, or a file count | |
| time_end | Yes | End of the queried window | |
| collector | Yes | Collector that was queried | |
| data_type | Yes | 'rib' or 'update' | |
| time_start | Yes | Start of the queried window |