Back to APIs

Unified Agent API

Screenshot

Screenshot

Capture a rendered screenshot of any webpage.

POST/v1/screenshots/capture

Overview

Capture a rendered screenshot of any webpage

Credits

1 credit per call

Providers

Anchor

SDK Method

client.screenshot(...)

Parameters

urlRequired

string

URL to capture.

width

number (default: 1280)

Viewport width.

height

number (default: 720)

Viewport height.

format

select (default: png)

Output format.

PNG
JPG
WebP
full_page

boolean (default: false)

Capture full scrollable page.

Example Response

{
  "success": true,
  "data": {
    "image_base64": "iVBORw0KGgoAAAANSUhEUg...(base64 image data)",
    "format": "png",
    "width": 1280,
    "height": 720,
    "full_page": false,
    "size_bytes": 6325
  },
  "metadata": {
    "provider_used": "anchor",
    "providers_tried": [
      "anchor"
    ],
    "mode_used": null,
    "response_time_ms": 6753,
    "request_id": "req_70d8a7af"
  },
  "credits_used": 1
}

Get Started

Create a Suprsonic API key in your dashboard, then call the endpoint with your key in the Authorization header.

Try Screenshot

Test Screenshot in the interactive playground. No setup required.

Open Playground