API Reference
Complete API documentation for integrating Screenshot into your applications.
Authentication
All API requests require authentication using an API key. Include your API key in the request header:
Authorization: Bearer YOUR_API_KEYBase URL
https://api.screenshot.example.com/v1Endpoints
Capture Screenshot
POST /capture
Captures a screenshot of a specified URL or element.
Request Body
{
"url": "https://example.com",
"viewport": {
"width": 1920,
"height": 1080
},
"fullPage": false,
"format": "png"
}Response
{
"id": "screenshot_123",
"url": "https://cdn.screenshot.example.com/abc123.png",
"createdAt": "2026-08-25T12:00:00Z",
"metadata": {
"width": 1920,
"height": 1080,
"format": "png",
"size": 245678
}
}Get Screenshot
GET /screenshots/:id
Retrieves a previously captured screenshot by its ID.
Parameters
id(required) - The screenshot ID
Response
{
"id": "screenshot_123",
"url": "https://cdn.screenshot.example.com/abc123.png",
"createdAt": "2026-08-25T12:00:00Z",
"metadata": {
"width": 1920,
"height": 1080,
"format": "png",
"size": 245678
}
}List Screenshots
GET /screenshots
Lists all screenshots for your account.
Query Parameters
limit- Number of results (default: 20)offset- Pagination offset (default: 0)sort- Sort order (createdAt, size)
Response
{
"data": [
{
"id": "screenshot_123",
"url": "https://cdn.screenshot.example.com/abc123.png",
"createdAt": "2026-08-25T12:00:00Z"
}
],
"total": 42,
"limit": 20,
"offset": 0
}Delete Screenshot
DELETE /screenshots/:id
Deletes a screenshot permanently.
Parameters
id(required) - The screenshot ID
Response
{
"success": true,
"message": "Screenshot deleted successfully"
}Error Handling
The API uses conventional HTTP response codes to indicate success or failure:
| Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid API key |
| 404 | Not Found - Resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error |
Rate Limits
API requests are rate limited to ensure service stability:
- Free tier: 100 requests per hour
- Pro tier: 1,000 requests per hour
- Enterprise: Custom limits
Need Help? If you have questions about the API, reach out to our support team or check out the other documentation pages.