Country ASNs

This data call provides information on a country's registered and routed ASNs. Registered ASNs are based on registration information made public by the Regional Internet Registries. The routing information is based on the data collected with the RIPE NCC's RIS system, https://ris.ripe.net.
The data call supports history, with data points being aligned to times dumps are created in RIS (00:00, 08:00 and 16:00 UTC).
By default, the data call returns just the number of registered and routed ASNs. This is mainly to prevent returning thousands of ASNs. See parameter settings below to further tailor the output to your needs.

https://stat.ripe.net/data/country-asns/data.<format>?<parameters> 

e.g. https://stat.ripe.net/data/country-asns/data.json?resource=nl

Parameters

Key Value Info Required
resource country The country has to be provided as an ISO-3166-1 alpha-2 country code. See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 for details. Yes
query_time ISO8601 or Unix timestamp Defines the time of the lookup. This value needs to be or will be aligned to the RIS dump times! No - by default it will return the latest available data point (either 00:00, 08:00 or 16:00 UTC)
"lod" integer Defines the level of detail in which the data is being returned.
Levels are:
  • 0 - Least detailed output
  • 1 - Most detailed output
NO - default: 0

Output

Counts of ASNs registered and routed (default)

https://stat.ripe.net/data/country-asns/data.json?resource=nl

The data call returns the counts of registered and routed ASNs for the given country and for the latest time that data is available for.

Example
    "data": {
	"resource": [
            "nl"
        ],
        "query_time": "2016-08-24T08:00:00",
        "latest_time": "2016-08-24T08:00:00",
        "lod": [
            "0"
        ],
        "countries": [
            {
                "resource": "nl",
                "stats": {
                    "registered": 988,
                    "routed": 714
                }
            }
        ]
    }
    

Listing ASNs

https://stat.ripe.net/data/country-asns/data.json?resource=nl&lod=1

In this example, the output returns all ASNs that have been aggregated in the first example.

Example
"data": {
        "resource": [
            "nl"
        ], 
        "query_time": "2016-08-24T08:00:00", 
        "latest_time": "2016-08-24T08:00:00", 
        "lod": [
            "1"
        ], 
        "countries": [
            {
                "resource": "nl", 
                "routed": [
                    "30720", 
                    "59393", 
                    "38915", 
                    "60358", 
                    "47112", 
                    "24586", 
                    "24587", 
                    ...
                    "202746", 
                    "2043"
                ], 
                "stats": {
                    "registered": 988, 
                    "routed": 714
                }, 
                "non_routed": [
                    "196613", 
                    "38919", 
                    "198316", 
                    "20492", 
                    "8209", 
                    "47125", 
                    "203958", 
                    ....
                    "34734", 
                    "202779", 
                    "200650", 
                    "45009", 
                    "203769", 
                    "200699", 
                    "61428", 
                    "203092"
                ]
            }
        ]
    }
    

deprecated - n.a.

upcoming - n.a.