Related Prefixes
This endpoint returns prefixes that overlap or are adjacent to the specified IP resource.
GET /data/related-prefixes/data.json?resource=140.78.0.0/16
Parameters
| Key | Value | Info | Required |
|---|---|---|---|
| resource | Prefix or IP range to query for | - | YES |
Data Output
| Key | Info |
|---|---|
| prefixes | contains the related prefixes in a list |
| prefix | contains a single related prefix |
| origin_asn | contains the origin ASN of this related prefix |
| asn_origin | contains the name of the originating ASN |
| relationship | contains the type of relationship (e.g. More Specific, Adjacency - Left) |
| query_time | holds the time when the query was carried out |
| resource | holds the resource the data is based on |
Code Examples
bash
curl --location --request GET "https://stat.ripe.net/data/XXXX/data.json?resource=3333"js
const requestOptions = {
method: 'GET',
};
fetch("https://stat.ripe.net/data/XXXX/data.json?resource=3333", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));