# agent402.tools Screenshot API

> agent402.tools Screenshot API is a paid API for AI agents from agent402.tools, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-13, last successful call 2026-07-22).

Captures a PNG screenshot of any public URL using headless Chromium, with optional full-page capture

## Facts

- Endpoint: GET https://agent402.tools/api/screenshot
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Last successful call: 2026-07-22
- Success rate: 100% of calls made through Zero
- Rating: 2.8 / 5 from 2 reviews
- Activations on Zero: 4
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-screenshot-api-55fd5a11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t30qknsGRGfuLVzE7cF9-

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 agent402-tools-screenshot-api-55fd5a11
```

Example prompt: Can you take a full-page screenshot of https://example.com and show me what it looks like as a PNG image?

## When to prefer this

Use this endpoint when you need a visual rendering of a public webpage as a PNG image, especially when you want headless Chromium fidelity (JavaScript-rendered content) rather than a raw HTML fetch. Prefer this over HTML scrapers when visual layout, styling, or rendered state matters. Choose fullPage=true when you need the entire document, not just the above-the-fold viewport.

## Known failure modes

- URL is not publicly accessible or behind authentication — screenshot may fail or return an empty/error page
- URL is malformed or missing the http/https scheme — 400 Bad Request
- Target page takes too long to load — timeout error
- Page uses heavy JavaScript that doesn't render in headless Chromium — partial or blank screenshot
- Payment of 0.015 USDC not provided — 402 Payment Required
- Non-public IPs or localhost URLs may be blocked for security reasons

## How this service works

Screenshot any public URL in headless Chromium. Returns a PNG image. Use when you need VISUAL evidence (layout, charts, a rendered receipt); when you need the text, extract or render are cheaper and machine-readable. Query params: ?url=https://…&fullPage=true (optional).

## Output

A PNG image file containing a rendered screenshot of the requested URL, captured by headless Chromium. If fullPage=true, the entire scrollable page is captured rather than just the visible viewport.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public http(s) URL to screenshot"
      },
      "fullPage": {
       "type": "string",
       "description": "true for full-page capture (default false)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "contentType",
      "body"
     ],
     "properties": {
      "body": {
       "type": "string"
      },
      "contentType": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "body": "(binary PNG image)",
  "contentType": "image/png"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-screenshot-api-55fd5a11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
