Skip to Content

Screenshot

POST
/v1/screenshot

Loads a web page in headless Chromium and captures it as an image, including content built by JavaScript. The page and every request it makes follow the server fetch policy.

Use thumbnail for small link previews. Pages that keep polling the network never reach networkidle; use load with a delay instead.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Static API key from PAPYRUS_API_KEY

Request Body

  1. body
source*Source

http(s):// URL of the page, navigated by the browser

destination?|

Connector URI to write the result to

Defaultnull
output?OutputMode

json returns the envelope with the artifact inline, file returns the artifact as the response body; with a destination the response is always the light JSON envelope

Default"file"
Value in"file""json"
options?

Operation options, omitted fields take their defaults

Response Body

The JSON envelope (light with a destination), or the op file for output=file

  1. response
source*

The input document

result*

The primary artifact

options*

The request options with defaults applied

{
  "source": {
    "uri": "https://axelered.com",
    "fetch": {
      "url": "https://axelered.com/",
      "status": 200
    }
  },
  "result": {
    "name": "axelered.com.webp",
    "size": 109976,
    "mimeType": "image/webp",
    "extension": "webp",
    "label": "webp",
    "group": "image",
    "width": 1280,
    "height": 4096,
    "encoding": "base64",
    "content": "UklGRpCtAQBXRUJQVlA4WAoAAAAgAAAA/wQA/w8A…"
  },
  "options": {
    "width": 1280,
    "height": 800,
    "fullPage": true,
    "scale": 1,
    "waitUntil": "networkidle",
    "delay": 0,
    "format": "webp"
  }
}