GET
/ips Retrieve IP information
Returns a list of IPs with pagination and search capabilities.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
page | integer | query | Page number for pagination |
filter | string | query | Search string to filter IPs |
limit | integer | query | Number of IPs to return per page |
Response
200
dataobjectipsarraytotalintegerTotal number of IPs matching the query
pagesintegerTotal amount of pages with current limit
limitintegerNumber of IPs per page
successbooleanRequest
curl -X GET "https://shield.royalehosting.net/api/v2/ips" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID"Request
const response = await fetch("https://shield.royalehosting.net/api/v2/ips", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
},
});
const data = await response.json();Request
import requests
response = requests.get(
"https://shield.royalehosting.net/api/v2/ips",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"data": {
"ips": [
{
"address": "1.1.1.1/24",
"dns_name": "hosted-by.royalehosting.net",
"family": {
"value": 4
}
}
],
"total": 0,
"pages": 0,
"limit": 0
},
"success": true
}