Skip to content

DetachHead/website-screenshot-api

Repository files navigation

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

About

api for taking screenshots of websites

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published