Endpoints
List the robot's addresses
The IPv4 addresses the PagePeeker robot renders from, for sites that only let known addresses in.
GEThttps://api.pagepeeker.com/v3/ips
Authentication
None. Public, and counted toward none of your limits.
Request
No parameters.
Response
| Field | Type | Description |
|---|---|---|
| ips | array of strings | IPv4 addresses. The robot has no IPv6 address. |
{
"ips": [
"192.0.2.10",
"192.0.2.11"
]
}
The list changes when a render machine is added or replaced: have your firewall's tooling read it every few hours, rather than copying it once. Cached for 5 minutes.
Status codes
| Status | Answer | When |
|---|---|---|
| 200 | The list | Always. |
Every endpoint can also answer 403 https_required, 405 method_not_allowed, 500 internal_error. What each error means and what to do about it: Errors and failures.
Example
import requests
res = requests.get(
"https://api.pagepeeker.com/v3/ips",
)
print(res.status_code, res.json())
<?php
$http = curl_init('https://api.pagepeeker.com/v3/ips');
curl_setopt_array($http, [
CURLOPT_RETURNTRANSFER => true,
]);
$answer = json_decode(curl_exec($http), true);
echo curl_getinfo($http, CURLINFO_RESPONSE_CODE), "\n";
print_r($answer);
const res = await fetch("https://api.pagepeeker.com/v3/ips");
console.log(res.status, await res.json());
curl -i https://api.pagepeeker.com/v3/ips
The robot
The robot sends its own User-Agent, each of its addresses has a reverse DNS name under pagepeeker.com, and it respects robots.txt: About the PagePeeker robot.