Docs menu
Reference

Errors and failures

A refused request is an HTTP error with a code. A page that couldn't be rendered is a failed render, with a reason.

Errors

400, a wrong option
{
  "error": {
    "code": "invalid_option",
    "message": "Some options are not valid.",
    "fields": {
      "width": "a whole number from 16 to 3840"
    }
  }
}

code is for your code to match on. message is for people, and may change. fields comes only with option errors.

StatusCodeWhen
400invalid_jsonThe body is not a JSON object.
400unknown_optionAn option the API doesn't take, or wait in a signed link. fields names it.
400invalid_optionWrong values. fields names each one with what it takes.
400url_blockedThe URL is not rendered.
400host_not_foundThe URL's domain does not exist. Answered at once, without a render.
401missing_keyNo key in Authorization: Bearer or X-API-Key.
401invalid_keyThe key is not valid, or was revoked.
402over_quotaThe renders of this month are used up. Cached renders are still answered.
403account_inactiveThe account is not active.
403https_requiredThe request was plain HTTP.
403invalid_signatureA signed link whose signature doesn't match.
404not_foundNo render with this id, or no such endpoint.
405method_not_allowedAnother method. Allow says which.
415unsupported_media_typeThe body is not application/json.
429rate_limitedOver your requests a minute. Retry-After says when to try again.
500internal_errorSomething went wrong on our side.

Over a limit

Over the requests a minute, wait the seconds of Retry-After, then try again. Over the month's renders, renders already in the cache are still answered; new ones wait for next month, or a bigger plan.

429, over the requests a minute
HTTP/1.1 429 Too Many Requests
Retry-After: 42
RateLimit-Limit: 10
RateLimit-Remaining: 0
RateLimit-Reset: 42
RateLimit-Policy: "minute";q=10;w=60
RateLimit: "minute";r=0;t=42
X-PP-Renders-Used: 123
X-PP-Renders-Limit: 500

{
  "error": {
    "code": "rate_limited",
    "message": "Over 10 requests a minute. Try again in 42 seconds."
  }
}
402, over the month's renders
HTTP/1.1 402 Payment Required
RateLimit-Limit: 10
RateLimit-Remaining: 7
RateLimit-Reset: 18
RateLimit-Policy: "minute";q=10;w=60
RateLimit: "minute";r=7;t=18
X-PP-Renders-Used: 500
X-PP-Renders-Limit: 500

{
  "error": {
    "code": "over_quota",
    "message": "The renders of this month are used up. Cached renders are still answered."
  }
}

Failed renders

A render that failed answers "status": "failed" with one of these in reason, the worker's words in message, and an explanation at reason_url. The list may grow: treat a code you don't know as render_failed.

ReasonMeaning
host_not_foundThe domain name doesn't resolve: misspelled, expired or not registered.
timeoutThe page kept loading past the time a render may take, or wait_for_selector didn't appear.
robots_deniedThe site's robots.txt doesn't let the PagePeeker robot in.
bot_checkThe site showed a check for automated visitors instead of its content.
navigation_failedThe connection failed: refused, reset, timed out, or a secure connection that couldn't be set up. Local and private addresses fail this way too.
capture_failedThe page loaded, but the image couldn't be made.
render_failedAny other reason.

The same list, as JSON: GET https://api.pagepeeker.com/v3/reasons, or one code at https://api.pagepeeker.com/v3/reasons/{code}. No key needed.