Skip to content

Prefix Size Distribution


This endpoint returns the total amount of prefixes announced by a given ASN per subnet size and IP version.

GET /data/prefix-size-distribution/data.json?resource=AS3333&time=2020-12-05T12:00:00
Try it

Parameters

KeyValueInfoRequired
resourceAS for the query-YES
timestampISO8601 or Unix timestampdefault: now - 2 daysNO
min_peers_seeingintegerMinimum number of RIS peers seeing the prefix for it to be included in the results. Excludes low-visibility/localized announcements.NO (default: 10)

Data Output

KeyInfo
ipv4contains prefix sizes of all IPv4 prefixes of the queried ASN
ipv6contains prefix sizes of all IPv6 prefixes of the queried ASN
counttotal number of prefixes with the prefix size denoted by size
sizePrefix size
resourceholds the AS number the result is based on
query_timeholds the time of the snapshot the result is based on

Code Examples

bash
curl --location --request GET "https://stat.ripe.net/data/prefix-size-distribution/data.json?resource=3333&time=2020-12-05T12:00:00"
js
const requestOptions = {
	method: 'GET',
};

fetch("https://stat.ripe.net/data/prefix-size-distribution/data.json?resource=3333&time=2020-12-05T12:00:00", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Available versions for this endpoint:

2.2 (current)