Get Started with ScreenshotAPI

Capture your first screenshot in under 2 minutes. Follow these 4 steps.

0 of 4 steps complete0%
1

Your API Key

Use this key in the Authorization header for all API requests.

sk_your_api_key_here

No API key yet? Create a free account to get one.

2

Take Your First Screenshot

Run this command in your terminal to capture a screenshot of example.com.

curl "https://screenshotapi-api-production.up.railway.app/v1/screenshot?url=https://example.com&width=1280&height=800&format=png" \
  -H "Authorization: Bearer sk_your_api_key_here" \
  -o screenshot.png

This saves a 1280x800 PNG screenshot as screenshot.png in your current directory.

3

Use It in Your Code

Install our SDK and capture screenshots with just a few lines of code.

const ScreenshotAPI = require('screenshotapi-sdk');
const fs = require('fs');

const client = new ScreenshotAPI('sk_your_api_key_here');

// Take a screenshot
const screenshot = await client.screenshot('https://example.com', {
  width: 1280,
  format: 'png',
});
fs.writeFileSync('screenshot.png', screenshot);
console.log('Screenshot saved!');

// Generate a PDF
const pdf = await client.pdf('https://example.com');
fs.writeFileSync('page.pdf', pdf);

See the full API docs for all available parameters (format, quality, full page, ad blocking, CSS injection, and more).

4

Explore the Playground

Try different URLs, viewports, formats, and options in our interactive playground. No API key needed for the demo.

Open Playground

Need help? Check the documentation or contact support.