Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 2.63 KB

readme.md

File metadata and controls

20 lines (14 loc) · 2.63 KB

website-screenshot-api

an api to take screenshots of sites or HTML

setup

docker-compose up

usage

query parameters

name type description default
input string either a URL to navigate to or HTML to be rendered (required)
screenshotMode 'normal' | 'full' | 'element' - normal: takes a screenshot of the contents visible in the viewport (default if input is a url)
- full: includes the entire page in the screenshot
- element: mainly for when the input is html, only includes the html content and no empty space. probably won't work properly for most websites (default if input is html)
(depends, see description)
blockAds boolean whether to block ads using @cliqz/adblocker-playwright true
timeout number the number of milliseconds to wait for the site to load before timing out 60000