SnapAPI Documentation

REST API for screenshots, metadata, PDFs, and text extraction

Authentication

All API requests require an X-API-Key header. Get a free key below:

Free tier: 50 requests/month. No credit card required.

POST /api/screenshot Capture website screenshot
ParameterTypeDescription
url requiredstringURL to screenshot
widthintegerViewport width (320-3840, default: 1280)
heightintegerViewport height (240-2160, default: 720)
full_pagebooleanCapture full page scroll (default: false)
formatstring"png" or "jpeg" (default: "png")
curl -X POST https://snap.michaelcli.com/api/screenshot \ -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \ -d '{"url":"https://github.com"}' --output screenshot.png

Try it

POST /api/metadata Extract website metadata
ParameterTypeDescription
url requiredstringURL to extract metadata from
curl -X POST https://snap.michaelcli.com/api/metadata \ -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \ -d '{"url":"https://github.com"}'

Try it

POST /api/pdf Generate PDF from URL
ParameterTypeDescription
url requiredstringURL to convert to PDF
formatstring"A4", "Letter", "Legal", "Tabloid" (default: "A4")
landscapebooleanLandscape orientation (default: false)
curl -X POST https://snap.michaelcli.com/api/pdf \ -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \ -d '{"url":"https://example.com","format":"A4"}' --output page.pdf

Try it

POST /api/text Extract text from URL
ParameterTypeDescription
url requiredstringURL to extract text from
curl -X POST https://snap.michaelcli.com/api/text \ -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \ -d '{"url":"https://example.com"}'

Try it

GET /api/usage Check API usage

Returns your current month's usage and limits. No request body needed.

curl https://snap.michaelcli.com/api/usage -H "X-API-Key: YOUR_KEY"

Pricing

Free

$0
50 requests/month

Starter

$5/mo
500 requests/month

Basic

$15/mo
2,000 requests/month

Pro

$39/mo
10,000 requests/month

Upgrade via Stripe

Rate Limits

Limits are enforced per calendar month. Usage resets on the 1st. Check X-Usage-Used and X-Usage-Limit response headers on screenshot/PDF endpoints, or call GET /api/usage.

OpenAPI Spec

Download OpenAPI 3.0 spec — import into Postman, Insomnia, or any OpenAPI-compatible tool.