Skip to content

Address Space Hierarchy

This endpoint returns address space objects (inetnum or inet6num) from the RIPE Database related to the queried resource. Less- and more-specific results are first-level only, further levels would have to be retrieved iteratively.

GET /data/address-space-hierarchy/data.json?resource=193/21
Try it

Parameters

KeyValueInfoRequired
resourceprefix or IP rangeThe prefix or IP range the address space hierarchy should be returned for.YES

Data Output

KeyInfo
exactA list containing exact matches for the queried resource.
more_specificA list containing first level more specific blocks underneath the queried resource. Some of these may be aggregated according to the 'aggr_levels_below' query parameter.
less_specificA list containing first level less specific (parent) blocks above the queried resource.
rirName of the RIR where the results are from. Currently this datacall will only respond for resources under RIPE NCC IP space, so this field value will be "ripe".
resourceHolds the resource the query was based on
query_timeHolds the time the query was based on

Code Examples

bash
curl --location --request GET "https://stat.ripe.net/data/address-space-hierarchy/data.json?resource=193/21"
js
const requestOptions = {
	method: 'GET',
};

fetch("https://stat.ripe.net/data/address-space-hierarchy/data.json?resource=193/21", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Available versions for this endpoint:

1.3 (current)
1.2