Skip to main content
GET
Transform a stored screenshot (URL form)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

An unexpired screenshotId belonging to the authenticated account.

Pattern: ^scr_

Query Parameters

preset
enum<string>

Named output shape: og-image, twitter-card, thumbnail, square, full-width. Named output shape. Explicit fields override it.

On a whole full-page screenshot, the fixed-shape presets (og-image, twitter-card, square) take the top of the page at their aspect ratio. Set region, bounds or fit to choose differently.

Available options:
og-image,
twitter-card,
thumbnail,
square,
full-width
region
string

Cut this saved region (e.g. region-1) from the screenshot. Requires a capture with regions=true.

part
string

With region: part id or index (0 = first).

savedCrop
boolean
default:false

With region + part: use the stored crop file instead of cutting original pixels. Use it for pages whose whole screenshot exceeds 64 MP or 24 MiB.

bounds
string

x,y,width,height in screenshot pixels.

Pattern: ^\d+,\d+,\d+,\d+$
width
integer

Output width. Give one side to keep the aspect ratio.

Required range: 1 <= x <= 32768
height
integer

Output height.

Required range: 1 <= x <= 32768
fit
enum<string>

How to fit both sides: contain may pad, cover may crop, fill may stretch. Default contain.

Available options:
contain,
cover,
fill
background
string

Padding / transparency fill for contain and JPEG.

Pattern: ^#[0-9a-fA-F]{6}$
format
enum<string>

Output encoding. Default: same family as the source.

Available options:
jpeg,
png,
webp
quality
integer

Lossy quality. Default 80 (or the preset's).

Required range: 1 <= x <= 100
cache
boolean
default:true

Reuse an identical stored output (refunded). Defaults to true on GET.

async
boolean
default:false

Return 202 and a status URL instead of waiting.

webhookUrl
string<uri>

Deliver the result here; implies async.

Response

All outputs completed

success
any
required
type
any
required
assetId
string
required
Pattern: ^ast_
screenshotId
string
required
Pattern: ^scr_
source
object
required
executedPlan
object[]
required

Ordered crop/resize and optional encoding. Format may occur once, last. Otherwise retain source format, lossy quality 80.

Required array length: 1 - 4 elements
provenance
object
required
media
object
required
credits
object
required
referenceExpiresAt
string<date-time>
required
cacheHit
boolean
required