Skip to content

Prefix Overview

This endpoint gives a summary of the given prefix, including whether and by whom it is announced.

GET /data/prefix-overview/data.json?resource=193/23
Try it

Parameters

KeyValueInfoRequired
resourceprefixStates the prefix you want to get the resource info forYES
min_peers_seeingintegerMinimum number of (RIS) peers necessary to see a resource to be included in the resultNO - if not provided a default is choosen by the server. An info message is added if any resource got filtered.
max_relatedintegerLimits the number of related prefixes - if there are any - included in the resultNO - if not provided a default is choosen by the server. An info message is added if truncation happens.
query_timeISO8601 or Unix timestampDefines the query time for the lookupNO - default: latest time data available is available for

Data Output

KeyInfo
blockThis contains information about this ASN or the ASN block it belongs to. Keys: desc (a human readable description), name (a human readable name) and the referencing resource/resources
announced"True" if the prefix is announced, "False" otherwise
asnsA list of ("asn"/"holder") objects representing the originating ASNs. For multi-origin prefixes it's more than one ASN.
holderDescriptive name for the AS if AS is given, "null" otherwise
resourceOutputs the prefix that the query is based on
typeFor this endpoint always "prefix"
related_prefixesList of related prefixes
actual_num_relatedTotal number of (returned and truncated) related prefixes.
num_filtered_outNumber of prefixes (exact or related) filtered by low-visibility filter. This can be controlled by the parameter "min_peers_seeing".
is_less_specificTrue if the information in the response is for a larger block than the one requested.
resourceholds the resource this query based on
query_timedefines the query time the result is based on

Code Examples

bash
curl --location --request GET "https://stat.ripe.net/data/prefix-overview/data.json?resource=193/23"
js
const requestOptions = {
	method: 'GET',
};

fetch("https://stat.ripe.net/data/prefix-overview/data.json?resource=193/23", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Available versions for this endpoint:

1.3 (current)