How to Take a Full Page Screenshot with an API
Capturing a full page screenshot means rendering the entire scrollable height of a website, not just what fits inside the browser viewport. This is essential for archiving pages, generating previews, or building visual regression tests.
Why full_page matters
Most screenshot tools only capture the visible area unless told otherwise. By passing full_page=1 to the API, the rendering engine scrolls through the entire page and stitches the result into one continuous image.
Example request
GET /api/screenshot?url=https://example.com&full_page=1&key=YOUR_API_KEY
Combine this with the format parameter to choose between PNG for crisp detail or JPEG for smaller file sizes.
Common pitfalls
- Infinite-scroll pages may never finish loading — set a reasonable delay.
- Lazy-loaded images can appear blank if the capture happens too fast.
- Very tall pages increase processing time and output size.
With the right parameters, full page screenshots become a reliable building block for documentation, QA, and marketing workflows.