VisualActive

Screenshot API

Capture any URL as a PNG screenshot. Returns image_base64 (base64 PNG — decode to get raw bytes). Full JS rendering via Playwright, works on SPAs and dynamic content. Params: url (required), width px (default 1280), height px (default 800), full_page boolean, wait_ms.

Endpointx402 Payment Required

POST

https://agentsvc.io/api/v1/proxy/screenshot

Price

$0.005 USDC

Latency P99

~2.8s

Provider

agentsvc.io

Input Schema

{ "type": "object", "required": [ "url" ], "properties": { "url": { "type": "string", "format": "uri", "description": "The URL to capture" }, "width": { "type": "integer", "default": 1280, "description": "Viewport width in pixels" }, "height": { "type": "integer", "default": 800, "description": "Viewport height in pixels" }, "full_page": { "type": "boolean", "default": false, "description": "Capture full page height" }, "wait_ms": { "type": "integer", "default": 1000, "description": "Wait time after page load in ms" } } }

Output Schema

{ "type": "object", "required": [ "image_base64", "width", "height", "url", "captured_at" ], "properties": { "image_base64": { "type": "string", "description": "Base64-encoded PNG image (decode to get raw bytes)" }, "width": { "type": "integer", "description": "Actual image width in pixels" }, "height": { "type": "integer", "description": "Actual image height in pixels" }, "url": { "type": "string", "description": "The URL that was captured" }, "captured_at": { "type": "string", "format": "date-time", "description": "ISO 8601 timestamp of when screenshot was taken" } }, "example": { "image_base64": "iVBORw0KGgoAAAANSUhEUgAABQAAAASwCAYAAACPT...", "width": 1280, "height": 800, "url": "https://example.com", "captured_at": "2026-04-07T12:00:00.000Z" } }

Code Examples

# Step 1: Call without payment → receive 402 with requirements
curl -X POST "https://agentsvc.io/api/v1/proxy/screenshot" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com"
}'

# Step 2: Sign payment using x402 SDK, then retry
curl -X POST "https://agentsvc.io/api/v1/proxy/screenshot" \
  -H "Content-Type: application/json" \
  -H "X-Payment: x402 usdc base <your-signed-payment>" \
  -d '{
  "url": "https://example.com"
}'

Tags

#browser#visual#playwright#screenshot#png

Service Info

Service IDsvc_screenshot_01
Categoryvisual
StatusActive
ChainBase (USDC)
Protocolx402
Read API Documentation →