CLI for SnapAPI — capture screenshots, generate PDFs, and extract web content from the command line.
# No install needed:
npx snapapi screenshot https://example.com -o screenshot.png
# Or install globally:
npm install -g snapapi-cli
snapapi screenshot https://example.comGet a free API key at snapapi.pics (200 captures/month, no credit card).
# Screenshot
npx snapapi screenshot https://example.com -o shot.png
npx snapapi screenshot https://example.com --full-page --dark-mode
npx snapapi screenshot https://example.com --device iphone-15-pro -o mobile.png
# PDF
npx snapapi pdf https://example.com -o output.pdf
# Extract as markdown (for LLMs/RAG)
npx snapapi extract https://example.com --type markdown
# Health check
npx snapapi pingexport SNAPAPI_KEY=your_key_here
npx snapapi screenshot https://example.comOr pass inline: npx snapapi screenshot https://example.com --api-key YOUR_KEY
| Option | Description | Default |
|---|---|---|
--api-key, -k |
API key | $SNAPAPI_KEY |
--output, -o |
Output file | auto |
--format, -f |
png/jpeg/webp/pdf | png |
--full-page |
Capture full page | false |
--device, -d |
Device preset | - |
--dark-mode |
Dark mode | false |
--width |
Viewport width | 1280 |
--height |
Viewport height | 800 |
--type |
Extract type (markdown/text/article/links) | markdown |
snapapi.pics — 200 captures/month free.
Full API docs: snapapi.pics/docs.html