# AGISHub Screenshot API

> AGISHub Screenshot API is a paid API for AI agents from api.agishub.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-16).

Captures a PNG screenshot of any public URL using a headless browser, returning the image base64-encoded, with options for full-page or viewport-only capture at custom dimensions.

## Facts

- Endpoint: POST https://api.agishub.com/paid/screenshot
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agishub-screenshot-api-2ca4aec6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T5VoPBKZ2hZLclSCx9Vn5

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 agishub-screenshot-api-2ca4aec6 -d '<json body>'
```

Example prompt: Take a full-page screenshot of https://example.com at 1440px wide and 900px tall and give me the image as base64.

## When to prefer this

Choose this endpoint when you need a rendered visual snapshot of a public webpage as a PNG image — especially useful for visual archiving, regression testing, social preview checks, or any workflow requiring a headless-browser-rendered image rather than raw HTML. Prefer this over HTML scraping when layout, CSS rendering, and visual fidelity matter. It supports both viewport-only and full-page capture modes with configurable resolution.

## Known failure modes

- Invalid or unreachable URL returns an error (non-public URLs, localhost, or firewalled hosts will fail)
- Very large full-page captures may time out or produce oversized base64 payloads
- Invalid width/height values (zero or negative) rejected by schema validation
- Private or authentication-gated pages render only login screens, not the protected content
- Network-inaccessible or DNS-failing domains return a fetch error

## How this service works

Capture a PNG screenshot of any public URL — full page or just the viewport, at a chosen size — returned base64-encoded. Backed by a headless browser.

## Output

A JSON object containing a base64-encoded PNG string of the rendered webpage. The image reflects the page as rendered by a headless browser at the specified viewport dimensions, either clipped to the viewport or capturing the full scrollable page depending on the full_page flag.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri",
       "description": "Public http/https URL to capture."
      },
      "width": {
       "type": "integer",
       "minimum": 0,
       "description": "Viewport width in pixels (default 1280).",
       "exclusiveMinimum": true
      },
      "height": {
       "type": "integer",
       "minimum": 0,
       "description": "Viewport height in pixels (default 800).",
       "exclusiveMinimum": true
      },
      "full_page": {
       "type": "boolean",
       "description": "Capture the entire scrollable page instead of just the viewport (default false)."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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