# AGISHub Page Snapshot

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

Captures multiple representations of a web page in one call — rendered HTML, PNG screenshot, Markdown, and/or accessibility tree — using a headless browser.

## Facts

- Endpoint: POST https://api.agishub.com/paid/snapshot
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agishub-page-snapshot-f87c6704
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h8E5EIfplNXQkEfY7bW9z

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-page-snapshot-f87c6704 -d '<json body>'
```

Example prompt: Take a snapshot of https://example.com — I need both the rendered HTML and a PNG screenshot, using a 1440px wide viewport and capturing the full scrollable page.

## When to prefer this

Choose this endpoint when you need more than one representation of a page simultaneously — e.g., both visual and HTML or Markdown — and want to avoid multiple round-trips. It is ideal for agents that need to both read page content and verify the visual layout, or that need accessibility tree data alongside rendered content. Prefer the simpler fetch-to-Markdown sibling endpoint if you only need clean text content and no screenshot.

## Known failure modes

- Invalid or unreachable URL returns an error with a connection or DNS failure message
- Timeout if the target page takes too long to load or render
- Invalid format values in the formats array cause a validation error
- Width or height of 0 or less is rejected by the schema
- Payment failure via x402 protocol results in a 402 response before any capture occurs

## How this service works

Capture several representations of a page in one call — rendered HTML plus a PNG screenshot by default, and optionally Markdown and the accessibility tree. Backed by a headless browser. Saves round-trips when an agent needs both the content and a visual of a page.

## Output

A JSON object containing the requested representations of the page: rendered HTML string, a base64-encoded PNG screenshot, Markdown text, and/or the accessibility tree — depending on which formats were requested. All are returned in a single response, eliminating the need for multiple round-trips.

## 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": "Full 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
      },
      "formats": {
       "type": "array",
       "items": {
        "enum": [
         "html",
         "screenshot",
         "markdown",
         "accessibilityTree"
        ],
        "type": "string"
       },
       "description": "Which representations to return (default ['html','screenshot']). Add 'markdown' and/or 'accessibilityTree' as needed."
      },
      "full_page": {
       "type": "boolean",
       "description": "Capture the full scrollable page in the screenshot 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-page-snapshot-f87c6704/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)
