Docs menu
Endpoints

List the failure reasons

Every code a failed render can have in reason, with its title and explanation. The list may grow: treat a code you don't know as render_failed.

GEThttps://api.pagepeeker.com/v3/reasons

Authentication

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

Request

No parameters.

Response

FieldTypeDescription
reasonsarrayOne object a code, with the fields below.
reasons[].codestringThe code, as a failed render's reason has it.
reasons[].titlestringA short title.
reasons[].explanationstringWhat it means.
reasons[].urlstringThis code's own address.
200 (shortened to two reasons)
{
  "reasons": [
    {
      "code": "host_not_found",
      "title": "The host does not exist",
      "explanation": "The domain name of the URL does not resolve: it is misspelled, expired or not registered. The API answers a host it can tell does not exist with this code at once, without queueing a render.",
      "url": "https://api.pagepeeker.com/v3/reasons/host_not_found"
    },
    {
      "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"
    }
  ]
}

The API answers all of them: they are listed in Errors and failures. Cached for an hour.

Status codes

StatusAnswerWhen
200The listAlways.

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