- Docs
- Parameters
Parameters
- Images
- Recordings
Detailed information on all the available parameters for the API.
Parameters
Section titled “Parameters”The create image endpoint accepts the following parameters. Accepted as either json or formdata. Recordings accept the same three, as json only.
| Name | Type | Description |
|---|---|---|
html† |
String |
This is the HTML you want to render. You can send an HTML snippet (<div>Your content</div>) or an entire webpage. |
css |
String |
The CSS for your image. When using with url it will be injected into the page. |
url† |
String |
The fully qualified URL to a public webpage. Such as https://htmlcsstoimage.com. When passed this will override the html param and will generate a screenshot of the url. |
Additional parameters
Section titled “Additional parameters”Optional parameters for greater control over your image or recording. The icons show which ones each parameter works with.
Images Recordings
| Name | Works with | Type | Description |
|---|---|---|---|
| actions | Array | Ordered actions to run while recording: scroll, click, wait, run JavaScript, and branch. Leave it out to record the page as it is. | |
| additional | Array | Allow custom headers on requests to specific additional HTTP or HTTPS origins. | |
| audio | Object | Attach one soundtrack from your Asset Library or a public URL to an MP4 or WebM recording. | |
| block | Boolean | When set to true, automatically blocks cookie consent banners and popups on websites. Most useful for URL screenshots. | |
| color | String | Set Chrome to render in light or dark mode. Affects websites using prefers-color-scheme. | |
| dedupe | Integer | Reuse an identical recent image without consuming image credits. Sets the lookback window in seconds; defaults and allowed values vary by image type and plan. | |
| defer | Boolean | Wait to render a new recording until its URL or store endpoint is first requested. | |
| device | Double | Control resolution by adjusting the pixel ratio from 0.1 to 3. Higher values increase image quality and file size. | |
| disable | Boolean | HTML/CSS and template images use Twemoji by default; set true to disable it. URL images inject Twemoji only when explicitly set to false. | |
| duration | String | How actions fit into duration_ms: at_most (default), fixed, at_least, or target. | |
| duration | Integer | Required for recordings. Requested recording length in milliseconds, measured from when the trigger fires. | |
| format | String | Choose the file extension in the initially returned image URL: png, jpg, webp, or pdf. | |
| full | Boolean | Generate an image of the entire height of a URL page. | |
| google | String | Load one or more Google fonts, such as Roboto|Open Sans. | |
| headers | Object | Add custom HTTP headers when screenshotting a URL. Headers are restricted to the requested URL's origin and any additional_header_origins. | |
| identify | Boolean | Add X-HCTI-SCREENSHOT: 1 to the top-level request when screenshotting a URL. | |
| include | Boolean | Also add custom headers to same-origin subrequests and subrequests matching additional_header_origins. | |
| jumbo | Integer | Maximum output height in jumbo mode, up to 80,000 pixels. Must be set with jumbo_max_width and consumes additional image credits. | |
| jumbo | Integer | Maximum output width in jumbo mode, up to 80,000 pixels. Must be set with jumbo_max_height and consumes additional image credits. | |
| max | Integer | Set a maximum time limit from 500 to 10000 milliseconds for waiting before taking the screenshot. | |
| media | String | Set Chrome to render using screen or print CSS media styles. | |
| ms | Integer | Delay before generating the image. Useful when waiting for JavaScript; start with 500 milliseconds. | |
| output | Object | Recording format (mp4, webm, or gif), frame rate, and scale. | |
| pdf | Object | Customize PDF output with page size, margins, scale, and background printing. | |
| proxy | String | Route outbound traffic through one of your organization's configured HTTP proxies. Available on the 10,000 images/month plan or higher. | |
| render | Boolean | Wait to generate the image until JavaScript calls ScreenshotReady(). | |
| request | Array | Block browser network requests matching a URL wildcard pattern and/or resource types. Requires a paid plan. | |
| selector | String | Crop the image to an element matching this CSS selector, such as section#complete-toolkit.container-lg. | |
| skip | Boolean | Skip the scroll that loads lazy content before a scrolling recording starts. | |
| storage | String | Save rendered files to one of your organization's configured storage destinations. Available on the 10,000 images/month plan or higher. | |
| timezone | String | Set Chrome's timezone with an IANA identifier such as America/New_York. | |
| transparent | Boolean | Set to true to render with a transparent background. | |
| trigger | Object | When a recording starts: immediately, when an element is visible, or when the page calls RecordingReady(). | |
| viewport | Integer | Set the height of Chrome's viewport. Both dimensions must be set when using either. | |
| viewport | Boolean | Set Chrome's viewport to landscape mode. | |
| viewport | Boolean | Set Chrome's viewport to emulate a mobile device. | |
| viewport | Boolean | Set Chrome's viewport to support touch events. | |
| viewport | Integer | Set the width of Chrome's viewport. Both dimensions must be set when using either. |