Docs menu
Endpoints

Get a failure reason

One code's title and explanation. A failed render's reason_url is this address.

GEThttps://api.pagepeeker.com/v3/reasons/{code}

Authentication

None. Public, and counted toward none of your limits.

Request

Path parameterTypeRequiredDescription
codestringYesA failed render's reason.

Response

FieldTypeDescription
codestringThe code, as a failed render's reason has it.
titlestringA short title.
explanationstringWhat it means.
urlstringThis code's own address.
200
{
  "code": "timeout",
  "title": "The page did not load in time",
  "explanation": "The page kept loading past the time a render may take, often because a resource on it never finished.",
  "url": "https://api.pagepeeker.com/v3/reasons/timeout"
}

Cached for an hour.

Status codes

StatusAnswerWhen
200The reasonA code of the list.
404error not_foundNo render with this id (never asked for, or a failure older than an hour), no such failure reason, or no such endpoint.

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/reasons/timeout",
)
print(res.status_code, res.json())