# GEDX402 Browser Screenshot

> GEDX402 Browser Screenshot is a paid API for AI agents from browser.gedx402.com, paid per call via x402, $0.06/call, status unknown (last checked 2026-09-15).

Captures a full-page or element-level PNG/JPEG screenshot of a given URL or raw HTML using a headless browser, returning base64-encoded image data

## Facts

- Endpoint: GET https://browser.gedx402.com/v1/browser/screenshot
- Price: $0.06/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-browser-screenshot-b2215dd4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WFJlZGO7Ga3UfItjYA_38

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 gedx402-browser-screenshot-b2215dd4
```

Example prompt: Take a full-page screenshot of https://example.com and give me back the image — I want to see exactly what the page looks like right now.

## When to prefer this

Use this endpoint when you need a visual screenshot of any public URL or rendered HTML and want to pay per-call in USDC without managing API keys or subscriptions. Prefer it over browser automation SDKs when you need a lightweight, pay-as-you-go screenshot API. It's ideal for AI agents that need visual context about a webpage, thumbnail generation, or visual QA — especially when operating in crypto-native or keyless environments.

## Known failure modes

- Invalid or unreachable URL returns an error or blank image
- Timeout if the page takes too long to load (gotoOptions.waitUntil can help)
- JavaScript-heavy SPAs may not render fully without waitUntil: networkidle0
- Invalid viewport or screenshotOptions cause parameter validation errors
- Payment failure (insufficient USDC balance or unsupported chain) results in HTTP 402 with no image returned
- Raw HTML that references external resources may not load them fully in the sandbox

## How this service works

x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.

## Output

A JSON object containing a base64-encoded PNG (or JPEG) screenshot of the rendered page under the key `data_base64`, and the MIME type under `content_type` (e.g. `image/png`). The image can be decoded and displayed or saved directly.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "HTTPS URL to load (required unless html is set)."
  },
  "html": {
   "type": "string",
   "description": "Raw HTML to render instead of fetching a URL."
  },
  "prompt": {
   "type": "string",
   "description": "Natural-language extraction prompt (for /json)."
  },
  "elements": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "description": "Scrape selectors (for /scrape)."
  },
  "selector": {
   "type": "string",
   "description": "CSS selector for element capture or scrape."
  },
  "viewport": {
   "type": "object",
   "description": "Browser viewport width/height/deviceScaleFactor."
  },
  "pdfOptions": {
   "type": "object",
   "description": "PDF print options."
  },
  "gotoOptions": {
   "type": "object",
   "description": "Puppeteer goto options (e.g. waitUntil: networkidle0)."
  },
  "response_format": {
   "type": "object",
   "description": "JSON schema for structured /json extraction."
  },
  "screenshotOptions": {
   "type": "object",
   "description": "fullPage, type, omitBackground, etc."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data_base64": "<base64>",
  "content_type": "image/png"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-browser-screenshot-b2215dd4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from browser.gedx402.com](https://www.zero.xyz/host/browser.gedx402.com/llms.txt)
