Docs
API Reference

API Reference

Complete reference for the Captr API endpoints and parameters

API Reference

Authentication

All API requests must include your API key in the Authorization header:

X-API-Token: YOUR_API_TOKEN

Or add query parameter token:

https://api.captr.dev/v1/capture?url=https://example.com&token=YOUR_API_TOKEN

Endpoints

Capture Screenshot

GET /v1/capture

Captures a screenshot of the specified URL.

Query Parameters

ParameterTypeDefaultDescription
urlstring-The URL to capture (required)
formatstringpngOutput format: 'png', 'jpeg', 'webp'
widthnumber1920Viewport width in pixels
heightnumber1080Viewport height in pixels
fullPagebooleanfalseCapture full page height
qualitynumber80JPEG quality (1-100, only for JPEG format)

Response

Returns a binary image file in the specified format (PNG/JPEG).

Status Codes

CodeDescription
200Success
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing API key
429Too Many Requests - Rate limit exceeded
500Internal Server Error

Example Request

curl -X GET "https://api.captr.dev/v1/capture?url=https://example.com&format=jpeg&width=1280&height=720" \
  -H "X-API-Token: YOUR_API_TOKEN" \
  --output screenshot.jpg

Rate Limits

  • Free tier: 100 requests per month
  • Pro tier: 60 requests per minute
  • Enterprise tier: Custom limits available

OpenAPI Specification