Screenshot API for Node.js
Capturing website screenshots from Node.js usually means running and scaling a headless browser yourself. With Snapraven you skip all of that — fetch a screenshot from any Node.js backend with the built-in fetch.
What you can build with Node.js
Power a thumbnail microservice, a CLI that snapshots deploys, or a serverless function that returns preview images — using the built-in `fetch`, with nothing else to install.
Example in Node.js
const res = await fetch(
`https://api.snapraven.app/v1/screenshot?url=${encodeURIComponent(target)}`,
{ headers: { 'x-api-key': process.env.SNAPRAVEN_KEY } }
);
const png = Buffer.from(await res.arrayBuffer());
That's the entire integration. Snapraven renders the page in a real Chromium browser and
returns a PNG or JPEG. Add fullPage=true
for the full scrollable page, or width/height for custom viewports.
💡 Tip for Node.js
Node 18+ has global `fetch`; buffer the `arrayBuffer()` then write to disk or push to a CDN, and cache by URL so you don’t re-render hot links.
Why developers use Snapraven with Node.js
- ✓ No headless Chrome to install, run, or scale.
- ✓ A single HTTP request — works anywhere Node.js can make a fetch.
- ✓ Full-page capture, custom viewport, PNG or JPEG.
- ✓ Free tier with 100 requests per month to start.
Node.js screenshot API — FAQ
Which Node version do I need?
Node 18+ ships global `fetch`. On older versions, install `node-fetch` and use it the same way.
How do I save the image?
Convert the response to a Buffer and write it to disk, or stream it straight to S3/your CDN.
Other guides
Not a developer? Capture screenshots with no code in the dashboard — paste URLs and download a ZIP.