Skip to main content
POST

Authorizations

Authorization
string
header
required

API key authentication. Get your API key at https://snapopa.com/dashboard

Body

application/json
url
string<uri>

URL to capture

Maximum string length: 2048
html
string

Raw or base64-encoded HTML to render. Mutually exclusive with url.

Maximum string length: 1048576
responseType
enum<string>
default:json

Return JSON metadata or the raw file.

Available options:
json,
file
responseCache
object

Reuse cached results to avoid duplicate captures.

colorScheme
enum<string>
default:light

Browser prefers-color-scheme value.

Available options:
light,
dark,
no-preference
cdnTtl
integer
default:86400

CDN storage lifetime in seconds. Ignored when persistence is enabled.

Required range: 60 < x <= 2592000
async
boolean
default:false

Process in the background and return immediately.

timeout
integer
default:30000

Navigation timeout in milliseconds.

Required range: 5000 <= x <= 120000
waitUntil
enum<string>
default:load

Page load state to wait for before capturing.

Available options:
load,
domcontentloaded,
networkidle,
commit
imageLoadTimeout
integer
default:5000

Max time in milliseconds to wait for images to load. Returns early if all images load sooner.

Required range: 0 <= x <= 15000
delay
integer
default:0

Extra wait in milliseconds after page load before capturing. Useful for animations or delayed content.

Required range: 0 <= x <= 15000
antiBot
boolean
default:false

Use stealth providers to bypass bot detection.

block
object

Block ads, trackers, and media to speed up captures.

paper
enum<string>
default:A4

Paper size. One of: A3, A4, A5, Letter, Legal, Tabloid.

Available options:
A3,
A4,
A5,
Letter,
Legal,
Tabloid
landscape
boolean
default:false

Landscape orientation.

printBackground
boolean
default:true

Print background colors and images.

scale
number
default:1

Rendering scale of the page content.

Required range: 0.1 <= x <= 2
margin
object

Page margins.

pageRanges
string

Pages to include, e.g. "1-5, 8". Defaults to all pages.

Maximum string length: 100
Pattern: ^\s*\d+(\s*-\s*\d+)?(\s*,\s*\d+(\s*-\s*\d+)?)*\s*$
headerTemplate
string

HTML for the page header. Supports the classes date, title, url, pageNumber and totalPages.

Maximum string length: 8192

HTML for the page footer. Supports the classes date, title, url, pageNumber and totalPages.

Maximum string length: 8192

Response

Capture created successfully

success
enum<boolean>
required
Available options:
true
error
unknown
required
data
object
required