browser
body enum(chrome, firefox, brave) Facultatif Exemple : chrome
Browser to use for screenshot (chrome, firefox, or brave)
/batch/create Create batch screenshot job
Les options sont regroupées pour faciliter la lecture, sur le modèle d’une documentation centrée sur les paramètres.
browserenum(chrome, firefox, brave) Facultatif Exemple : chrome
Browser to use for screenshot (chrome, firefox, or brave)
countrystring Facultatif Exemple : us
ISO country code. Defaults to "us" when omitted.
Two-letter country code for routing the browser through a target country. Use this when validating localization, legal notices, pricing, and geo-specific rendering.
delayinteger Facultatif Exemple : 5
Seconds waited after page load. Values above 30 are capped to 30.
hide_adsboolean Facultatif Exemple : false
Aucune description dans la spécification OpenAPI.
Enable ad filtering for cleaner captures and visual diffs. On some browser targets, behavior may vary depending on native filtering support.
hide_popupsboolean Facultatif Exemple : false
Aucune description dans la spécification OpenAPI.
Attempt to hide cookie banners and popup overlays before capture so outputs focus on page content.
screen_heightinteger Facultatif Exemple : 1280
Aucune description dans la spécification OpenAPI.
screen_widthinteger Facultatif Exemple : 1024
Aucune description dans la spécification OpenAPI.
sizeenum(screen, page) Facultatif Exemple : screen
Aucune description dans la spécification OpenAPI.
cookiestring Facultatif Aucune description dans la spécification OpenAPI.
headerstring Facultatif Custom HTTP header(s)
post_datastring Facultatif Aucune description dans la spécification OpenAPI.
refererstring Facultatif Aucune description dans la spécification OpenAPI.
max_waitinteger Facultatif Exemple : 0
Aucune description dans la spécification OpenAPI.
scriptstring Facultatif Aucune description dans la spécification OpenAPI.
trackersstring Facultatif JSON-encoded trackers array
darkboolean Facultatif Exemple : false
Aucune description dans la spécification OpenAPI.
strict_sslboolean Facultatif Exemple : true
Aucune description dans la spécification OpenAPI.
stepsstring Facultatif JSON-encoded steps array
cacheinteger Facultatif Exemple : 86400
Cache duration in seconds. Maximum 2592000 seconds (30 days)
shot_intervalinteger Facultatif Exemple : 0
Aucune description dans la spécification OpenAPI.
shotsinteger Facultatif Exemple : 1
Aucune description dans la spécification OpenAPI.
targetstring Facultatif CSS selector to capture an element
CSS selector of the element to capture. If provided, capture is scoped to the matched element instead of the full viewport/page.
appsinteger[] Facultatif App configuration IDs to run after each screenshot is finished
filestring Obligatoire Text file with one URL per line
filename_templatestring Facultatif Exemple : {domain}/{yyyy}{mm}{dd}-{id}.png
Template for output filenames inside the ZIP archive. Supports variables: {id}, {domain}, {shot}, {browser}, {country}, {yyyy}, {mm}, {dd}, {date}, {random}, {tags}, {url}. If {id} is absent, it is injected automatically to guarantee unique filenames. The filename column in the CSV/TSV file overrides this template per row.
hostingenum(s3) Facultatif Exemple : s3
Upload each completed screenshot through the AWS S3 app. The batch ZIP is not uploaded.
hosting_bucketstring Facultatif S3 bucket that grants write access to Browshot's AWS account.
hosting_privateboolean Facultatif Exemple : false
Use bucket-owner-full-control instead of public-read for uploaded objects.
Idempotency-Keystring Facultatif Retry key. Reusing the same key for the same API user returns the original batch.
namestring Facultatif Batch name for reference
thumbnail_bottominteger Facultatif Crop box bottom edge (px, exclusive). 0 extends to the image's bottom edge.
thumbnail_formatenum(png, jpeg, webp) Facultatif Exemple : png
Output image format. Omit to preserve each image's original format.
thumbnail_heightinteger Facultatif Thumbnail target height in pixels.
thumbnail_leftinteger Facultatif Crop box left edge (px). Crop is applied before resizing.
thumbnail_qualityinteger Facultatif Encoder quality (1-100) for jpeg/webp thumbnails. Ignored for png.
thumbnail_ratioenum(fit, fill) Facultatif Exemple : fit
fit = contain within width/height (default); fill = cover the box, cropping overflow.
thumbnail_rightinteger Facultatif Crop box right edge (px, exclusive). 0 extends to the image's right edge.
thumbnail_scalenumber Facultatif Multiplier applied to the thumbnail dimensions (combines with thumbnail_zoom).
thumbnail_topinteger Facultatif Crop box top edge (px).
thumbnail_widthinteger Facultatif Resize the images stored in the ZIP archive. Setting any thumbnail_* option makes the ZIP contain resized/reformatted thumbnails instead of the full-resolution captures; leaving them all unset keeps the originals (default). Non-image outputs (PDF, video, HTML) are never thumbnailed. Target width in pixels.
thumbnail_zoominteger Facultatif Zoom percentage (1-100) applied to the thumbnail dimensions.
htmlboolean Facultatif Exemple : false
Aucune description dans la spécification OpenAPI.
geo_enableboolean Facultatif Exemple : false
Enable geolocation emulation
geo_latitudenumber Facultatif Override latitude for geolocation
geo_longitudenumber Facultatif Override longitude for geolocation
languagestring Facultatif Override language/locale (e.g., en-US)
timezonestring Facultatif Override timezone (e.g., America/New_York)
device_landscapeboolean Facultatif Use landscape orientation
device_mobileboolean Facultatif Enable mobile emulation
device_namestring Facultatif Device name to emulate (e.g., iphone_15_pro)
device_scalenumber Facultatif Device scale factor
device_touchboolean Facultatif Enable touch input
pdfboolean Facultatif Exemple : false
Aucune description dans la spécification OpenAPI.
pdf_backgroundboolean Facultatif Exemple : false
Aucune description dans la spécification OpenAPI.
pdf_formatenum(a4, letter, legal) Facultatif Exemple : letter
Aucune description dans la spécification OpenAPI.
pdf_landscapeboolean Facultatif Exemple : false
Aucune description dans la spécification OpenAPI.
pdf_marginstring Facultatif Exemple : 0px
Aucune description dans la spécification OpenAPI.
pdf_margin_bottomstring Facultatif Exemple : 0px
Aucune description dans la spécification OpenAPI.
pdf_margin_leftstring Facultatif Exemple : 0px
Aucune description dans la spécification OpenAPI.
pdf_margin_rightstring Facultatif Exemple : 0px
Aucune description dans la spécification OpenAPI.
pdf_margin_topstring Facultatif Exemple : 0px
Aucune description dans la spécification OpenAPI.
pdf_one_pageboolean Facultatif Exemple : false
Aucune description dans la spécification OpenAPI.
200 Batch created
{
"success": true,
"data": [
{
"id": 98765,
"status": "processing",
"count": 150,
"processed": 0,
"failed": 0,
"error": ""
}
]
} 400 Invalid request
{
"error": "Request validation failed",
"code": "VALIDATION_ERROR",
"fields": {
"url": [
"URL is required"
],
"country": [
"Country code must be ISO 3166-1 alpha-2"
]
}
} 401 Unauthorized
{
"success": false,
"error": "Invalid API key",
"code": "INVALID_API_KEY",
"details": {
"request_id": "req_123456"
}
} 403 Insufficient balance
{
"success": false,
"error": "Invalid API key",
"code": "INVALID_API_KEY",
"details": {
"request_id": "req_123456"
}
} 413 File too large
{
"success": false,
"error": "Invalid API key",
"code": "INVALID_API_KEY",
"details": {
"request_id": "req_123456"
}
} 500 Server error
{
"success": false,
"error": "Invalid API key",
"code": "INVALID_API_KEY",
"details": {
"request_id": "req_123456"
}
}