Snapopa supports multiple output formats for different use cases.
| Format | MIME Type | Use Case |
|---|
png | image/png | High quality, transparency support |
jpeg | image/jpeg | Smaller file size, photos |
webp | image/webp | Modern format, best compression |
pdf | application/pdf | Documents, printing |
PNG (Default)
Best for screenshots with text, UI elements, or transparency.
{
"url": "https://example.com",
"format": "png"
}
- Lossless compression
- Supports transparency
- Larger file sizes
JPEG
Best for photos and when file size matters.
{
"url": "https://example.com",
"format": "jpeg",
"quality": 85
}
- Lossy compression (controlled by
quality)
- Smaller files
- No transparency support
The quality parameter (1-100) only affects JPEG and WebP formats.
WebP
Modern format with excellent compression.
{
"url": "https://example.com",
"format": "webp",
"quality": 90
}
- Best compression ratio
- Supports transparency
- Wide browser support
PDF
For document-style captures and printing.
{
"url": "https://example.com",
"format": "pdf",
"isFullPage": true
}
- Vector text (searchable/selectable)
- Best for printing
- Often used with
isFullPage: true
Response Types
Control how the capture is returned:
JSON (default)
Binary File
{
"url": "https://example.com",
"responseType": "json"
}
Response:{
"success": true,
"data": {
"fileUrl": "https://cdn.snapopa.com/abc.png",
"metadata": { ... }
}
}
{
"url": "https://example.com",
"responseType": "file"
}
Response: Raw binary file with appropriate Content-Type header.
| Feature | PNG | JPEG | WebP | PDF |
|---|
| Transparency | Yes | No | Yes | No |
| Compression | Lossless | Lossy | Both | - |
| Quality param | No | Yes | Yes | No |
| Best for | UI/Text | Photos | General | Docs |
| Avg size | Large | Small | Smallest | Varies |