Before you start
Create a key in the dashboard withscreenshot:write and jobs:read scopes. Your account needs enough available credits for the requested output.
Set your private API key in your server or terminal:
https://api.screenshotapi.tech. The requests below already include it. Replace YOUR_SECRET_API_KEY with your own key; never commit it or expose it in browser code. On PowerShell, set $env:SCREENSHOTAPI_API_KEY="YOUR_SECRET_API_KEY" and use curl.exe for cURL commands.
Submit a URL
format, the default is WebP.
Use a new idempotency key for each new capture; reuse the same key only to retry this exact request with the same API key.
Handle both successful HTTP responses
200 OK means the capture is complete. An illustrative response looks like:
data.cdn_url; data.url is the original target, not the screenshot file.
202 Accepted means the service accepted the request and has not yet returned its terminal result:
data.state is completed or failed. For a completed job, read data.result.data.cdn_url. For a failed job, read data.result.error. The outer ok on a job lookup describes the lookup, not whether the capture succeeded.