# RPKI Validation Status

This data call 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 (opens new window), and then return its RPKI validity state.

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

# Parameters

Key Value Info Required
resource ASN The ASN used to perform the RPKI validity state lookup. YES
prefix prefix The prefix to perform the RPKI validity state lookup. Note the prefix's length is also taken from this field. YES

# Data Output

Key Info
status The RPKI validity state, according to RIPE NCC's RPKI validator (opens new window). 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
description The description that ended in the returned status.
prefix The prefix this query is based on.
resource The resource (ASN) this query is based on.

# Code Examples

# Available versions for this data call:

deprecated - 0.1

Uses RIPE NCC RPKI Validator version 2.26 as a backend

deprecated - 0.2

Uses RIPE NCC RPKI Validator version 3 as a backend

current - 0.3

Uses Routinator as a backend

Last Updated: Friday, 10 December 2021