Prefix Size Distribution

This data call returns the total amount of prefixes announced by a given ASN per subnet size and IP version.

https://stat.ripe.net/data/prefix-size-distribution/data.<format>?<parameters> 

e.g. https://stat.ripe.net/data/prefix-size-distribution/data.json?resource=AS3333&time=2011-12-05T12:00:00

Parameters

Key Value Info Required
resource AS for the query - YES
timestamp ISO8601 or Unix timestamp default: now - 2 days NO
min_peers_seeing integer Minimum number of RIS peers seeing the prefix for it to be included in the results. Excludes low-visibility/localized announcements. NO (default: 10)

Output

Data

Key Info
ipv4 contains prefix sizes of all IPv4 prefixes of the queried ASN
ipv6 contains prefix sizes of all IPv6 prefixes of the queried ASN
count total number of prefixes with the prefix size denoted by size
size Prefix size
resource holds the AS number the result is based on
query_time holds the time of the snapshot the result is based on

Example

    "data": {
        "ipv4": [
            {
                "count": 1, 
                "size": 21
            }, 
            {
                "count": 5, 
                "size": 23
            }
        ], 
        "ipv6": [
            {
                "count": 1, 
                "size": 42
            }, 
            {
                "count": 1, 
                "size": 48
            }
        ], 
        "resource": "3333", 
        "query_time": "2011-12-05T12:00:00"
    }

deprecated - 2.0

Difference to 2.1: the latest version is based on a more reliable backend

upcoming - n.a.

-