Complete guide to integrating SnapAPI into your applications
Include your API key in the X-API-Key header:
X-API-Key: sk_your_api_key_herecurl -X POST https://snapapi.co/api/screenshot \
-H "X-API-Key: sk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"viewport": {
"width": 1920,
"height": 1080
},
"format": "png",
"quality": 80,
"fullPage": true
}'| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The URL of the website to capture |
viewport | object | No | Viewport dimensions (default: 1920x1080) |
format | string | No | Image format: png, jpeg, webp (default: png) |
quality | number | No | Image quality 1-100 (default: 80) |
fullPage | boolean | No | Capture full page scroll (default: false) |
Rate limits are enforced based on your subscription tier:
Rate limit headers are included in every response to help you track usage.