Address Space Usage
This endpoint shows the usage of a prefix or IP range according to the objects currently present in the RIPE database. The data returned lists the assignments and allocations covered by the queried resource as well statistics on the total numbers of IPs in the different categories.
GET /data/address-space-usage/data.json?resource=193/23
Parameters
Key | Value | Info | Required |
---|---|---|---|
resource | prefix or IP range | States the prefix or IP range the address space usage should be returned for | YES |
all_level_more_specifics | boolean | This parameter allows to control that all levels (True) or only the first level (False) of more-specific resources are returned. This can be helpful if large blocks of IP space are looked up and the number of returned resources is too big. | NO - default is True, which returns all levels of more specific resources below a given resources |
Data Output
Key | Info | ||||||||
---|---|---|---|---|---|---|---|---|---|
assignments | A list of assignments from the allocations related to the queried resource. Each assignment item has the following structure:
| ||||||||
allocations | A list of allocations related to the queried resource. Each allocation item has the following structure:
| ||||||||
ip_stats | An overview of the distribution of statuses of the covered address space. Each status item has the following structure:
| ||||||||
resource | holds the resource the query was based on | ||||||||
query_time | holds the time the query was based on |
Code Examples
bash
curl --location --request GET "https://stat.ripe.net/data/address-space-usage/data.json?resource=193/23"
js
const requestOptions = {
method: 'GET',
};
fetch("https://stat.ripe.net/data/address-space-usage/data.json?resource=193/23", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));