Images

Screenshot of a public web page

Loads a public URL in a real browser (JavaScript enabled) and takes a screenshot. Private networks and internal addresses are blocked.

Costs 1 credit per call.

post/screenshot

Request

  • Base URL: https://api.cofferdock.com
  • URL: https://api.cofferdock.com/screenshot
  • Auth: API key in header x-api-key

Request body

urlstring uri required

Public http(s) URL to capture.

widthinteger

Browser window width in pixels (100-3840). Default 1280.

heightinteger

Browser window height in pixels (100-2160). Default 800. Ignored if full_page is true.

format'png' | 'jpeg'

Image format: "png" (default) or "jpeg".

qualityinteger

JPEG only.

full_pageboolean

true = capture the whole scrollable page, not just the first screen. Default false.

wait_msinteger

Extra time to wait after the page loads and before capturing, in milliseconds (0-5000). Use it for pages that render late. Default 0.

output'json' | 'binary' | 'url' | 'image'

How to return the image: "json" (base64 in the JSON response), "binary" (the image itself, ready for n8n/Make/Zapier) or "url" (a temporary download link, valid 15 minutes). Default: json when the request is JSON, binary when the input was sent raw.

Response

The resulting image (shape depends on output).

OR

Changes

No recorded changes to this operation across all 1 revision of this API.