Skip to content

ASN Neighbours History

This endpoint returns information about neigbouring ASNs of a queried ASN extended with history.

GET /data/asn-neighbours-history/data.json?resource=AS1205
Try it

Parameters

KeyValueInfoRequired
resourceASN for this queryThis is the ASN the neighbours are shown for.YES
starttimeISO8601 or Unix timestampDefines the query starttime for the queryNO - if not set it falls back to "endtime - 90 days"
endtimeISO8601 or Unix timestampDefines the query endtime for the queryNO - if not set it falls back to the latest available data point
max_rowsintegerDefines the limit of neighbours to be included in the result, e.g. max_rows=50 means the result will be truncated to 50 neighbours. Has not effect if there are less neighbours anyway.NO - default: 1800

Data Output

KeyInfo
neighboursList of neighbours included in the result. Each with the following content:
neighbourthe AS number of the neighbour
timelinesa list of timeintervals (starttime/endtime) when this AS was seen as a neighbour
query_starttime/query_endtimeHolds the start and endtime for this query
earliest_time/latest_timeHolds the time interval for which data is available
resourceDefines the resource used for the query

Code Examples

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

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

Available versions for this endpoint:

1.2 (current)