Skip to content

BGPlay


This endpoint represents the scenario of what occurred to the BGP routes of a resource over a period of time.
It includes data that defines the initial BGP state at the start time of the query, and all the BGP updates observed from then until the end time, as well as a description of all the AS nodes, and RIS BGP peers involved in the result.

GET /data/bgplay/data.json?resource=140.78/16&starttime=2020-12-21T07:00&endtime=2020-12-21T12:00
Try it

Parameters

KeyValueInfoRequired
resourcePrefix, IP address, AS or a list of valid comma-separated resourcesDefines the resource that the query is performed for. If a list of resources is supplied, the results will be combined for all of them.YES
starttimeISO8601 or Unix timestampDefines the starttime for the queryNO - default: (endtime - 8h)
endtimeISO8601 or Unix timestampDefines the endtime for the queryNO - default: latest time there is BGP data available
rrcsSingle-value or comma-separated values of RRC numbers (4 or 0,4,12,15)The list of Route Collectors (RRCs) to get the results from.NO - default behaviour: all RRCs
unix_timestampsTRUE or FALSEIf TRUE, will format the timestamps in the result as Unix timestamp.NO - default: FALSE

Data Output

KeyInfo
initial_stateThe state of the BGP routes for this resource at the starttime. Formatted as defined in the "bgp_state" section of bgp-state.
eventsThe BGP updates observed for this resource during the query time interval. Formatted as defined in the "updates" section of bgp-updates.
nodesDescriptive information of all the ASes present in the AS paths of the BGP routes/updates.
as-number The AS number.
owner The name of the organisation estimated to hold this AS number.
targetsList of all the unique target prefixes present in the results.
sourcesDescriptive information of all the RIS collectors neighbouring peers through which the BGP routes/updates were observed.
id Id of the source peer, as referred to in the BGP entries found in the "initial_state" and "events" sections.
rrc The number of the RIS route collector with which this source is peering.
ip Peering IP address of this RIS neighbour.
as_number AS number of this RIS neighbour.
query_starttimeDefines the start of the time interval covered in the query.
query_endtimeDefines the end of the time interval covered in the query.
resourceDefines the resource used in the query.

Code Examples

bash
curl --location --request GET "https://stat.ripe.net/data/bgplay/data.json?resource=140.78/16&starttime=2020-12-21T07:00&endtime=2020-12-21T12:00"
js
const requestOptions = {
	method: 'GET',
};

fetch("https://stat.ripe.net/data/bgplay/data.json?resource=140.78/16&starttime=2020-12-21T07:00&endtime=2020-12-21T12:00", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Available versions for this endpoint:

1.2 (current)