# DocForge Screenshot

> DocForge Screenshot is a paid API for AI agents from docforge-selim.duckdns.org, paid per call via x402, $0.02/call, status down (last checked 2026-09-17).

Captures a screenshot of a webpage or rendered content and returns a binary image (PNG, JPEG, or WebP) via x402 micropayment

## Facts

- Endpoint: POST https://docforge-selim.duckdns.org/screenshot
- Price: $0.02/call
- Payment: x402
- Status: down
- Last checked: 2026-09-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/docforge-screenshot-dd6b0525
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xzqU4CnBhT9ivznzVQu4w

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 docforge-screenshot-dd6b0525 -d '<json body>'
```

Example prompt: Take a screenshot of https://example.com and give me the image back as a PNG.

## When to prefer this

Choose this endpoint when you need a machine-payable, pay-per-use screenshot service that accepts USDC micropayments via x402 on Base. Ideal for AI agents that need to autonomously capture webpage visuals without subscription setup, using on-demand crypto micropayments at $0.02 per call.

## Known failure modes

- 402 Payment Required — no x402 payment header provided; must retry with valid USDC payment on Base
- Invalid or unreachable URL — target page cannot be loaded or times out
- Unsupported content type requested — format not among PNG, JPEG, WebP
- Payment insufficient — USDC amount does not meet $0.02 threshold
- Rate limiting or server unavailability on duckdns.org host

## How this service works

Machine-payable document & media generation via x402 (USDC on Base). Endpoints respond 402 with payment instructions; retry with an x402 payment header.

## Output

A binary image file in PNG, JPEG, or WebP format containing a visual screenshot of the requested webpage or content, returned directly in the HTTP response body.

## 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": [],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public http/https URL (exactly one of url/html; private hosts refused)"
      },
      "html": {
       "type": "string",
       "description": "Raw HTML instead of a URL (max 2MB)"
      },
      "width": {
       "type": "number",
       "description": "default 1280 (320-3840)"
      },
      "format": {
       "type": "string",
       "description": "png (default), jpeg or webp"
      },
      "height": {
       "type": "number",
       "description": "default 800 (200-2160)"
      },
      "quality": {
       "type": "number",
       "description": "1-100, jpeg/webp only, default 80"
      },
      "darkMode": {
       "type": "boolean",
       "description": "Emulate prefers-color-scheme: dark"
      },
      "fullPage": {
       "type": "boolean",
       "description": "Capture full page height (cap 20000px), default false"
      },
      "deviceScaleFactor": {
       "type": "number",
       "description": "1-3 (2 = retina), default 1"
      }
     }
    },
    "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": "Binary image (image/png, image/jpeg or image/webp)"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/docforge-screenshot-dd6b0525/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from docforge-selim.duckdns.org](https://www.zero.xyz/host/docforge-selim.duckdns.org/llms.txt)
