# md.fastdb.in Screenshot URL to PNG/JPEG

> md.fastdb.in Screenshot URL to PNG/JPEG is a paid API for AI agents from md.fastdb.in, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).

Captures a full-rendered screenshot of any public URL using headless Chromium, returning PNG or JPEG with support for full-page, retina, and CSS-selector element capture.

## Facts

- Endpoint: POST https://md.fastdb.in/shot/shot?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/md-fastdb-in-screenshot-url-to-png-jpeg-7b126061
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v5U5lGehnei0_b4lNK-Bq

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 md-fastdb-in-screenshot-url-to-png-jpeg-7b126061 -d '<json body>'
```

Example prompt: Take a full-page retina screenshot of https://example.com and give me a PNG — wait 2000ms after load to make sure everything has rendered.

## When to prefer this

Choose this endpoint when you need a pixel-accurate, JS-rendered visual capture of a live public webpage — especially SPAs that require JavaScript execution. Prefer it over static HTML scrapers when visual proof, archival screenshots, or element-level captures are needed. Use over PDF conversion when a raster image (not a printable document) is the desired output.

## Known failure modes

- Private or localhost URLs are rejected — only public hosts are supported
- Selector not found on page results in an error or empty capture
- Timeout if waitMs is set too high or the page never finishes loading
- JPEG quality parameter ignored when format is PNG
- Width/height outside 320–1920 range returns validation error
- Non-HTTP/HTTPS URLs are rejected

## How this service works

Screenshot any URL as PNG/JPEG through real headless Chromium — full JS rendering (SPAs work), fullPage or viewport, CSS-selector element capture, retina scale. Agent eyes for the web: verify pages visually, archive proof, capture previews. $0.005 per call via x402.

## Output

Returns either a JSON object wrapping a base64-encoded image string (default) or raw binary image bytes, in PNG or JPEG format, representing the fully JS-rendered visual state of the requested URL at the specified viewport and scale.

## 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": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Page to capture (http/https, public hosts only)"
      },
      "scale": {
       "enum": [
        1,
        2
       ],
       "type": "number",
       "description": "Device scale factor (2 = retina), default 1"
      },
      "width": {
       "type": "integer",
       "maximum": 1920,
       "minimum": 320,
       "description": "Viewport width, default 1280"
      },
      "format": {
       "enum": [
        "png",
        "jpeg"
       ],
       "type": "string",
       "description": "Image format, default png"
      },
      "height": {
       "type": "integer",
       "maximum": 1920,
       "minimum": 240,
       "description": "Viewport height, default 800"
      },
      "waitMs": {
       "type": "integer",
       "maximum": 10000,
       "minimum": 0,
       "description": "Extra settle time after load, ms"
      },
      "quality": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "description": "JPEG quality, default 80 (jpeg only)"
      },
      "fullPage": {
       "type": "boolean",
       "description": "Capture the entire scrollable page, default false"
      },
      "response": {
       "enum": [
        "json",
        "binary"
       ],
       "type": "string",
       "description": "json (default) wraps base64; binary returns raw image bytes"
      },
      "selector": {
       "type": "string",
       "description": "CSS selector — capture just this element"
      }
     }
    },
    "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": {
  "ok": true,
  "b64": "<base64-encoded image>",
  "bytes": 48213,
  "width": 1280,
  "height": 800,
  "sha256": "9f7d…",
  "tookMs": 1450,
  "contentType": "image/png"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/md-fastdb-in-screenshot-url-to-png-jpeg-7b126061/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from md.fastdb.in](https://www.zero.xyz/host/md.fastdb.in/llms.txt)
