Skip to content

RIR


This endpoint shows which RIR(s) allocated/assigned a resource. Depending on the level of detail ("lod" parameter) this can include additional information like registration status or country of registration. The data is based on RIR stats files, see https://ftp.ripe.net/pub/stats/.

GET /data/rir/data.json?resource=193.0.0.0/16
Try it

Parameters

KeyValueInfoRequired
resourceIP resource / ASNDefines the resource to be queried. The result contains resources that are more or less specific to the queried resource.YES
"starttime"/"endtime"ISO8601 or Unix timestampDefines the time start and end time for the query.NO - default: latest time data is available for. The RIRs are not synchronised on the release of the RIR stats, so the latest time can vary between RIRs.
"lod"integerDefines the level of detail in which the data is being returned.
Levels are:

* 0 - Least detailed output
* 1 - Default output
* 2 - Most detailed output
NO - default: 1

Data Output

Code Examples

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

fetch("https://stat.ripe.net/data/rir/data.json?resource=193.0.0.0/16", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Available versions for this endpoint:

0.1 (current)