# Extract API – JavaScript-Rendered HTML Fetch

> Extract API – JavaScript-Rendered HTML Fetch is a paid API for AI agents from extract-x402.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-24).

Fetches a URL with a headless browser, executes JavaScript, and returns rendered HTML as structured text, Markdown, links, metadata, and optionally a base64 screenshot.

## Facts

- Endpoint: GET https://extract-x402.vercel.app/v1/render?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/extract-api-javascript-rendered-html-fetch-2249987a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_71q0NGGCMhy25mtFplp6v

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 extract-api-javascript-rendered-html-fetch-2249987a
```

Example prompt: Render the page at https://example.com/dashboard using a headless browser, wait 3000ms after network idle, and give me the clean text, Markdown, all links, and a full-page screenshot.

## When to prefer this

Choose this endpoint when the target page relies on JavaScript rendering (React, Vue, Angular SPAs) and a plain HTTP fetch would return an empty or partial DOM. It is ideal when you need a screenshot alongside extracted content, or when you need Markdown/structured output plus metadata like JSON-LD and Open Graph tags from a fully rendered page. For static HTML pages where JS is not needed, the cheaper $0.01 extract endpoint is more appropriate.

## Known failure modes

- Target URL is unreachable or returns a non-2xx HTTP status (httpStatus field reflects the upstream code)
- waitMs exceeds 8000ms maximum — request is rejected or capped
- Page uses bot-detection or Cloudflare challenge — rendered content may be incomplete or a challenge page
- URL is not an absolute http/https URL — request fails schema validation
- Page takes too long to reach network idle — render may time out
- Screenshot is very large for full-page captures — response payload may be very large

## How this service works

Paid web & document extraction (single or batch), rendering, screenshots, URL-to-PDF and site intelligence for AI agents. Payment via x402 (HTTP 402) in USDC on Base (eip155:8453). $0.01 per extract/sitemap/feed, $0.02 per render/screenshot/pdf, $0.03 per site-intel, $0.05 per 10-URL batch.

## Output

A JSON object containing: rendered plain text, Markdown version of main content, page title, language, meta tags (including Open Graph), headings array with levels, links array with href and text, JSON-LD blobs, excerpt, word count, byte size, HTTP status, render time in ms, and optionally a base64-encoded screenshot — all extracted after full JavaScript execution.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Absolute http(s) URL"
      },
      "waitMs": {
       "type": "string",
       "description": "Extra wait after network idle, max 8000"
      },
      "fullPage": {
       "type": "string",
       "description": "1 for full-page screenshot"
      },
      "screenshot": {
       "type": "string",
       "description": "1 to include a base64 screenshot"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lang": "en",
  "meta": {
   "og:title": "Example page"
  },
  "text": "Clean main content as plain text...",
  "type": "html",
  "bytes": 48213,
  "links": [
   {
    "href": "https://example.com/about",
    "text": "About"
   }
  ],
  "title": "Example page",
  "jsonld": [],
  "excerpt": "Short description",
  "headings": [
   {
    "text": "Example page",
    "level": 1
   }
  ],
  "markdown": "# Example page\n\nClean main content as Markdown...",
  "renderMs": 2100,
  "rendered": true,
  "wordCount": 420,
  "httpStatus": 200,
  "processingMs": 180
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/extract-api-javascript-rendered-html-fetch-2249987a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from extract-x402.vercel.app](https://www.zero.xyz/host/extract-x402.vercel.app/llms.txt)
