Take Website Screenshots with Puppeteer
June 02, 2026
Overview
Combine Puppeteer's browser automation with FrameSnap for enhanced screenshot capabilities. Capture dynamic content, authenticated pages, and complex JavaScript-heavy websites.
Prerequisites
- A FrameSnap API key (sign up free)
- JavaScript installed in your project
Make your first screenshot request
curl "https://framesnap.dev/v1/screenshot?url=https%3A%2F%2Fexample.com&width=1280&format=png" --output screenshot.png
Integrate into your JavaScript application
Add the FrameSnap API call to your JavaScript codebase using your preferred HTTP client. Pass the target URL and your API key, then handle the returned image in your application logic.
Common options
- width: set viewport width (1280 for desktop, 768 for tablet, 375 for mobile)
- full_page: set to true to capture the entire scrollable page
- format: png for best quality, jpeg for smaller files, pdf for documents
- delay: wait for JavaScript to render before capturing
- dark_mode: set to true to render with dark color scheme
Next steps
Try the free screenshot tool to test URLs interactively, or read the API documentation for full parameter details.
Capture Screenshots with FrameSnap
One API call. PNG, JPEG, or PDF. Free tier included.