Screenshot API for Astro
Capturing website screenshots from Astro usually means running and scaling a headless browser yourself. With Snapraven you skip all of that — capture screenshots at build time for static cards and previews.
Example in Astro
const res = await fetch(
`https://api.snapraven.app/v1/screenshot?url=${url}`,
{ headers: { 'x-api-key': import.meta.env.SHOTFORGE_KEY } }
);
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.
Why developers use Snapraven with Astro
- ✓ No headless Chrome to install, run, or scale.
- ✓ A single HTTP request — works anywhere Astro can make a fetch.
- ✓ Full-page capture, custom viewport, PNG or JPEG.
- ✓ Free tier with 100 requests per month to start.