Skip to content

BGP Updates


This endpoint returns the BGP updates observed for a resource over a certain period of time.

GET /data/bgp-updates/data.json?resource=140.78/16&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 - 48h)
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
updatesList of observed BGP updates, in chronological order of occurrence.
typeType of BGP update: "A"=Announcement, "W"=Withdrawal.
timestampTime (UTC) of the BGP update.
attrsAttributes of the BGP update (some fields depend on the update type).
target_prefixPrefix to which this BGP update refers to.
path (only on A update types)The AS path in this BGP announcement, formatted as a list of ASes (first element is the direct BGP neighbour, last element is the origin AS).
community (only on A update types)The list of communities in this BGP announcement.
source_idThe id of the route collector (rrc) peer through which this BGP update was observed. The format is "[rrc number]-[peer IP address]".
seqSequential integer ordering the received BGP events
nr_updatesThe number of BGP updates observed in this time period.
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/bgp-updates/data.json?resource=140.78/16&timestamp=2020-12-21T12:00"
js
const requestOptions = {
	method: 'GET',
};

fetch("https://stat.ripe.net/data/bgp-updates/data.json?resource=140.78/16&timestamp=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.1 (current)