Capture a whole site API reference

Take pictures of every page of a website
API reference
Advanced
1 min read
Updated Nov 27, 2026
POST /v1/render/site-capture

Take pictures of every page of a website

POST /v1/render/site-capture

Guides

What it does

This tool needs no file. You enter a website address and it takes a picture of the pages it finds there. It can follow links to a depth and page limit you set, or capture an exact list of pages. You can choose full-page or screen-size, a device size, and hide cookie banners. Only public websites work.

How to call it

Send a POST request to /v1/render/site-capture with your API key in the X-Api-Key header. The parameters below go in the request body (or in the address of a GET request). Files, when the tool takes them, are sent as multipart form data. Every answer carries a Request-Id header: quote it if you contact support.

Parameters

ParameterTypeDefaultWhat it does
urlRequiredstring—The start address, https://example.com/. Private and internal addresses are refused, also after a redirect.
urlsOptionalarray—Capture exactly these pages instead of following links: full addresses or paths starting with / (on the same host as url). The start address is captured too.
max_pagesOptionalinteger5The most pages to capture, 1 to 30 (default 5). Every captured page counts as one render.
1 to 30
depthOptionalinteger1How many clicks away from the start address to follow links, 0 to 4 (default 1; 0 = only the start page).
0 to 4
scopeOptionalstringhostWhich links to follow: host (default, the same host), domain (also its subdomains) or path (only below the start address' folder).
hostdomainpath
includeOptionalarray—Follow only links whose address matches one of these patterns (regular expressions, for example /blog/).
excludeOptionalarray—Never follow links whose address matches one of these patterns (for example logout|cart).
ignore_queryOptionalbooleantruetrue (default): treat addresses that differ only after the ? as one page, so filters and tracking codes do not multiply the pages.
widthOptionalinteger1280The browser width in pixels, 240 to 3840 (default 1280).
240 to 3840
heightOptionalinteger800The browser height in pixels, 200 to 4000 (default 800).
200 to 4000
deviceOptionalstring—A device preset such as iphone-14 or pixel-7 (sets the size, the pixel ratio and the user agent; the same names as the html-to-image tool).
full_pageOptionalbooleantruetrue (default): the whole length of the page. false: only what the browser window shows.
max_heightOptionalinteger12000With full_page: the tallest picture to make, 200 to 30000 pixels (default 12000); longer pages are cut and marked truncated.
200 to 30000
scaleOptionalnumber1The pixel ratio of the picture, 1 to 3 (default 1).
1 to 3
formatOptionalstringpngpng (default), jpeg or webp.
pngjpegwebp
qualityOptionalinteger85For jpeg and webp: the quality, 1 to 100 (default 85).
1 to 100
wait_untilOptionalstringloadWhen a page counts as loaded: load (default), domcontentloaded, networkidle0 or networkidle2.
loaddomcontentloadednetworkidle0networkidle2
delay_msOptionalinteger300Wait this long after a page has loaded before the picture, 0 to 10000 ms (default 300).
0 to 10000
scrollOptionalbooleantruetrue (default): scroll down the page first so lazily loaded pictures appear.
color_schemeOptionalstring—light or dark: the preference the pages see (for sites that have a dark mode).
lightdark
hide_selectorsOptionalarray—CSS selectors of things to hide before the picture, for example a cookie banner or a chat bubble.
block_resourcesOptionalarray—Resource types not to load: image, stylesheet, font, media, script, and others.
user_agentOptionalstring—The browser identity the pages see.
bundleOptionalstringnonenone (default: one picture per page) or zip (also one ZIP with all pictures and a manifest.json).
nonezip
time_limit_secondsOptionalinteger60Stop capturing after this long, 10 to 120 (default 60); the pictures taken so far are returned and stopped says why.
10 to 120
validate_onlyOptionalbooleanfalsetrue = check the request without running it. The answer is `{ validated: true, valid, errors[], files, estimate, limits }` instead of the endpoint's usual answer: `errors` lists every parameter or file the real call would reject, `estimate` is what it would count against your plan, and `limits` are the limits that apply to this endpoint for your key. Nothing is processed, no files are produced and no files are counted against the plan; the call itself counts as one request. The tool’s own checks run on it too, up to the point where processing would start; a problem that only shows while processing (a crop outside the image) is not found. Files given as a web address are not downloaded.
presetIdOptionalstring—Apply a saved preset (create one with POST /v1/presets). Every value stored in the preset is used unless this request sets that field itself. The preset must have been saved for this same endpoint; requires an individual customer API key.
responseOptionalstringurlHow the result comes back. url (default) = the usual JSON answer with a signed URL per file. binary = the file itself as the HTTP body with Content-Type and Content-Disposition (a request with several result files returns one zip). base64 = the JSON answer with each result carrying `data` (base64) and `mimeType` instead of `url`, up to 20 MB in total. Answers without a result file are returned as JSON either way. Not available together with `async: true`.
urlbinarybase64
filenameOptionalstring—The name for the result file (without extension; the extension follows the format). Used as the download name: Content-Disposition for response=binary, `downloadName` in the JSON answer otherwise. Path separators, control and bidirectional characters and Windows-reserved characters are removed; names are capped at 150 bytes. Several result files get -1, -2 ... added.
filename_templateOptionalstring—A name built per result file from placeholders: {name} (the input file name without extension), {index} (1, 2, ...), {date} (YYYY-MM-DD), {time} (HH-MM-SS, UTC), {format} (the result extension) and {operation}. Example: "{name}-{index}-{date}". Sanitised like filename; result files that would get the same name are numbered -2, -3 ... Not together with filename.
appOptionalstring—The name of the app that makes this call, for example "My shop importer". It is shown in your History next to the result, so you can tell which app did what. The official apps fill it in themselves (Davix H2I plugin, Davix H2I n8n node, Davix H2I Studio, Davix H2I Dashboard); when you leave it out, the official SDKs and plugins are recognised from their User-Agent. Up to 60 characters; control characters and angle brackets are removed. The header `X-Davix-App` does the same. It is only a label: it never changes what the call does.
Idempotency-KeyOptionalstring—Optional idempotency key (8-128 characters). Reuse it for a retry of the SAME request; a different request with the same key -> 409 idempotency_key_conflict.
asyncOptionalboolean—Opt-in asynchronous execution. With async=true and an individual customer API key the endpoint answers 202 {job_id, status_url} and the result becomes available from GET /v1/jobs/{id}. Omitted/false = the normal synchronous response. A request that carries several files in one field is not run as a job: it is processed immediately, answered with one result per file, and a `warnings` entry says that async was not applied.

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/render/site-capture" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'url=https://example.com/' \
  -F 'urls=["/pricing","/about"]' \
  -F 'max_pages=5'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.render.siteCapture({
    "url": "https://example.com/",
    "urls": "[\"/pricing\",\"/about\"]",
    "max_pages": 5
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->render()->siteCapture([
    'url' => 'https://example.com/',
    'urls' => '["/pricing","/about"]',
    'max_pages' => 5,
]);
echo $result->requestId;
Was this article helpful?
Thanks for your feedback.
ON THIS PAGE
IN THIS SECTION
NEED A HAND?
Cannot find what you need? Our team replies fast.
Contact support
Still stuck?

Talk to a human

Send us a message and we will get back to you quickly.