Skip to content

BGP Update Activity


This endpoint returns the number of BGP updates seen over time. Results are aggregated in time intervals, the lenght of which is determined by the input parameters.

GET /data/bgp-update-activity/data.json?resource=140.78/16&starttime=2020-12-12T12:00
Try it

Parameters

KeyValueInfoRequired
resourceprefix, IP range or ASdefines the resource the query is carried out onYES
starttimeISO8601 or Unix timestampDefines the starttime for the queryOnly when specific endtime is set
endtimeISO8601 or Unix timestampDefines the endtime for the queryNO - if not set it falls back to "now"
max_samplesPositive integer, or 0 to disableBGP events are aggregated in to at most this number of sampling periodsNO - defaults to 50
min_sampling_periodPositive number of secondsThe smallest possible time period for each interval. It will be automatically increased to satisfy 'max_samples'NO - defaults to 1 minute
num_hoursnumberNumber of hours to look back. If no 'starttime' and 'endtime' are provided this parameter will be used to calculate 'starttime' from the deafult 'endtime' (which is 'now').NO - defaults to 14 * 24 hours
hide_empty_samplesbooleanIf true (default) then samples with 0 updates will not be returned - they are simply implied by the returned query_startendtime/query_endtime.NO - defaults to true (may be changed in a later release)

Data Output

KeyInfo
updatesList with BGP update activity samples:
starttimeThe beginning of each sample
announcementsThe number of announcements in this sample
withdrawalsThe number of withdrawals in this sample
Note: this is currently always 'null' when querying an ASN
sampling_periodThe duration in seconds of each sample interval
sampling_period_humanA human-readable version of the sampling period.
query_starttimeThe starttime the query covers
query_endtimeThe endtime the query covers
resourceDefines the resource used for the query
resource_typeThe detected type of the queried resource ("asn", 4 or 6)
max_samplesThe maximum number of samples returned

Code Examples

bash
curl --location --request GET "https://stat.ripe.net/data/bgp-update-activity/data.json?resource=140.78/16"
js
const requestOptions = {
	method: 'GET',
};

fetch("https://stat.ripe.net/data/bgp-update-activity/data.json?resource=140.78/16", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Available versions for this endpoint:

1.5 (current)