# 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

# Parameters

Key Value Info Required
resource Prefix to query for - YES
query_time ISO8601 or Unix timestamp; note that every query_time passed will be normalized to midnight Defines the query time NO

# Data Output

Key Info
rirs A list of prefix size distributions grouped by RIR. Each item has the following structure:
rir AFRINIC, APNIC, ARIN, LACNIC or RIPE NCC
distribution A list of distributions grouped by prefix size. Each distribution has the following strucutre:
prefix_size The prefix size in bits
count The number of prefixes of this size
resource holds the resource this query based on
query_starttime/query_endtime defines the time period the query covers

# Code Examples

Copy

curl --location --request GET "https://stat.ripe.net/data/rir-prefix-size-distribution/data.json?resource=140.0.0.0/8"


Copy

var 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.

Last Updated: Friday 9 September 2022