Api Endpoint

spa-dom-to-md.jannioura.workers.dev

Renders JavaScript-heavy SPA pages in real headless Chromium via Cloudflare Browser Rendering, waits for network-idle / selector-ready, strips nav/footer/script chrome, and serializes the fully-rendered DOM into clean, LLM-ready Markdown.

Open interactive test console

Offering

Provider
spa-dom-to-md.jannioura.workers.dev
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Web Search Research
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://spa-dom-to-md.jannioura.workers.dev/
MIME type
application/json
First seen
2026-10-16T01:51:30.109Z
Last seen
Tags
None supplied

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.03 USDC
Atomic price: 30000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "30000",
    "payTo": "0x86256e25d4e5511eb6dcc474a4e779970267e903"
  }
]

Observed health

Status
Healthy
Latest latency
141 ms
Average latency
497 ms
HTTP status
402
Last checked
Reachability
100% over 15 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "type": "object",
      "required": [
        "url"
      ],
      "properties": {
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Public https URL of the page to render."
        },
        "wait_for_selector": {
          "type": "string",
          "maxLength": 200,
          "description": "Optional CSS selector to wait for before extraction."
        },
        "wait_ms": {
          "type": "integer",
          "minimum": 0,
          "maximum": 15000,
          "default": 2000,
          "description": "Extra settle time after load, in milliseconds."
        },
        "markdown": {
          "type": "boolean",
          "default": true,
          "description": "Return Markdown (true) or raw rendered HTML (false)."
        },
        "strip_selectors": {
          "type": "array",
          "maxItems": 20,
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "description": "Extra CSS selectors to remove from the rendered DOM before extraction."
        }
      }
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "properties": {
            "markdown": {
              "default": true,
              "description": "Return Markdown (true) or raw rendered HTML (false).",
              "type": "boolean"
            },
            "strip_selectors": {
              "description": "Extra CSS selectors to remove from the rendered DOM before extraction.",
              "items": {
                "maxLength": 200,
                "type": "string"
              },
              "maxItems": 20,
              "type": "array"
            },
            "url": {
              "description": "Public https URL of the page to render.",
              "format": "uri",
              "type": "string"
            },
            "wait_for_selector": {
              "description": "Optional CSS selector to wait for before extraction.",
              "maxLength": 200,
              "type": "string"
            },
            "wait_ms": {
              "default": 2000,
              "description": "Extra settle time after load, in milliseconds.",
              "maximum": 15000,
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "url"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "cached": {
              "description": "True if served from the KV render cache.",
              "type": "boolean"
            },
            "content_bytes": {
              "type": "integer"
            },
            "final_url": {
              "description": "URL after redirects.",
              "type": "string"
            },
            "html": {
              "description": "Rendered HTML (present when request markdown is false).",
              "type": "string"
            },
            "http_status": {
              "type": "integer"
            },
            "markdown": {
              "description": "Rendered page as Markdown (present when request markdown is true, the default).",
              "type": "string"
            },
            "render_ms": {
              "type": "integer"
            },
            "title": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "required": [
            "url",
            "final_url",
            "http_status",
            "title",
            "content_bytes",
            "render_ms"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}