ScreenshotLensscreenshotlensdocs

Quickstart

Create an API key and send your first ScreenshotLens request.

Follow this once to get a successful capture, then tune the parameters.

Create an API key

Sign in at app.screenshotlens.com and open API keys. New accounts start with 100 credits, which is enough to cover this page.

Name the key after the environment that will call the API (Production, Staging, CI) so usage stays easy to trace.

Send a screenshot request

While integrating, set response_type=json. The response gives you the stored asset URL and the credits charged instead of raw image bytes.

curl -G "https://api.screenshotlens.com/v1/screenshots" \
  --data-urlencode "url=https://example.com" \
  --data-urlencode "api_key=YOUR_API_KEY" \
  --data-urlencode "response_type=json"
{
  "screenshot_url": "https://cdn.screenshotlens.com/captures/example.png",
  "credits_charged": 1
}

Try a rolling video

Rolling video records the page as it scrolls, and returns an MP4 by default.

curl -G "https://api.screenshotlens.com/v1/videos/rolling" \
  --data-urlencode "url=https://example.com" \
  --data-urlencode "api_key=YOUR_API_KEY" \
  --data-urlencode "response_type=json"
{
  "video_url": "https://cdn.screenshotlens.com/captures/example.mp4",
  "credits_charged": 5
}

Move the request into your app

Keep the API key on your server. Production keys do not belong in browser JavaScript, mobile apps, public repositories, or client-side build artifacts.

Next steps

On this page