# AgentUtility Website Screenshot

> AgentUtility Website Screenshot is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-02).

Captures a screenshot of any public webpage URL and returns a hosted image URL in PNG or JPG format

## Facts

- Endpoint: POST https://x402.agentutility.ai/website-screenshot?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-website-screenshot-881edf83
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r0JadByg_0Qk1vpcSnyEv

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 agentutility-website-screenshot-881edf83 -d '<json body>'
```

Example prompt: Can you take a full screenshot of https://www.stripe.com and give me the image as a PNG at 1280 pixels wide?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call screenshot of any public webpage without setting up a browser automation environment. Prefer this over headless browser libraries when running in a serverless or agent context where spinning up Puppeteer or Playwright is impractical. It is well-suited for single on-demand captures, visual monitoring, thumbnail generation, and link preview images.

## Known failure modes

- Invalid or non-http/https URL returns an error
- Unreachable or offline target website results in a timeout or failure
- Width/height values outside 1-8000 pixel range are rejected
- JPG quality parameter ignored or errored when format is PNG
- transparent_background option ignored when format is JPG
- Very large pages or slow-loading sites may time out

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

Returns a JSON object containing a hosted image_url pointing to the captured screenshot (e.g. https://...png), the format of the image (png or jpg), and the file_size_bytes of the resulting image file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "url"
     ],
     "properties": {
      "fit": {
       "type": "string",
       "description": "How the capture fits the requested width/height: \"max\", \"crop\", or \"scale\". Optional."
      },
      "url": {
       "type": "string",
       "description": "Webpage URL to capture. Must be http or https."
      },
      "width": {
       "type": "number",
       "description": "Output image width in pixels. Optional; 1-8000."
      },
      "format": {
       "enum": [
        "png",
        "jpg"
       ],
       "type": "string",
       "description": "Output image format, \"png\" or \"jpg\". Optional; defaults to \"png\"."
      },
      "height": {
       "type": "number",
       "description": "Output image height in pixels. Optional; 1-8000."
      },
      "quality": {
       "type": "number",
       "description": "JPG compression quality. Optional; 1-100, jpg format only."
      },
      "screen_width": {
       "type": "number",
       "description": "Browser viewport width in pixels. Optional; 320-3840."
      },
      "screen_height": {
       "type": "number",
       "description": "Browser viewport height in pixels. Optional; 240-4320."
      },
      "device_scale_factor": {
       "type": "number",
       "description": "Device pixel ratio for the capture. Optional; 1-4."
      },
      "transparent_background": {
       "type": "boolean",
       "description": "If true, renders a transparent background instead of white. Optional, png format only."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "format": {
       "type": "string"
      },
      "image_url": {
       "type": "string"
      },
      "file_size_bytes": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "format": "png",
  "image_url": "https://...png",
  "file_size_bytes": 43794
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-website-screenshot-881edf83/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
