
Free Screenshot API — Capture Any Webpage as PNG with One HTTP Request
Need website thumbnails for your link aggregator? Social media preview images? Visual regression testing? Automated report generation? Most screenshot APIs charge per capture — Screenshotlayer at $10/mo for 100 captures, URLBox at $19/mo. For side projects and MVPs, that's overkill. I built a free Screenshot API on Cloudflare Workers that captures any URL as a PNG image with a single GET request. Quick Start curl "https://screenshot-api.t-mizuno27.workers.dev/capture?url=https://github.com&width=1280&height=720&format=png" -o screenshot.png Parameters: Param Default Description url (required) Target URL to capture width 1280 Viewport width in pixels height 720 Viewport height in pixels format png Output format (png, jpeg, webp) full_page false Capture entire scrollable page delay 0 Wait N ms after page load before capture Use Cases 1. Link Preview Generator (Node.js) const fetch = require ( " node-fetch " ); const fs = require ( " fs " ); async function generatePreview ( url , outputPa
Continue reading on Dev.to Webdev
Opens in a new tab



