RPKI Route Validation API
RPKI status of internet routes from RIPEstat: check origin ASN and prefix pairs, or every prefix an ASN announces, and get valid, invalid_asn, invalid_length or unknown with the covering ROAs, the networks they allow and the longest prefix they permit.
$1 per 1,000 records
You pay only for the records you get. Zero records cost zero. 5,000 free records to start, no card.
Data from stat.ripe.net/docs/data-api/api-endpoints/rpki-validation
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 5,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/rpki-route-validation/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"routes": [
"13335 1.1.1.0/24",
"15169 8.8.8.0/24"
]
},
"max_items": 50
}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
12 fields.
Basics
- Origin asn
Origin network number (ASN) of the route, such as 13335.
Example 13,335
- Prefix
The prefix checked, such as 1.1.1.0/24.
Example 1.1.1.0/24
- Rpki status
valid, invalid_asn (ROAs cover the prefix but allow other origins), invalid_length (longer than the ROA allows) or unknown (no ROA covers it).
Example valid
- Valid
Yes when rpki_status is valid.
Example Yes
- Roa count
How many ROAs cover the prefix.
Example 1
- Roa maximum length
Longest prefix length the ROA for this origin allows, such as 24; empty when no ROA names this origin.
Example 24
- Roa origins
Network numbers the covering ROAs allow to announce the prefix (0 means no network may).
Example 13335
- Covering roas
Each covering ROA in plain words, such as AS13335 may announce 1.1.1.0/24 up to /24.
Example AS13335 may announce 1.1.1.0/24 up to /24
- Found via
routes when you listed the route, expand_asns when it came from an ASN you asked to expand.
Example routes
- Validator
The RPKI validator that gave the answer, such as routinator.
Example routinator
Dates
- Checked
When RIPEstat ran the check (UTC).
Example Dec 6, 2026
Links
- Prefix link
The prefix's page on RIPEstat.
Technical detailsField names and types for developers
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
origin_asn | number | Origin asn | 3 of 3 |
prefix | text | Prefix | 3 of 3 |
rpki_status | text | Rpki status | 3 of 3 |
is_valid | yes or no | Valid | 3 of 3 |
roa_count | number | Roa count | 3 of 3 |
roa_max_length | number | Roa maximum length | 3 of 3 |
roa_origins | list | Roa origins | 3 of 3 |
covering_roas | list | Covering roas | 3 of 3 |
found_via | text | Found via | 3 of 3 |
validator | text | Validator | 3 of 3 |
prefix_url | link | Prefix link | 3 of 3 |
checked_at | date and time | Checked | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Origin asn | Prefix | Rpki status | Valid | Roa count | Roa maximum length | Roa origins | Covering roas | Found via | Validator | Checked | Prefix link |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 13,335 | 1.1.1.0/24 | valid | Yes | 1 | 24 | 13335 | AS13335 may announce 1.1.1.0/24 up to /24 | routes | routinator | Dec 6, 2026 | stat.ripe.net/resource/1.1.1.0/24 |
| 2 | 15,169 | 8.8.8.0/24 | valid | Yes | 1 | 24 | 15169 | AS15169 may announce 8.8.8.0/24 up to /24 | routes | routinator | Dec 6, 2026 | stat.ripe.net/resource/8.8.8.0/24 |
| 3 | 13,335 | 1.1.1.0/25 | invalid_length | No | 1 | 24 | 13335 | AS13335 may announce 1.1.1.0/24 up to /24 | routes | routinator | Dec 6, 2026 | stat.ripe.net/resource/1.1.1.0/25 |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Statuses come from RIPEstat's RPKI validator (Routinator) at the time of the run, following RFC 6811: unknown means no ROA covers the prefix, invalid_asn means ROAs cover it but none allows this origin, invalid_length means the prefix is longer than the ROA allows.
- A check says what RPKI allows, not whether the route is announced. For an ASN in expand_asns, the prefixes are those RIPEstat saw it announce at the end of the last two weeks, counting only routes seen by at least 10 RIS peers.
- A prefix written with host bits set (1.1.1.1/24) is checked as its network (1.1.1.0/24). Entries without both an ASN and a prefix with a length are skipped.
- Up to 1,000 routes, 20 expanded ASNs and 5,000 rows per run. Big networks announce thousands of prefixes (Bell Canada about 1,700): set the record limit to match.
- Routes that share an origin ASN are checked 150 at a time; routes with different origins go about 4 a second, so 1,000 of them take about four minutes.
- Data from RIPEstat by RIPE NCC under the RIPEstat Service Terms and Conditions: credit RIPEstat when you publish it.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.