# 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:
| ||||||||
resource | holds the resource this query based on | ||||||||
query_starttime/query_endtime | defines the time period the query covers |
# Code Examples
curl --location --request GET "https://stat.ripe.net/data/rir-prefix-size-distribution/data.json?resource=140.0.0.0/8"
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.