Screenshot

POST1 Credit
https://api.crawlkit.sh/v1/crawl/screenshot

Take pixel-perfect full-page screenshots using a real browser. Captures dynamic content, lazy-loaded images, and infinite scroll.

Try on Playground

Authentication

Send your Crawlkit API key as a Bearer token in the Authorization header.

Authorization: Bearer ck_your_api_key

Request Parameters

Send these JSON body fields in your request payload.

NameTypeDescription
urlstringPublic target URL.
options.widthnumberViewport width.
options.heightnumberViewport height.
options.waitForSelectorstringRequest field.

Example Request

Use direct HTTP requests against the public API base URL.

Example request
1const response = await fetch('https://api.crawlkit.sh/v1/crawl/screenshot', {2  method: 'POST',3  headers: {4    'Authorization': 'Bearer YOUR_API_KEY',5    'Content-Type': 'application/json'6  },7  body: JSON.stringify({8    url: 'https://example.com',9    options: {10      width: 1920,11      height: 1080,12      waitForSelector: '#content'13    }14  })15});16 17const { data } = await response.json();18console.log('Screenshot URL:', data.url);

Response

Success (200 OK): Returns service-specific structured payload.

Success response (200 OK)
1{2  "success": true,3  "data": {4    "url": "https://cdn.viafile.sh/abc123.png",5    "width": 1920,6    "height": 1080,7    "timing": { "total": 3500 },8    "creditsUsed": 1,9    "creditsRemaining": 9910  }11}