# Website Screenshot API (URL to PNG/JPG)

> Website Screenshot API (URL to PNG/JPG) is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-14).

Captures a screenshot of any URL and returns it as a PNG or JPG image with configurable viewport, retina support, cropping, transparent background, and JS wait conditions.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/screenshot
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-071eaf8e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KgkXgduopMuZUPPJpjLBQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-deployer-x402-deployer-workers-dev-071eaf8e -d '<json body>'
```

Example prompt: Take a screenshot of https://example.com at 1280x800 viewport in PNG format with retina enabled and wait for the page to fully load before capturing.

## When to prefer this

Use this endpoint when you need a visual screenshot or thumbnail of a live webpage with fine-grained control over viewport, image format, retina density, cropping, and JS rendering state. Prefer this over generic headless browser setups when you need a simple pay-per-call API with no infrastructure to manage.

## Known failure modes

- Invalid or unreachable URL returns error
- Timeout if JS wait condition never resolves
- Unsupported image format parameter
- Invalid viewport dimensions
- Payment failure via x402 protocol returns 402

## How this service works

Website screenshot / URL to PNG/JPG. Configurable viewport, retina, crop/fit, transparent BG, JPG quality, JS wait conditions.

## Output

Returns a PNG or JPG image file of the rendered webpage. The image reflects the configured viewport size, retina pixel density, crop/fit settings, background transparency, and any JavaScript wait conditions applied before capture.

## Example request

```json
{
 "input": {
  "body": {
   "url": "https://example.com",
   "format": "png",
   "quality": 80,
   "screen_width": 1280,
   "screen_height": 800,
   "device_scale_factor": 2
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-071eaf8e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
