Skip to main content
1

Create an account

Sign up at app.screenshotly.dev/register. No credit card required — the free plan includes 100 screenshots per month.
2

Get your API key

After registering, go to API settings in your dashboard. Copy your API key and store it securely — you’ll need it for every request.
Never expose your API key in client-side code or public repositories. Store it in environment variables.
export SCREENSHOTLY_API_KEY="your-api-key-here"
3

Capture your first screenshot

Choose your preferred method:
import { Screenshotly } from 'screenshotly-js';

const client = new Screenshotly(process.env.SCREENSHOTLY_API_KEY);

const screenshot = await client.capture({
  url: 'https://example.com',
  width: 1280,
  height: 800,
  format: 'png'
});

if (screenshot.success) {
  console.log('Screenshot URL:', screenshot.data.imageUrl);
}
The API returns a 202 Accepted response with the screenshot ID and URL:
{
  "status": "processing",
  "id": "scr_abc123",
  "message": "Screenshot request accepted and is being processed."
}

Next steps