Skip to content

RPKI Validation Status

This endpoint returns the RPKI validity state for a combination of prefix and Autonomous System. This combination will be used to perform the lookup against the RPKI validator Routinator, and then return its RPKI validity state.

GET /data/rpki-validation/data.json?resource=3333&prefix=193.0.0.0/21
Try it

Parameters

KeyValueInfoRequired
resourceASNThe ASN used to perform the RPKI validity state lookup.YES
prefixprefixThe prefix to perform the RPKI validity state lookup. Note the prefix's length is also taken from this field.YES

Data Output

KeyInfo
statusThe RPKI validity state, according to RIPE NCC's RPKI validator. Possible states are:

* valid - the announcement matches a roa and is valid
* invalid_asn - there is a roa with the same (or covering) prefix, but a different ASN
* invalid_length - the announcement's prefix length is greater than the ROA's maximum length
* unknown - no ROA found for the announcement
descriptionThe description that ended in the returned status.
prefixThe prefix this query is based on.
resourceThe resource (ASN) this query is based on.

Code Examples

bash
curl --location --request GET "https://stat.ripe.net/data/rpki-validation/data.json?resource=3333&prefix=193.0.0.0/21"
js
const requestOptions = {
	method: 'GET',
};

fetch("https://stat.ripe.net/data/rpki-validation/data.json?resource=3333&prefix=193.0.0.0/21", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Available versions for this endpoint:

0.3 (current)