Skip to main content

Get your first screenshot in 30 seconds

1

Get your API key

Go to the Dashboard and sign up for an account. You’ll get 100 free credits every month.Once logged in, navigate to the API Keys section and copy your API key.
Never expose your API key in client-side code or public repositories.
2

Make your first request

All API requests require authentication using the key query parameter.
curl "https://api.domshot.com/shot?key=YOUR_API_KEY&url=https://example.com" \
  --output screenshot.png
The API returns binary image data. Save it to a file or process it directly in your application.
3

Customize your screenshot

Add parameters to customize the output:
curl "https://api.domshot.com/shot?key=YOUR_API_KEY&url=https://example.com&viewportType=mobile&format=jpeg" \
  --output screenshot.jpg
Common parameters:
  • viewportType - mobile, tablet, or desktop (default: desktop)
  • format - png, jpeg, or webp (default: png)
  • fullPage - capture entire page (default: false)
  • quality - image quality from 1-100 (default: 100)

Security best practices

  • Never expose your API key in client-side code
  • Use environment variables to store API keys
  • Rotate your API keys regularly
  • Revoke unused API keys immediately

What’s next?