# 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-13).

Captures a PNG screenshot of any public URL using a headless browser, returning the image base64-encoded, with configurable viewport size and full-page or viewport-only capture.

## Facts

- Endpoint: GET https://api.agishub.com/v1/screenshot
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agishub-screenshot-api-5c137cab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4QNC4zPnn7SRV2_caON6e

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-5c137cab
```

Example prompt: Can you take a screenshot of https://example.com at 1920x1080 and capture the full scrollable page, not just the viewport?

## When to prefer this

Use this endpoint when you need a visual, pixel-accurate PNG rendering of a public webpage — especially when you need the base64-encoded image for downstream processing, storage, or display. Prefer this over full-page crawl endpoints when the goal is a visual snapshot rather than text or structured data extraction. Choose this over multi-representation endpoints (HTML + screenshot combos) when you only need the image.

## Known failure modes

- URL is not publicly accessible or requires authentication — screenshot may be blank or show an error page
- Invalid or malformed URL returns a validation error
- Target page takes too long to load, causing a timeout
- Width or height set to 0 or negative triggers schema validation failure
- Private/intranet URLs that are unreachable from the headless browser return an error or empty image

## 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 representing the captured screenshot of the requested URL. The image reflects the rendered state of the page at the requested viewport dimensions, either clipped to the viewport or expanded to the full scrollable page depending on the full_page parameter.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "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
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "Capture a PNG screenshot of any public URL — full page or just the viewport, at a chosen size — returned base64-encoded."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agishub-screenshot-api-5c137cab/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)
