What a capture is
A capture renders one URL from a chosen region and stores the screenshot, HTML, cookies, headers, and network log. Status moves from pending to captured when the render succeeds.
/v3/capturesCreate a capture
Request fields
| Field | Required | Notes |
|---|---|---|
url | yes | Page to render |
region | no | Capture region. List them first |
country | no | Country constraint |
territory | no | Territory constraint |
callback | no | See Callbacks. Empty phases can be filled from preferences |
/v3/captures/regionsRegions you can request
curl -sS -X POST "https://api.efflux.io/v3/captures" \
-H "Authorization: Bearer $EFFLUX_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"callback": {
"success": { "url": "https://example.com/hook/$job_id", "method": "POST" }
}
}'The response data includes capture_id, url, status, timestamps, cookie_count, network_log_count, header_count, screenshot_size, and the region you asked for. links points at the screenshot variants, HTML, network logs, and cookies.
Read the artifacts
Poll GET /captures/{capture_id} until the capture has finished, then fetch the artifacts.
/v3/captures/{capture_id}Get a capture
/v3/captures/{capture_id}/resultsCapture results
/v3/captures/{capture_id}/imageScreenshot
/v3/captures/{capture_id}/htmlRendered HTML
/v3/captures/{capture_id}/network-logsNetwork log, paged
/v3/captures/{capture_id}/cookiesCookies, paged
/v3/captures/{capture_id}/cookies/reportCookie report
The image route accepts variant:
variant | Image |
|---|---|
| omitted | Full screenshot |
viewport | Viewport capture |
thumb | Thumbnail |
viewport_thumb | Viewport thumbnail |
curl -sS -L "https://api.efflux.io/v3/captures/$CAPTURE_ID/image?variant=viewport" \
-H "Authorization: Bearer $EFFLUX_TOKEN" \
-o viewport.pngNetwork logs and cookies default to limit 500 (max 1000). The capture list defaults to 100 (max 1000).
/v3/captures/{capture_id}/imageDelete the stored image