About this tool
How to use it
- Choose this tool. You do not need to add a file.
- Enter the start address, or a list of pages.
- Choose how many pages, the device size and full page or screen size.
- Press Generate.
- Download the pictures, or the ZIP with all of them.
What you get back
Try Capture a whole site in the Studio
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;