Exports
Download RPKI data in various formats for router configuration, tooling, and monitoring.
{ }
JSON
Full dataset with metadata, VRPs, ASPAs, and router keys.
application/json
,
CSV
ASN, Prefix, Max Length, Trust Anchor - one row per VRP.
text/csv
,+
CSV (Extended)
CSV with source URI and validity dates.
text/csv
B2
BIRD 2
Route table entries for BIRD 2.0 BGP daemon.
text/plain
B1
BIRD 1
ROA table entries for BIRD 1.6.
text/plain
OB
OpenBGPD
roa-set configuration block for OpenBGPD.
text/plain
RP
RPSL
Routing Policy Specification Language objects.
text/plain
S1
SLURM
RFC 8416 SLURM format with prefix and BGPsec assertions.
application/json
PM
Prometheus Metrics
Prometheus text exposition format for Grafana.
text/plain
API Usage
Fetch VRPs as JSON
curl -s https://bgprpki.com/json | jq .metadata
Check route validity
curl -s "https://bgprpki.com/api/v1/validity/AS13335/1.1.1.0%2F24" | jq .
Filter by ASN
curl -s "https://bgprpki.com/json?filter-asn=AS13335" | jq '.roas | length'
Load into BIRD 2
curl -s https://bgprpki.com/bird2 > /etc/bird/rpki_roa.conf birdc configure
RTR Protocol (direct router connection)
# BIRD 2
protocol rpki rpki_validator {
roa4 { table roa_v4; };
roa6 { table roa_v6; };
remote "bgprpki.com" port 3323;
}
# FRRouting
rpki
rpki cache bgprpki.com 3323 preference 1
exit