Skip to content

RIR Geo


This endpoint returns geographical information for Internet resources based on RIR Statistics data.

GET /data/rir-geo/data.json?resource=2001:67c:2e8::/48
Try it

Parameters

KeyValueInfoRequired
resourceIP resource / ASNDefines the resource to be queried. For IP resource the result might be less or more specific to the given resource.YES
query_timeISO8601 or Unix timestampDefines the times for the query; must be within the range of "earliest_time" and "latest_time"NO - default is time for which the lastest data is available

Data Output

Code Examples

bash
curl --location --request GET "https://stat.ripe.net/data/rir-geo/data.json?resource=2001:67c:2e8::/48"
js
const requestOptions = {
	method: 'GET',
};

fetch("https://stat.ripe.net/data/rir-geo/data.json?resource=2001:67c:2e8::/48", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Available versions for this endpoint:

deprecated

This call has been deprecated in favor of RIR Stats Country