Website Screenshot API

Capture pixel-perfect screenshots of any public URL with a real headless browser. Sync and async endpoints with viewport control, CSS injection, and full-page capture.

API endpoint
GET https://screenshot.cleariflow.com/v1/screenshot/?api_key=YOUR_API_KEY

Try it now

Test the API with live data

Need inspiration? Try:

API benefits

Pixel-perfect Capture

Real headless browser sessions render JavaScript before capturing the screenshot.

Flexible Render Options

Configure wait_until, timeouts, viewport size, full-page capture, and export format per request.

Sync & Async Endpoints

Synchronous screenshot for low latency or async jobs for high-volume and slow pages.

Full-page & Viewport

Capture the entire scrollable page or a custom viewport size in JPEG or PNG.

SSRF Protection

Built-in safeguards block private networks and other unsafe target URLs.

Bank-level Security

All API traffic is secured with TLS encryption (HTTPS).

Key features

  • Real headless browser rendering
  • Full JavaScript execution before capture
  • Synchronous POST /v1/screenshot endpoint
  • Async job queue with polling
  • Custom viewport width and height
  • Full-page or viewport-only capture
  • Inject custom CSS before capture
  • JPEG and PNG export formats
  • SSRF-safe URL validation
  • JSON response with base64 image
  • Configurable timeout up to 60s
  • TLS-encrypted API access

Quick start guide

1. Get your API key

Sign up for free and get instant access to your API key.

2. Make your first request

cURL
curl -X POST "https://screenshot.cleariflow.com/v1/screenshot" \
  -H 'Content-Type: application/json' \
  -d '{
    "api_key": "YOUR_API_KEY",
    "url": "https://cleariflow.com"
  }'

3. Handle the response

JSON
{
  "content_type": "image/jpeg",
  "image_base64": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBD...",
  "meta": {
    "elapsed_ms": 4521
  },
  "ok": true
}