Official command-line interface for the CaptureKit screenshot API.
Capture websites as PNG, JPEG, WebP or PDF, extract their content, or analyse them with AI.
Every documented endpoint is a command — 7 commands — and request reaches any other path. JSON responses are pretty-printed; files (images, PDFs…) are saved with -o.
- Node.js 20 or newer
- a CaptureKit API key
npm install --global @capturekitdev/cli
capturekit --helpOr run it without installing:
npx @capturekitdev/cli --helpThe CLI reads the key from the environment; it does not load .env files.
export CAPTUREKIT_API_KEY="YOUR_API_KEY"PowerShell:
$env:CAPTUREKIT_API_KEY = "YOUR_API_KEY"capturekit content --url https://example.comParameters use the names of the API reference as flags: --full-page and --full_page are equivalent. Boolean flags can be bare (--flag) or explicit (--flag=false); array parameters accept commas or repeated flags.
capturekit content --help # parameters of one command
capturekit endpoints # every command and its HTTP path
capturekit endpoints search # filter the listcapturekit capture --url https://example.com --format png -o screenshot.pngBinary responses are never written to a terminal: pass -o <file>, or -o - to pipe them.
echo '{"url": "https://example.com"}' | capturekit content --params -
capturekit content --params params.json --compactFlags override values read with --params.
capturekit request get /v1/usage
capturekit request post /v1/some/new/endpoint --params body.jsoncapturekit content --url https://example.com | jq .| Code | Meaning |
|---|---|
0 |
Success. |
1 |
The API returned an error (details on standard error) or the network failed. |
2 |
Invalid usage: unknown command or parameter, missing API key or required parameter. |
| Command | HTTP | Description |
|---|---|---|
analyze |
GET / POST /v1/analyze |
AI Content API analyzes any webpage and returns AI insights summary, value proposition, features, categories, use cases… |
capture |
GET / POST /v1/capture |
Browser-like Screenshot API that captures webpages as PNG/JPEG/WebP or PDF for previews, QA, reporting, monitoring, and… |
content |
GET / POST /v1/content |
CaptureKit Content API extracts structured webpage data, metadata, links, HTML/Markdown: in one request for SEO, monito… |
jobs |
GET /v1/jobs/{id} |
Poll the status, progress (0–100) and result of a job started with is_async=true. Polling is free. Poll until status is… |
stats |
GET /v1/stats |
Infrastructure health for an engine or endpoint over the last hour. Not scoped to your account or tenant. Enabled per a… |
usage |
GET /v1/usage |
Retrieve real-time usage statistics and credit balance for your CaptureKit account. |
website-crawler |
GET / POST /v1/website/crawler |
Website Crawler API fetches raw HTML from any webpage in request mode (no rendering) for fast scraping, audits, monitor… |
The CLI uses the official Node.js SDK (@capturekitdev/sdk). Use the SDK directly for programmatic access.
| SDK | Package | Install |
|---|---|---|
| Node.js | @capturekitdev/sdk |
npm install @capturekitdev/sdk |
| Python | capturekitdev |
pip install capturekitdev |
| Go | capturekit-go |
go get github.com/capturekitdev/capturekit-go |
| .NET | CaptureKit |
dotnet add package CaptureKit |
| Ruby | capturekitdev |
gem install capturekitdev |
| PHP | capturekitdev/sdk |
composer require capturekitdev/sdk |
| Java | capturekit-java |
build from source, see its README |
| CLI | @capturekitdev/cli |
npm install -g @capturekitdev/cli |
| MCP server | @capturekitdev/mcp |
npx -y @capturekitdev/mcp |
MIT — see LICENSE.