Screenshot guides
Guides on taking website screenshots with Puppeteer and Playwright, full-page captures in every browser, and choosing a screenshot API.
Tutorial · Node.js
Puppeteer screenshots: full page, elements and mobile
Puppeteer screenshot guide for Node.js: full page with lazy images, elements, formats, retina, mobile and dark mode, production use, and the API option.
Tutorial · Node.js & Python
Playwright screenshots in Node.js and Python
Playwright screenshot guide for Node.js and Python: full page with lazy images, elements, mobile devices, dark mode, visual tests, and when an API is simpler.
Moving off a self-run browser or another service: Puppeteer alternative, Playwright alternative, Selenium alternative, URL2PNG alternative.
Screenshot API
Take screenshots from your code
screenshotbase renders any website in a real browser and returns the image: full page or viewport, any device size, retina, from 117 countries (paid plans), with cookie banners and ads hidden.
/v1/take documentation Screenshot API All documentation
300 free screenshots every month. No credit card required.
GET https://api.screenshotbase.com/v1/take?url=https://example.com&full_page=true
# Response: the image (PNG, JPG, WebP, AVIF or GIF)
curl -G "https://api.screenshotbase.com/v1/take" \
--data-urlencode "url=https://example.com" \
-d viewport_width=1280 -d viewport_height=800 \
-d full_page=true -d format=png \
-H "apikey: YOUR-API-KEY" \
-o screenshot.png