Capture a page screenshot
Renders one page of the site in a real browser and returns the image, so you can check layout, spacing, and responsive behaviour that source-level checks cannot see. path is site-relative and may include a query string, so dynamic routes are captured with real values rather than placeholders. Focus the capture with selector (plus optional padding for surrounding context) or a clip rectangle in CSS pixels from the top-left of the page; the region is scrolled into view and captured within the configured viewport, so it must fit inside it, and these options exclude each other and fullPage. Fonts, images, and (for fullPage) lazy content are awaited before the capture, and CSS animations are fast-forwarded to their end state by default. Fails with 409 when the draft build is still in progress or has failed; poll websiteSourceCode.deployment.status and retry.
Request
- Base URL: https://api.cactal.ai/v1
- URL: https://api.cactal.ai/v1/websitePreview/capture
- Auth: HTTP bearer
Request body
Response
Rendered page image.
Changes
No recorded changes to this operation across all 1 revision of this API.