Prefix Count

This data call shows the number of prefixes announced by a given ASN over time.

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

e.g. https://stat.ripe.net/data/prefix-count/data.json?resource=AS3333&starttime=2008-01-01T00:00:00

Parameters

Key Value Info Required
resource AS for the query - YES
starttime ISO8601 or Unix timestamp default: Jan 1st 2000 NO
endtime ISO8601 or Unix timestamp default: now 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)
resolution "8h" (8 hours),"2d" (2 days) or "12d" (12 days) Defines the resolution/aggregation for the returned data, e.g. "2d" means that changes in the data must persist for longer than 2 days to be visible at this resolution. NO (default: "12d")

Output

Data

Key Info
ipv4 Contains a series of incremental changes per timestamp on the IPv4 prefixes announced by the AS
ipv6 Contains a series of incremental changes per timestamp on the IPv6 prefixes announced by the AS
timestamp Time of the data point
prefixes Number of prefixes announced by the AS at that point in time
address-space Amount of address space, in terms of /24 (for IPv4) or /48 (for IPv6) subnets, anounced by the AS at that point in time
resource holds the resource this query based on
query_starttime the beginning of the time period the query covers
query_endtime the end of the time period the query covers
resolution states the resolution of the returned data

Example

    "data": {
	    "ipv4": [
	        {
	            "address-space": 0,
	            "prefixes": 0,
	            "timestamp": "2000-01-01T00:00:00"
	        },
	        {
	            "address-space": 4,
	            "prefixes": 1,
	            "timestamp": "2000-08-20T00:00:00"
	        },
	        {
	            "address-space": 0,
	            "prefixes": 0,
	            "timestamp": "2000-09-08T00:00:00"
	        },
	        {
	            "address-space": 12,
	            "prefixes": 2,
	            "timestamp": "2000-09-09T00:00:00"
	        },
	    	[...]
	    ],
	    "ipv6": [
	   		{
	            "address-space": 0,
	            "prefixes": 0,
	            "timestamp": "2000-01-01T00:00:00"
	        },
	        {
	            "address-space": 64,
	            "prefixes": 1,
	            "timestamp": "2003-03-26T16:00:00"
	        },
	        {
	            "address-space": 0,
	            "prefixes": 0,
	            "timestamp": "2004-03-20T16:00:00"
	        },
			[...]
		],
		"query_endtime": "2012-05-02T12:37:38", 
        "query_starttime": "2000-01-01T00:00:00", 
        "resource": "3333",
        "resolution": "8h"
	}

deprecated - 1.0

Difference to 1.1: the latest version is using a more reliable backend

n.a.

-