Whois
This endpoint returns whois information from the relevant Regional Internet Registry and Routing Registry.
GET /data/whois/data.json?resource=192.0.20/23
Parameters
Key | Value | Info | Required |
---|---|---|---|
resource | ASN/IPv4/IPv6 | - | YES |
Data Output
Key | Info | ||||||
---|---|---|---|---|---|---|---|
authorities | holds the authorities that were involved in the query (e.g. "ripe", "afrinic", "apnic", "lacnic", "arin", "iana") | ||||||
records | A list of whois records returned for this resource (authorities are combined); each record is an array of entries with the following structure:
| ||||||
irr_records | A list of records returned for Routing Registries (RIPE, RADB...); each record is an array of entries with the following structure:
| ||||||
resource | holds the resource the query was based on | ||||||
query_time | holds the time the query was based on |
Code Examples
bash
curl --location --request GET "https://stat.ripe.net/data/whois/data.json?resource=192.0.20/23"
js
const requestOptions = {
method: 'GET',
};
fetch("https://stat.ripe.net/data/whois/data.json?resource=192.0.20/23", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));