Skip to content

Allocation History

This endpoint returns information supplied by IANA and RIRs for allocations and direct assignments of prefixes and AS numbers of time.

GET /data/allocation-history/data.json?resource=140.78/16&starttime=2020-12-12T12:00
Try it

Parameters

KeyValueInfoRequired
resourceprefix, IP range or ASNYES
starttimeISO8601 or Unix timestampDefines the starttime for the queryYES
endtimeISO8601 or Unix timestampDefines the endtime for the queryNO - if not set it falls back to "now"

Data Output

Data

KeyInfo
resultsContains information on allocations and direct assignments by IANA and the RIR(s) authoritative for the resource. Each block has the following structure:

resourcethe exact resource this entry is about
statusthe status according to the RIR or IANA delegation statistics
timelineslist of time intervals (starttime and endtime) this entry was valid for
query_starttimeDefines the starttime the query covers
query_endtimeDefines the endtime the query covers
resourceDefines the resource used for the query

Code Examples

bash
curl --location --request GET "https://stat.ripe.net/data/allocation-history/data.json?resource=140.78/16&starttime=2020-12-12T12:00"
js
const requestOptions = {
	method: 'GET',
};

fetch("https://stat.ripe.net/data/allocation-history/data.json?resource=140.78/16&starttime=2020-12-12T12:00", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Available versions for this endpoint:

1.0 (current)

Difference to 1.*: "resource" field for AS queries is with the "AS" prefix

1.1