Captures

Render a URL and retrieve the screenshot, HTML, cookies, and network log.

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.

POST/v3/captures

Create a capture

Request fields

FieldRequiredNotes
urlyesPage to render
regionnoCapture region. List them first
countrynoCountry constraint
territorynoTerritory constraint
callbacknoSee Callbacks. Empty phases can be filled from preferences
GET/v3/captures/regions

Regions 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.

GET/v3/captures/{capture_id}

Get a capture

GET/v3/captures/{capture_id}/results

Capture results

GET/v3/captures/{capture_id}/image

Screenshot

GET/v3/captures/{capture_id}/html

Rendered HTML

GET/v3/captures/{capture_id}/network-logs

Network log, paged

GET/v3/captures/{capture_id}/cookies

Cookies, paged

GET/v3/captures/{capture_id}/cookies/report

Cookie report

The image route accepts variant:

variantImage
omittedFull screenshot
viewportViewport capture
thumbThumbnail
viewport_thumbViewport thumbnail
curl -sS -L "https://api.efflux.io/v3/captures/$CAPTURE_ID/image?variant=viewport" \
  -H "Authorization: Bearer $EFFLUX_TOKEN" \
  -o viewport.png

Network logs and cookies default to limit 500 (max 1000). The capture list defaults to 100 (max 1000).

DELETE/v3/captures/{capture_id}/image

Delete the stored image