Screenshot API

Capture full-page screenshots

Take pixel-perfect full-page screenshots of any webpage using a real browser. Smart scrolling captures dynamic content, lazy-loaded images, and infinite scroll pages.

1 CreditCost
3840pxMax Width
PNGFormat
Screenshot API

Quick Start

Get started with a simple API call.

const response = await fetch('https://api.crawlkit.sh/v1/crawl/screenshot', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    url: 'https://example.com',
    options: {
      width: 1920,
      height: 1080,
      timeout: 30000,
      waitForSelector: '#content'
    }
  })
});

const { data } = await response.json();
console.log('Screenshot URL:', data.url);

Key Features

Everything you need for reliable screenshot extraction.

Full Page Capture

Automatically scrolls and captures the entire page, not just the viewport. Handles lazy loading.

Custom Viewport

Set width (320-3840px) and height (240-2160px) for exact screenshot dimensions.

Element Waiting

Wait for a specific CSS selector before capturing. Perfect for dynamic content.

Smart Scrolling

Simulates user scrolling to trigger lazy-loaded content and infinite scroll.

Cloud Hosting

Screenshots are uploaded to our CDN and you get a public URL instantly.

Proxy Routing

Uses our proxy network with retry logic for reliable captures.

How It Works

Get started in minutes with our simple API.

1

Get Your API Key

Sign up for free and get your API key instantly. No credit card required.

2

Make Your First Request

Use our simple REST API with your favorite programming language.

3

Get Structured Data

Receive clean JSON responses ready to use in your application.

API Response

Get clean, structured JSON data with every request. Our API returns comprehensive data including status codes, timing information, and your remaining credits.

  • Consistent JSON structure
  • Detailed timing metrics
  • Credit usage tracking
  • Error handling built-in
Response
{
  "success": true,
  "data": {
    "url": "https://cdn.viafile.sh/abc123.png",
    "width": 1920,
    "height": 1080,
    "timing": { "total": 3500 },
    "creditsUsed": 1,
    "creditsRemaining": 99
  }
}

Use Cases

Common applications for Screenshot.

Visual Regression Testing

Detect UI changes and bugs across deployments.

Social Media Previews

Generate OG images and link previews automatically.

Documentation

Create visual documentation and tutorials.

Competitor Monitoring

Track visual changes on competitor websites.

Frequently Asked Questions

Everything you need to know about the Screenshot API.

Screenshots are saved as PNG files for maximum quality and transparency support.

Yes, we automatically scroll the page and capture everything, including lazy-loaded content.

Use the waitForSelector option with a CSS selector like #content or .loaded to wait before capturing.

Screenshots are stored on our CDN and available via the returned URL. Contact us for retention policy details.

Start Using Screenshot API Today

Get 100 free credits to test the API. No credit card required.