Country Resource List

This data call lists the Internet resources associated with a country, including ASNs, IPv4 ranges and IPv4/6 CIDR prefixes.

This data is derived from the RIR Statistics files maintained by the various RIRs.

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

e.g. https://stat.ripe.net/data/country-resource-list/data.json?resource=at&time=2012-12-01

Parameters

Key Value Info Required
resource 2-digit ISO-3166 country code (e.g. "at","de"...) The country to find IP prefixes and AS numbers for. YES
time ISO8601 or Unix timestamp The time to query. By default, returns the latest available data. This value is truncated to midnight. NO
v4_format format parameter; possible values: "" or "prefix".
"prefix" will return each entry in prefix notation, meaning that ranges are converted to CIDR prefixes.
Describes the formatting for the output of IPv4 space. NO. Defaults to ""

Output

Data

Key Info
resources Lists of resources that are associated with the queried country according to the RIR stats files.

asn A sorted list of ASN numbers associated with the queried country.
ipv4 A sorted list of IPv4 prefixes and/or ranges associated with the queried country.
ipv6 A sorted list of IPv6 prefixes associated with the queried country.
query_time The time covered by the query.
resource The resource used for the query.