Date created: Monday, February 27, 2023 2:09:23 PM. Last modified: Wednesday, December 11, 2024 12:00:48 PM
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: Running Parallel Commands via SSH
Next page: Whois