{"api":{"id":"api_69d0fe7c6576ff6d2e0a0471","slug":"rpki-route-validation","name":"RPKI Route Validation API","description":"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.","kind":"ready_made","visibility":"public","domain":"stat.ripe.net","source_url":"https://stat.ripe.net/docs/data-api/api-endpoints/rpki-validation","category":"developer","record_type":"generic","active_version":"1.0","units_per_1k":1000,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":12,"created_at":"2026-12-06T03:33:09.249Z","updated_at":"2026-12-06T03:33:09.249Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"origin_asn","type":"integer","description":"Origin network number (ASN) of the route, such as 13335.","required":true,"coverage":1,"example":13335},{"name":"prefix","type":"string","description":"The prefix checked, such as 1.1.1.0/24.","required":true,"coverage":1,"example":"1.1.1.0/24"},{"name":"rpki_status","type":"string","description":"valid, invalid_asn (ROAs cover the prefix but allow other origins), invalid_length (longer than the ROA allows) or unknown (no ROA covers it).","required":false,"coverage":1,"example":"valid"},{"name":"is_valid","type":"boolean","description":"True when rpki_status is valid.","required":false,"coverage":1,"example":true},{"name":"roa_count","type":"integer","description":"How many ROAs cover the prefix.","required":false,"coverage":1,"example":1},{"name":"roa_max_length","type":"integer","description":"Longest prefix length the ROA for this origin allows, such as 24; empty when no ROA names this origin.","required":false,"coverage":1,"example":24},{"name":"roa_origins","type":"array","description":"Network numbers the covering ROAs allow to announce the prefix (0 means no network may).","required":false,"coverage":1,"example":[13335]},{"name":"covering_roas","type":"array","description":"Each covering ROA in plain words, such as AS13335 may announce 1.1.1.0/24 up to /24.","required":false,"coverage":1,"example":["AS13335 may announce 1.1.1.0/24 up to /24"]},{"name":"found_via","type":"string","description":"routes when you listed the route, expand_asns when it came from an ASN you asked to expand.","required":false,"coverage":1,"example":"routes"},{"name":"validator","type":"string","description":"The RPKI validator that gave the answer, such as routinator.","required":false,"coverage":1,"example":"routinator"},{"name":"prefix_url","type":"url","description":"The prefix's page on RIPEstat.","required":false,"coverage":1,"example":"https://stat.ripe.net/resource/1.1.1.0/24"},{"name":"checked_at","type":"datetime","description":"When RIPEstat ran the check (UTC).","required":false,"coverage":1,"example":"2026-12-06T03:20:49.432Z"}],"inputs":[{"name":"routes","type":"array","description":"Routes to check, each an origin ASN and a prefix, such as 13335 1.1.1.0/24 or AS15169 8.8.8.0/24. Up to 1,000 per run.","example":["13335 1.1.1.0/24","15169 8.8.8.0/24"]},{"name":"expand_asns","type":"array","description":"ASNs whose announced prefixes should all be checked, such as AS3333. Up to 20 per run.","example":["AS577"]}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"checked_at":{"description":"When RIPEstat ran the check (UTC).","format":"date-time","type":"string"},"covering_roas":{"description":"Each covering ROA in plain words, such as AS13335 may announce 1.1.1.0/24 up to /24.","type":"array"},"found_via":{"description":"routes when you listed the route, expand_asns when it came from an ASN you asked to expand.","type":"string"},"is_valid":{"description":"True when rpki_status is valid.","type":"boolean"},"origin_asn":{"description":"Origin network number (ASN) of the route, such as 13335.","type":"integer"},"prefix":{"description":"The prefix checked, such as 1.1.1.0/24.","type":"string"},"prefix_url":{"description":"The prefix's page on RIPEstat.","format":"uri","type":"string"},"roa_count":{"description":"How many ROAs cover the prefix.","type":"integer"},"roa_max_length":{"description":"Longest prefix length the ROA for this origin allows, such as 24; empty when no ROA names this origin.","type":"integer"},"roa_origins":{"description":"Network numbers the covering ROAs allow to announce the prefix (0 means no network may).","type":"array"},"rpki_status":{"description":"valid, invalid_asn (ROAs cover the prefix but allow other origins), invalid_length (longer than the ROA allows) or unknown (no ROA covers it).","type":"string"},"validator":{"description":"The RPKI validator that gave the answer, such as routinator.","type":"string"}},"required":["origin_asn","prefix"],"title":"RPKI Route Validation API","type":"object"},"samples":[{"origin_asn":13335,"prefix":"1.1.1.0/24","rpki_status":"valid","is_valid":true,"roa_count":1,"roa_max_length":24,"roa_origins":[13335],"covering_roas":["AS13335 may announce 1.1.1.0/24 up to /24"],"found_via":"routes","validator":"routinator","prefix_url":"https://stat.ripe.net/resource/1.1.1.0/24","checked_at":"2026-12-06T03:20:49.432Z"},{"origin_asn":15169,"prefix":"8.8.8.0/24","rpki_status":"valid","is_valid":true,"roa_count":1,"roa_max_length":24,"roa_origins":[15169],"covering_roas":["AS15169 may announce 8.8.8.0/24 up to /24"],"found_via":"routes","validator":"routinator","prefix_url":"https://stat.ripe.net/resource/8.8.8.0/24","checked_at":"2026-12-06T03:20:48.811Z"},{"origin_asn":13335,"prefix":"1.1.1.0/25","rpki_status":"invalid_length","is_valid":false,"roa_count":1,"roa_max_length":24,"roa_origins":[13335],"covering_roas":["AS13335 may announce 1.1.1.0/24 up to /24"],"found_via":"routes","validator":"routinator","prefix_url":"https://stat.ripe.net/resource/1.1.1.0/25","checked_at":"2026-12-06T03:20:49.432Z"}],"validation":{"checked_at":"2026-12-06T03:33:09.177Z","field_coverage":{"checked_at":1,"covering_roas":1,"found_via":1,"is_valid":1,"origin_asn":1,"prefix":1,"prefix_url":1,"roa_count":1,"roa_max_length":1,"roa_origins":1,"rpki_status":1,"validator":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_69d0fe7c6576ff6d2e0a0471/run","openapi":"https://pullrow.dev/v1/apis/api_69d0fe7c6576ff6d2e0a0471/openapi.json","contract":"https://pullrow.dev/v1/apis/api_69d0fe7c6576ff6d2e0a0471/contract.json","page":"https://pullrow.dev/catalog/rpki-route-validation"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":1,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["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."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"origin_asn","label":"Origin asn","description":"Origin network number (ASN) of the route, such as 13335.","group":"Basics","shown":true,"written":false},{"name":"prefix","label":"Prefix","description":"The prefix checked, such as 1.1.1.0/24.","group":"Basics","shown":true,"written":false},{"name":"rpki_status","label":"Rpki status","description":"valid, invalid_asn (ROAs cover the prefix but allow other origins), invalid_length (longer than the ROA allows) or unknown (no ROA covers it).","group":"Basics","shown":true,"written":false},{"name":"is_valid","label":"Valid","description":"Yes when rpki_status is valid.","group":"Basics","shown":true,"written":false},{"name":"roa_count","label":"Roa count","description":"How many ROAs cover the prefix.","group":"Basics","shown":true,"written":false},{"name":"roa_max_length","label":"Roa maximum length","description":"Longest prefix length the ROA for this origin allows, such as 24; empty when no ROA names this origin.","group":"Basics","shown":true,"written":false},{"name":"roa_origins","label":"Roa origins","description":"Network numbers the covering ROAs allow to announce the prefix (0 means no network may).","group":"Basics","shown":true,"written":false},{"name":"covering_roas","label":"Covering roas","description":"Each covering ROA in plain words, such as AS13335 may announce 1.1.1.0/24 up to /24.","group":"Basics","shown":true,"written":false},{"name":"found_via","label":"Found via","description":"routes when you listed the route, expand_asns when it came from an ASN you asked to expand.","group":"Basics","shown":true,"written":false},{"name":"validator","label":"Validator","description":"The RPKI validator that gave the answer, such as routinator.","group":"Basics","shown":true,"written":false},{"name":"prefix_url","label":"Prefix link","description":"The prefix's page on RIPEstat.","group":"Links","shown":true,"written":false},{"name":"checked_at","label":"Checked","description":"When RIPEstat ran the check (UTC).","group":"Dates","shown":true,"written":false}],"inputs":[{"name":"routes","label":"Routes","help":"Routes to check, each an origin ASN and a prefix, such as 13335 1.1.1.0/24 or AS15169 8.8.8.0/24. Up to 1,000 per run.","example":"13335 1.1.1.0/24, 15169 8.8.8.0/24","written":false},{"name":"expand_asns","label":"Expand asns","help":"ASNs whose announced prefixes should all be checked, such as AS3333. Up to 20 per run.","example":"AS577","written":false}]}},"incidents":[]}