Date created: Monday, February 27, 2023 2:09:23 PM. Last modified: Thursday, April 13, 2023 11:47:29 AM

PeeringDB API Examples

Get network data by AS number:

curl -s \
-H "Content-Type: application/json" \
-H "Accept: application/json; indent=2" \
-H "Authorization: Api-Key OPTIONAL-TO-REMOVE-RATE-LIMIT" \
"https://www.peeringdb.com/api/net?asn=5405" | jq '.data'

 

Get network data by AS-SET:

curl -s \
-H "Content-Type: application/json" \
-H "Accept: application/json; indent=2" \
-H "Authorization: Api-Key OPTIONAL-TO-REMOVE-RATE-LIMIT" \
"https://www.peeringdb.com/api/net?irr_as_set=RIPE::AS-INTERDOTLINK" | jq {"data"}

 


Previous page: Multiple IP Pinger
Next page: Ping Scripts