Capture high-quality screenshots of any website with our powerful REST API. Perfect for thumbnails, social cards, monitoring, and more.
curl -X GET "https://screenshotapi.webhostnet.in/api/screenshot" \
-H "X-API-Key: YOUR_API_KEY" \
-d "url=https://example.com" \
-d "width=1280" \
-d "height=800"
Everything you need to capture perfect screenshots
Screenshots captured in under 3 seconds with our optimized Chromium engine.
Export as PNG, JPEG, or WebP with custom quality settings.
Set any resolution from 100px to 3840px for desktop or mobile views.
Capture entire scrollable pages, not just the visible viewport.
Wait for lazy-loaded content with customizable delay up to 10 seconds.
Capture specific elements using CSS selectors for precise screenshots.
Start free, scale as you grow. No hidden fees.
For testing & personal projects
For small apps & websites
For growing businesses
For high-volume needs
Simple REST API with easy integration
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | The URL to capture |
| width | integer | No | Viewport width (100-3840, default: 1280) |
| height | integer | No | Viewport height (100-2160, default: 800) |
| format | string | No | png, jpeg, or webp (default: png) |
| fullPage | boolean | No | Capture full scrollable page |
| quality | integer | No | Image quality 1-100 (jpeg/webp only) |
| delay | integer | No | Wait time in ms (max: 10000) |
| selector | string | No | CSS selector for element capture |
curl -X POST https://screenshotapi.webhostnet.in/api/screenshot \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"width": 1280,
"height": 800,
"format": "png"
}'
const response = await fetch(
'https://screenshotapi.webhostnet.in/api/screenshot',
{
method: 'POST',
headers: {
'X-API-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://example.com',
width: 1280,
height: 800
})
}
);
const data = await response.json();
console.log(data.image); // base64 image
{
"success": true,
"image": "data:image/png;base64,iVBORw0KGgo...",
"format": "png",
"width": 1280,
"height": 800,
"url": "https://example.com",
"timestamp": "2024-01-15T10:30:00.000Z"
}
Start capturing screenshots in seconds. No credit card required.
Your API Key (save this securely):
By signing up, you agree to our Terms of Service and Privacy Policy.