Skip to content

Routing History


This endpoint shows the history of announcements for prefixes, including the origin ASN and the first hop.

The data comes from the RIS route collectors.

GET /data/routing-history/data.json?resource=AS3333
Try it

Parameters

KeyValueInfoRequired
resourceprefix or ASNThe resource to query. This is a prefix (v4/v6), IP address or AS number.yes
max_rowsintegerThe maximum number of routes to return. This is a soft limit: all recorded routes for each origin ASN are returned, but when the row limit is reached no more origins will be returned.no (default: 3000)
include_first_hopbooleanInclude the first hop ASN in the route, instead of just the origin ASN.no (default: false)
normalise_visibilitybooleanAdd a visibility field to each timeline indicating the visibility of the route (according to RIS) at that point in time. The visibility is computed as the peers_seeing divided by the number of RIS full table peers at the time.no (default: false)
min_peersintegerMinimum number of full-feed RIS peers seeing the route for the segment to be included in the results. Excludes low-visibility/localized announcements.no (default: 10)
starttimeISO8601 or Unix timestampDefines the starttime for the queryno
endtimeISO8601 or Unix timestampDefines the endtime for the queryno (default: latest time there is BGP data available)

Data Output

Key Info
by_origin A list containing routes grouped by origin.
originThe ASN (or AS pair including first hop) of the announcing prefix.
prefixesA list of prefixes and timelines.
prefixThe IPv4 or IPv6 prefix in standard notation.
timelinesTime periods during which this origin announced this prefix.
starttimeThe start time of the period.
endtimeThe end time of the period.
full_peers_seeingThe number of RIS full-feed peers that saw this route.
visibility (if normalise_visibility=true)Visibility of the route according to RIS. In case of unreliable or missing peer information, this value will be "-1".
query_starttime, query_endtime The start and end time for which the data is valid.
latest_max_ff_peers This gives the number of maximum full-table peers seen as per IP version in RIS.

Code Examples

bash
curl --location --request GET "https://stat.ripe.net/data/routing-history/data.json?resource=3333"
js
const requestOptions = {
	method: 'GET',
};

fetch("https://stat.ripe.net/data/routing-history/data.json?resource=3333", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Available versions for this endpoint:

2.3 (current)