It captures the DOM element matching the given CSS selector. This will overwrite the clip property and set fullPage to false. Will wait for the element to become visible for a maximum of 15 seconds.
Add an overlay to the image. Cannot be used together with the fullPage option!
Show child attributes
Was this page helpful?
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Doczilla","colors":{"primary":"#17E286","light":"#17E286","dark":"#17E286"},"favicon":"/favicon.png","logo":{"light":"https://mintcdn.com/doczilla/yA67lL7oehM3XiOm/images/logo.svg?fit=max\u0026auto=format\u0026n=yA67lL7oehM3XiOm\u0026q=85\u0026s=29829af5c66efb627f6a2394dd7e4fcc","dark":"https://mintcdn.com/doczilla/yA67lL7oehM3XiOm/images/logo.svg?fit=max\u0026auto=format\u0026n=yA67lL7oehM3XiOm\u0026q=85\u0026s=29829af5c66efb627f6a2394dd7e4fcc","href":"https://doczilla.app"},"api":{"openapi":"api-reference/openapi.json"},"appearance":{"default":"dark","strict":true},"background":{"decoration":null,"color":{"light":"#000","dark":"#000"}},"navbar":{"links":[{"label":"Login","href":"https://doczilla.app/login"}],"primary":{"type":"button","label":"Sign up","href":"https://doczilla.app/signup"}},"footer":{"socials":{"github":"https://github.com/doczilla-app","website":"https://doczilla.app"},"links":[{"header":null,"items":[{"label":"Pricing","href":"https://doczilla.app/pricing"},{"label":"PDF API","href":"https://doczilla.app/features/pdf-api"},{"label":"Screenshot API","href":"https://doczilla.app/features/screenshot-api"}]},{"header":null,"items":[{"label":"Blog","href":"https://doczilla.app/blog"},{"label":"About us","href":"https://doczilla.app/about"},{"label":"Privacy Policy","href":"https://doczilla.app/privacy"},{"label":"Terms of Service","href":"https://doczilla.app/terms"}]},{"header":null,"items":[{"label":"Contact","href":"mailto:contact@doczilla.app"},{"label":"Community","href":"/community"},{"label":"Examples","href":"https://doczilla.app/terms"}]}]},"integrations":{"posthog":{"apiKey":"phc_YhKaViejsEL77Sp2WhzFvU4XArynP0nwT7cm4vp8fY6","apiHost":"https://eu.posthog.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"doczilla","hasAudioNarration":false,"actualSubdomain":"doczilla","customDomains":["docs.doczilla.app"],"gitSource":{"type":"github","owner":"doczilla-app","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e61133a4518725aab129","collectionId":"91be9ac5-be07-45b6-9dbd-d056ca1eb385","schemaVersion":"v2"},"feedback":{"thumbs":true,"issues":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a21e61133a4518725aab129:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Documentation","count":28},{"language":"default","tag":"Examples","count":13},{"language":"default","tag":"Libraries","count":6},{"language":"default","tag":"Manage Templates","count":5},{"language":"default","tag":"API Documentation","count":5},{"language":"default","tag":"Get Started","count":4},{"language":"default","tag":"Screenshots","count":4},{"language":"default","tag":"PDFs","count":4},{"language":"default","tag":"Templating","count":4},{"language":"default","tag":"PDF","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/screenshot-options","slug":"/api-reference/screenshot-options","pageMetadata":{"title":"Screenshot options","description":"All available options for the screenshot API endpoints.","openapi-schema":"ScreenshotOptions","href":"/api-reference/screenshot-options","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"All available options for the screenshot API endpoints.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const{Tip}={..._provideComponents(),...props.components};if(!Tip)_missingMdxReference(`Tip`,true);return _jsx(Tip,{children:`All options are optional`})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Screenshot options","description":"All available options for the screenshot API endpoints.","openapi-schema":"ScreenshotOptions","href":"/api-reference/screenshot-options","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"schemaData":{"type":"object","properties":{"type":{"oneOf":[{"type":"string","default":"png","enum":["png","jpeg","webp"],"example":"png","uniqueKey":"type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","default":"png","enum":["png","jpeg","webp"],"example":"png","uniqueKey":"type.oneOf.1","typeLabel":"null"}],"uniqueKey":"type","typeLabel":"enum\u003cstring> | null"},"device":{"oneOf":[{"type":"string","description":"Device preset to use, will not be set when `viewport` option is provided!","default":"Macbook Pro 16","enum":["Blackberry PlayBook","Blackberry PlayBook landscape","BlackBerry Z30","BlackBerry Z30 landscape","Galaxy Note 3","Galaxy Note 3 landscape","Galaxy Note II","Galaxy Note II landscape","Galaxy S III","Galaxy S III landscape","Galaxy S5","Galaxy S5 landscape","Galaxy S8","Galaxy S8 landscape","Galaxy S9+","Galaxy S9+ landscape","Galaxy Tab S4","Galaxy Tab S4 landscape","iPad","iPad landscape","iPad (gen 6)","iPad (gen 6) landscape","iPad (gen 7)","iPad (gen 7) landscape","iPad Mini","iPad Mini landscape","iPad Pro","iPad Pro landscape","iPad Pro 11","iPad Pro 11 landscape","iPhone 4","iPhone 4 landscape","iPhone 5","iPhone 5 landscape","iPhone 6","iPhone 6 landscape","iPhone 6 Plus","iPhone 6 Plus landscape","iPhone 7","iPhone 7 landscape","iPhone 7 Plus","iPhone 7 Plus landscape","iPhone 8","iPhone 8 landscape","iPhone 8 Plus","iPhone 8 Plus landscape","iPhone SE","iPhone SE landscape","iPhone X","iPhone X landscape","iPhone XR","iPhone XR landscape","iPhone 11","iPhone 11 landscape","iPhone 11 Pro","iPhone 11 Pro landscape","iPhone 11 Pro Max","iPhone 11 Pro Max landscape","iPhone 12","iPhone 12 landscape","iPhone 12 Pro","iPhone 12 Pro landscape","iPhone 12 Pro Max","iPhone 12 Pro Max landscape","iPhone 12 Mini","iPhone 12 Mini landscape","iPhone 13","iPhone 13 landscape","iPhone 13 Pro","iPhone 13 Pro landscape","iPhone 13 Pro Max","iPhone 13 Pro Max landscape","iPhone 13 Mini","iPhone 13 Mini landscape","iPhone 14","iPhone 14 landscape","iPhone 14 Plus","iPhone 14 Plus landscape","iPhone 14 Pro","iPhone 14 Pro landscape","iPhone 14 Pro Max","iPhone 14 Pro Max landscape","iPhone 15","iPhone 15 landscape","iPhone 15 Plus","iPhone 15 Plus landscape","iPhone 15 Pro","iPhone 15 Pro landscape","iPhone 15 Pro Max","iPhone 15 Pro Max landscape","JioPhone 2","JioPhone 2 landscape","Kindle Fire HDX","Kindle Fire HDX landscape","LG Optimus L70","LG Optimus L70 landscape","Microsoft Lumia 550","Microsoft Lumia 950","Microsoft Lumia 950 landscape","Nexus 10","Nexus 10 landscape","Nexus 4","Nexus 4 landscape","Nexus 5","Nexus 5 landscape","Nexus 5X","Nexus 5X landscape","Nexus 6","Nexus 6 landscape","Nexus 6P","Nexus 6P landscape","Nexus 7","Nexus 7 landscape","Nokia Lumia 520","Nokia Lumia 520 landscape","Nokia N9","Nokia N9 landscape","Pixel 2","Pixel 2 landscape","Pixel 2 XL","Pixel 2 XL landscape","Pixel 3","Pixel 3 landscape","Pixel 4","Pixel 4 landscape","Pixel 4a (5G)","Pixel 4a (5G) landscape","Pixel 5","Pixel 5 landscape","Moto G4","Moto G4 landscape","Macbook Pro 13","Macbook Pro 15","Macbook Pro 16","iMac 21","iMac 21 4K","iMac 24 4.5K","iMac 27","iMac 27 5K"],"example":"Macbook Pro 16","uniqueKey":"device.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Device preset to use, will not be set when `viewport` option is provided!","default":"Macbook Pro 16","enum":["Blackberry PlayBook","Blackberry PlayBook landscape","BlackBerry Z30","BlackBerry Z30 landscape","Galaxy Note 3","Galaxy Note 3 landscape","Galaxy Note II","Galaxy Note II landscape","Galaxy S III","Galaxy S III landscape","Galaxy S5","Galaxy S5 landscape","Galaxy S8","Galaxy S8 landscape","Galaxy S9+","Galaxy S9+ landscape","Galaxy Tab S4","Galaxy Tab S4 landscape","iPad","iPad landscape","iPad (gen 6)","iPad (gen 6) landscape","iPad (gen 7)","iPad (gen 7) landscape","iPad Mini","iPad Mini landscape","iPad Pro","iPad Pro landscape","iPad Pro 11","iPad Pro 11 landscape","iPhone 4","iPhone 4 landscape","iPhone 5","iPhone 5 landscape","iPhone 6","iPhone 6 landscape","iPhone 6 Plus","iPhone 6 Plus landscape","iPhone 7","iPhone 7 landscape","iPhone 7 Plus","iPhone 7 Plus landscape","iPhone 8","iPhone 8 landscape","iPhone 8 Plus","iPhone 8 Plus landscape","iPhone SE","iPhone SE landscape","iPhone X","iPhone X landscape","iPhone XR","iPhone XR landscape","iPhone 11","iPhone 11 landscape","iPhone 11 Pro","iPhone 11 Pro landscape","iPhone 11 Pro Max","iPhone 11 Pro Max landscape","iPhone 12","iPhone 12 landscape","iPhone 12 Pro","iPhone 12 Pro landscape","iPhone 12 Pro Max","iPhone 12 Pro Max landscape","iPhone 12 Mini","iPhone 12 Mini landscape","iPhone 13","iPhone 13 landscape","iPhone 13 Pro","iPhone 13 Pro landscape","iPhone 13 Pro Max","iPhone 13 Pro Max landscape","iPhone 13 Mini","iPhone 13 Mini landscape","iPhone 14","iPhone 14 landscape","iPhone 14 Plus","iPhone 14 Plus landscape","iPhone 14 Pro","iPhone 14 Pro landscape","iPhone 14 Pro Max","iPhone 14 Pro Max landscape","iPhone 15","iPhone 15 landscape","iPhone 15 Plus","iPhone 15 Plus landscape","iPhone 15 Pro","iPhone 15 Pro landscape","iPhone 15 Pro Max","iPhone 15 Pro Max landscape","JioPhone 2","JioPhone 2 landscape","Kindle Fire HDX","Kindle Fire HDX landscape","LG Optimus L70","LG Optimus L70 landscape","Microsoft Lumia 550","Microsoft Lumia 950","Microsoft Lumia 950 landscape","Nexus 10","Nexus 10 landscape","Nexus 4","Nexus 4 landscape","Nexus 5","Nexus 5 landscape","Nexus 5X","Nexus 5X landscape","Nexus 6","Nexus 6 landscape","Nexus 6P","Nexus 6P landscape","Nexus 7","Nexus 7 landscape","Nokia Lumia 520","Nokia Lumia 520 landscape","Nokia N9","Nokia N9 landscape","Pixel 2","Pixel 2 landscape","Pixel 2 XL","Pixel 2 XL landscape","Pixel 3","Pixel 3 landscape","Pixel 4","Pixel 4 landscape","Pixel 4a (5G)","Pixel 4a (5G) landscape","Pixel 5","Pixel 5 landscape","Moto G4","Moto G4 landscape","Macbook Pro 13","Macbook Pro 15","Macbook Pro 16","iMac 21","iMac 21 4K","iMac 24 4.5K","iMac 27","iMac 27 5K"],"example":"Macbook Pro 16","uniqueKey":"device.oneOf.1","typeLabel":"null"}],"uniqueKey":"device","typeLabel":"enum\u003cstring> | null"},"viewport":{"oneOf":[{"type":"object","description":"Define an custom viewport, when defined the `device` option will be ignored!","required":["width","height"],"properties":{"width":{"type":"number","description":"The page width in CSS pixels.","minimum":0,"maximum":4480,"isRequired":true,"uniqueKey":"viewport.oneOf.0.width","typeLabel":"number"},"height":{"type":"number","description":"The page height in CSS pixels.","minimum":0,"maximum":2520,"isRequired":true,"uniqueKey":"viewport.oneOf.0.height","typeLabel":"number"},"deviceScaleFactor":{"type":"number","example":1,"description":"Specify device scale factor. See [devicePixelRatio](https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio) for more info.","default":1,"minimum":1,"maximum":3,"uniqueKey":"viewport.oneOf.0.deviceScaleFactor","typeLabel":"number"},"isMobile":{"type":"boolean","example":false,"description":"Whether the `meta viewport` tag is taken into account.","default":false,"uniqueKey":"viewport.oneOf.0.isMobile","typeLabel":"boolean"},"hasTouch":{"type":"boolean","example":false,"description":"Specify if the viewport supports touch events.","default":false,"uniqueKey":"viewport.oneOf.0.hasTouch","typeLabel":"boolean"},"isLandscape":{"type":"boolean","example":false,"description":"Specifies if the viewport is in landscape mode.","default":false,"uniqueKey":"viewport.oneOf.0.isLandscape","typeLabel":"boolean"}},"uniqueKey":"viewport.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"viewport.oneOf.1","typeLabel":"null"}],"uniqueKey":"viewport","typeLabel":"object | null"},"fullPage":{"type":"boolean","example":false,"description":"When `true`, takes a screenshot of the full page.","default":false,"uniqueKey":"fullPage","typeLabel":"boolean"},"fromSurface":{"type":"boolean","example":true,"description":"Capture the screenshot from the surface, rather than the view.","default":true,"uniqueKey":"fromSurface","typeLabel":"boolean"},"omitBackground":{"type":"boolean","example":false,"description":"Hides default white background and allows capturing screenshots with transparency.","default":false,"uniqueKey":"omitBackground","typeLabel":"boolean"},"optimizeForSpeed":{"type":"boolean","example":true,"default":true,"uniqueKey":"optimizeForSpeed","typeLabel":"boolean"},"quality":{"oneOf":[{"type":"number","description":"Quality of the image, between 0-100. Not applicable to `png` images.","maximum":100,"minimum":0,"uniqueKey":"quality.oneOf.0","typeLabel":"number"},{"type":"null","description":"Quality of the image, between 0-100. Not applicable to `png` images.","maximum":100,"minimum":0,"uniqueKey":"quality.oneOf.1","typeLabel":"null"}],"uniqueKey":"quality","typeLabel":"number | null"},"captureBeyondViewport":{"type":"boolean","example":false,"description":"Capture the screenshot beyond the viewport. `false` if there is no `clip`. `true` otherwise.","default":false,"uniqueKey":"captureBeyondViewport","typeLabel":"boolean"},"clip":{"oneOf":[{"type":"object","description":"Specifies the region of the page to clip.","required":["width","height","x","y"],"properties":{"width":{"type":"number","description":"The width of the element in pixels.","minimum":0,"maximum":4480,"isRequired":true,"uniqueKey":"clip.oneOf.0.width","typeLabel":"number"},"height":{"type":"number","description":"The height of the element in pixels.","minimum":0,"maximum":2520,"isRequired":true,"uniqueKey":"clip.oneOf.0.height","typeLabel":"number"},"x":{"type":"number","isRequired":true,"uniqueKey":"clip.oneOf.0.x","typeLabel":"number"},"y":{"type":"number","isRequired":true,"uniqueKey":"clip.oneOf.0.y","typeLabel":"number"},"scale":{"type":"number","example":1,"default":1,"minimum":0,"uniqueKey":"clip.oneOf.0.scale","typeLabel":"number"}},"uniqueKey":"clip.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"clip.oneOf.1","typeLabel":"null"}],"uniqueKey":"clip","typeLabel":"object | null"},"element":{"oneOf":[{"type":"string","description":"It captures the DOM element matching the given CSS [selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors). This will overwrite the `clip` property and set `fullPage` to `false`. Will wait for the element to become visible for a maximum of 15 seconds.","uniqueKey":"element.oneOf.0","typeLabel":"string"},{"type":"null","description":"It captures the DOM element matching the given CSS [selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors). This will overwrite the `clip` property and set `fullPage` to `false`. Will wait for the element to become visible for a maximum of 15 seconds.","uniqueKey":"element.oneOf.1","typeLabel":"null"}],"uniqueKey":"element","typeLabel":"string | null"},"overlay":{"oneOf":[{"type":"object","description":"Add an overlay to the image. Cannot be used together with the `fullPage` option!","properties":{"background":{"oneOf":[{"type":"string","description":"Color to apply as background, can be an an hexadecimal/rgb/rgba color code or CSS gradient.","uniqueKey":"overlay.oneOf.0.background.oneOf.0","typeLabel":"string"},{"type":"null","description":"Color to apply as background, can be an an hexadecimal/rgb/rgba color code or CSS gradient.","uniqueKey":"overlay.oneOf.0.background.oneOf.1","typeLabel":"null"}],"uniqueKey":"overlay.oneOf.0.background","typeLabel":"string | null"},"filter":{"oneOf":[{"type":"string","description":"Apply [CSS Filter](https://developer.mozilla.org/en-US/docs/Web/CSS/filter) to background.","default":"none","example":"none","uniqueKey":"overlay.oneOf.0.filter.oneOf.0","typeLabel":"string"},{"type":"null","description":"Apply [CSS Filter](https://developer.mozilla.org/en-US/docs/Web/CSS/filter) to background.","default":"none","example":"none","uniqueKey":"overlay.oneOf.0.filter.oneOf.1","typeLabel":"null"}],"uniqueKey":"overlay.oneOf.0.filter","typeLabel":"string | null"},"margin":{"type":"number","example":0.2,"description":"Margin to apply.","default":0.2,"minimum":0,"maximum":1,"uniqueKey":"overlay.oneOf.0.margin","typeLabel":"number"},"browser":{"oneOf":[{"type":"string","description":"Browser to apply.","enum":["light","dark"],"uniqueKey":"overlay.oneOf.0.browser.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Browser to apply.","enum":["light","dark"],"uniqueKey":"overlay.oneOf.0.browser.oneOf.1","typeLabel":"null"}],"uniqueKey":"overlay.oneOf.0.browser","typeLabel":"enum\u003cstring> | null"},"screenshotBorderRadius":{"type":"number","example":0,"description":"The border radius, specified in CSS pixels, is applied to the screenshot only when the `device` option is not set.","default":0,"uniqueKey":"overlay.oneOf.0.screenshotBorderRadius","typeLabel":"number"}},"uniqueKey":"overlay.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"overlay.oneOf.1","typeLabel":"null"}],"uniqueKey":"overlay","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object","example":{"title":"Example","value":{"type":"png","device":"Macbook Pro 16","viewport":{"width":2240,"height":1260,"deviceScaleFactor":1,"isMobile":false,"hasTouch":false,"isLandscape":false},"fullPage":false,"fromSurface":true,"omitBackground":false,"optimizeForSpeed":true,"quality":50,"captureBeyondViewport":false,"clip":{"width":2240,"height":1260,"x":123,"y":123,"scale":1},"element":"\u003cstring>","overlay":{"background":"\u003cstring>","filter":"none","margin":0.2,"screenshotBorderRadius":0}}}},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"doczilla","siteName":"Doczilla","title":"Screenshot options - Doczilla","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T23:53:08.871Z","originalFileLocation":"api-reference/screenshot-options.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"All available options for the screenshot API endpoints.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Doczilla\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Screenshot options - Doczilla\">\u003cmeta data-mint-head property=\"og:description\" content=\"All available options for the screenshot API endpoints.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Doczilla\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.doczilla.app/api-reference/screenshot-options\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://doczilla.mintlify.app/_mintlify/api/og/v2?division=API+Documentation\u0026amp;title=Screenshot+options\u0026amp;description=All+available+options+for+the+screenshot+API+endpoints.\u0026amp;theme=30ce5dc97ebef1a375a0ea5f\u0026amp;signature=9c858b4f7633de160ae204d05bae879170267ab7e0229e5e26e8cbd86954f203\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Screenshot options - Doczilla\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"All available options for the screenshot API endpoints.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://doczilla.mintlify.app/_mintlify/api/og/v2?division=API+Documentation\u0026amp;title=Screenshot+options\u0026amp;description=All+available+options+for+the+screenshot+API+endpoints.\u0026amp;theme=30ce5dc97ebef1a375a0ea5f\u0026amp;signature=9c858b4f7633de160ae204d05bae879170267ab7e0229e5e26e8cbd86954f203\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/doczilla/csfu4QMhBrjo3cxh/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Doczilla\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#17E286\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.doczilla.app/api-reference/screenshot-options\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/screenshot-options.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.doczilla.app/#organization\",\"name\":\"Doczilla\",\"url\":\"https://docs.doczilla.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/doczilla/yA67lL7oehM3XiOm/images/logo.svg?fit=max\u0026auto=format\u0026n=yA67lL7oehM3XiOm\u0026q=85\u0026s=29829af5c66efb627f6a2394dd7e4fcc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.doczilla.app#website\",\"name\":\"Doczilla\",\"url\":\"https://docs.doczilla.app\",\"publisher\":{\"@id\":\"https://docs.doczilla.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.doczilla.app/api-reference/screenshot-options#webpage\",\"url\":\"https://docs.doczilla.app/api-reference/screenshot-options\",\"name\":\"Screenshot options\",\"description\":\"All available options for the screenshot API endpoints.\",\"dateModified\":\"2026-01-06T23:53:08.871Z\",\"isPartOf\":{\"@id\":\"https://docs.doczilla.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.doczilla.app/api-reference/screenshot-options#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.doczilla.app/api-reference/screenshot-options#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Documentation\",\"item\":\"https://docs.doczilla.app/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Screenshot options\",\"item\":\"https://docs.doczilla.app/api-reference/screenshot-options\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.doczilla.app/api-reference/screenshot-options#apireference\",\"headline\":\"Screenshot options\",\"name\":\"Screenshot options\",\"description\":\"All available options for the screenshot API endpoints.\",\"url\":\"https://docs.doczilla.app/api-reference/screenshot-options\",\"mainEntityOfPage\":{\"@id\":\"https://docs.doczilla.app/api-reference/screenshot-options#webpage\"},\"dateModified\":\"2026-01-06T23:53:08.871Z\",\"publisher\":{\"@id\":\"https://docs.doczilla.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.doczilla.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Doczilla\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Doczilla","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Community","href":"/community"},{"title":"Common issues","href":"/common-issues"}]},{"group":"Templating","pages":[{"title":"Templating with Handlebars","sidebarTitle":"Introduction","href":"/templating/introduction"},{"title":"Available helpers","href":"/templating/helpers"}]},{"group":"API Documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Render PDF or Screenshots from a Template","sidebarTitle":"Templates","href":"/api-reference/templates"},{"title":"Page options","href":"/api-reference/page-options"},{"title":"PDF options","description":"All available options for the PDF API endpoints.","href":"/api-reference/pdf-options"},{"title":"Screenshot options","href":"/api-reference/screenshot-options"}]},{"group":"Sync/Async options","pages":[{"title":"Storage options","description":"Storage options that are available for the `sync`/`async` endpoints.","href":"/api-reference/storage-options"},{"title":"Webhook options","href":"/api-reference/webhook-options"},{"title":"Webhook event","href":"/api-reference/webhook-event"}]},{"group":"Screenshot","pages":[{"title":"Create screenshot","openapi":"POST /v1/screenshot","href":"/api-reference/endpoint/screenshot"},{"title":"Create screenshot sync","openapi":"POST /v1/screenshot/sync","href":"/api-reference/endpoint/sync-screenshot"},{"title":"Create screenshot async","openapi":"POST /v1/screenshot/async","href":"/api-reference/endpoint/async-screenshot"}]},{"group":"PDF","pages":[{"title":"Create PDF","openapi":"POST /v1/pdf","href":"/api-reference/endpoint/pdf"},{"title":"Create PDF sync","openapi":"POST /v1/pdf/sync","href":"/api-reference/endpoint/sync-pdf"},{"title":"Create PDF async","openapi":"POST /v1/pdf/async","href":"/api-reference/endpoint/async-pdf"}]},{"group":"Template","pages":[{"title":"From Template","openapi":"POST /v1/template/{id}","href":"/api-reference/endpoint/template"},{"title":"From Template sync","openapi":"POST /v1/template/{id}/sync","href":"/api-reference/endpoint/sync-template"},{"title":"From Template async","openapi":"POST /v1/template/{id}/async","href":"/api-reference/endpoint/async-template"}]},{"group":"Manage Templates","pages":[{"title":"Get all Templates","openapi":"GET /v1/templates","href":"/api-reference/endpoint/list-templates"},{"title":"Create new Template","openapi":"POST /v1/templates","href":"/api-reference/endpoint/create-template"},{"title":"Get Template","openapi":"GET /v1/templates/{id}","href":"/api-reference/endpoint/get-template"},{"title":"Update Template","openapi":"PUT /v1/templates/{id}","href":"/api-reference/endpoint/update-template"},{"title":"Delete Template","openapi":"DELETE /v1/templates/{id}","href":"/api-reference/endpoint/delete-template"}]}]},{"tab":"Examples","pages":[{"title":"Examples","href":"/examples/introduction"}]},{"tab":"Libraries","pages":[{"title":"Libraries","href":"/libraries/nodejs"}]}]},"basePath":"","title":"Screenshot options - Doczilla","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}