# Web Screenshot

> Web Screenshot is a paid API for AI agents from 1gateway.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-04).

Captures a screenshot of any public web page and returns it as a base64-encoded image

## Facts

- Endpoint: GET https://1gateway.dev/v1/web/screenshot?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-screenshot-ce7dc3c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__E557MGc4TFrABS1YG4Lq

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 web-screenshot-ce7dc3c1
```

Example prompt: Can you take a screenshot of https://stripe.com/ at 1280px wide in jpeg format so I can see what the homepage looks like right now?

## When to prefer this

Choose this endpoint when you need a visual rendering of a live web page without maintaining your own browser infrastructure. It is ideal for one-off visual checks, visual regression snapshots, or any agentic workflow that needs to see what a URL looks like rather than extract its raw HTML. The per-call pricing model ($0.01 USDC) with no signup makes it practical for infrequent or programmatic use without committing to a subscription.

## Known failure modes

- Invalid or non-public URL returns an error without charge
- Timeout if the target page takes too long to load
- Private or authentication-gated pages may render a login screen rather than the intended content
- URLs not matching the http/https pattern are rejected by schema validation
- Very wide viewports (>1920px) or narrow ones (<320px) are rejected

## How this service works

Use when an agent must see how a page looks (layout, charts, visual QA, previews), not just its text. Input: url, width (320-1920, default 1280), full_page=1 for the whole page, format png or jpeg (default). Output: JSON imageBase64 (decode to the image), contentType, bytes, viewport. Renders JavaScript. Daily cap or bad URL refused before payment. Example: ?url=https://example.com/

## Output

A JSON object containing: the captured image as a base64-encoded string (imageBase64), the image format (jpeg or png), content type, viewport dimensions (width and height in px), whether full-page mode was used, file size in bytes, browser render time in milliseconds, the capture timestamp (ISO 8601), and any notes about the rendering environment (e.g. headless Chromium on Cloudflare Browser Rendering).

## 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",
       "pattern": "^https?://",
       "maxLength": 2048,
       "description": "Public http(s) page URL"
      },
      "width": {
       "type": "integer",
       "maximum": 1920,
       "minimum": 320,
       "description": "Viewport width in px (default 1280; height = 0.625 x width)"
      },
      "format": {
       "enum": [
        "png",
        "jpeg"
       ],
       "type": "string",
       "description": "Image format (default jpeg)"
      },
      "full_page": {
       "enum": [
        "0",
        "1"
       ],
       "type": "string",
       "description": "1 = capture the whole scrollable page"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "url",
      "format",
      "contentType",
      "viewport",
      "fullPage",
      "bytes",
      "imageBase64",
      "browserMs",
      "upstreamCostUsd"
     ],
     "properties": {
      "url": {
       "type": "string"
      },
      "bytes": {
       "type": "integer"
      },
      "format": {
       "type": "string"
      },
      "fullPage": {
       "type": "boolean"
      },
      "viewport": {
       "type": "object",
       "properties": {
        "width": {
         "type": "integer"
        },
        "height": {
         "type": "integer"
        }
       },
       "additionalProperties": true
      },
      "browserMs": {
       "type": "integer"
      },
      "contentType": {
       "type": "string"
      },
      "imageBase64": {
       "type": "string"
      },
      "costEstimated": {
       "type": "boolean"
      },
      "upstreamCostUsd": {
       "type": "number"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com/",
  "bytes": 68,
  "notes": [
   "Rendered by a headless Chromium on Cloudflare Browser Run; the page content belongs to its publisher."
  ],
  "format": "jpeg",
  "fullPage": false,
  "viewport": {
   "width": 1280,
   "height": 800
  },
  "browserMs": 2140,
  "capturedAt": "2026-10-26T12:00:00.000Z",
  "contentType": "image/jpeg",
  "imageBase64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-screenshot-ce7dc3c1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 1gateway.dev](https://www.zero.xyz/host/1gateway.dev/llms.txt)
