Skip to content

RIR Prefix Size Distribution


This data call returns the number of allocations and assignments (below the queried resource) according to registration data provided by Regional Internet Registries.

GET /data/rir-prefix-size-distribution/data.json?resource=140.0.0.0/8
Try it

Parameters

KeyValueInfoRequired
resourcePrefix to query for-YES
query_timeISO8601 or Unix timestamp; note that every query_time passed will be normalized to midnightDefines the query timeNO

Data Output

KeyInfo
rirsA list of prefix size distributions grouped by RIR. Each item has the following structure:
rirAFRINIC, APNIC, ARIN, LACNIC or RIPE NCC
distributionA list of distributions grouped by prefix size. Each distribution has the following strucutre:
prefix_sizeThe prefix size in bits
countThe number of prefixes of this size
resourceholds the resource this query based on
query_starttime/query_endtimedefines the time period the query covers

Code Examples

bash
curl --location --request GET "https://stat.ripe.net/data/rir-prefix-size-distribution/data.json?resource=140.0.0.0/8"
js
const requestOptions = {
	method: 'GET',
};

fetch("https://stat.ripe.net/data/rir-prefix-size-distribution/data.json?resource=140.0.0.0/8", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Available versions for this data call:

0.6

This is the current and only version of this API call.