# ScriptMasterLabs Web-to-Markdown Reader

> ScriptMasterLabs Web-to-Markdown Reader is a paid API for AI agents from scriptmasterlabs.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Fetches a public webpage by URL and returns its content as clean, LLM-ready Markdown text

## Facts

- Endpoint: GET https://scriptmasterlabs.com/api/web/read-markdown?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-web-to-markdown-reader-ac2b0aaf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YmvcSc6Ho9t9fUvvXfROK

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 scriptmasterlabs-web-to-markdown-reader-ac2b0aaf
```

Example prompt: Grab the content of https://docs.example.com/getting-started and convert it to clean markdown so I can feed it into my LLM pipeline — limit it to 10000 characters.

## When to prefer this

Choose this endpoint when an AI agent needs to read a live public webpage and get its content as clean, LLM-ready markdown in real time, especially within a pay-per-call x402 micropayment workflow. It is well-suited for single-URL fetches where the agent needs structured text without running its own browser or scraping infrastructure. Prefer alternatives if you need full-site crawling, JavaScript-heavy SPA rendering, or bulk URL processing.

## Known failure modes

- Target URL is not publicly accessible or returns a non-200 status — may return an error or empty markdown
- URL points to a PDF or non-HTML resource that cannot be converted to markdown
- Target page uses heavy JavaScript rendering that the reader cannot execute — content may be partial or missing
- max_chars parameter outside the 1000–50000 range may cause rejection or unexpected truncation
- Payment not accepted or x402 protocol misconfiguration results in 402 response with no content delivered

## How this service works

Pay-per-call APIs and a read-only provider check for x402 buyers. Inspect evidence and live terms before a caller-controlled payment; accept delivery with proof.

## Output

A JSON object containing a 'status' field (e.g. 'ready'), a 'product' label ('SML Agent Web Access'), the full 'markdown' string of the converted page content, the 'price_usdc' charged per call, and the 'source_url' that was fetched. On success, the markdown field contains clean, LLM-ready text extracted from the target page.

## 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": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public HTTPS URL to convert to LLM-ready Markdown Search intents: url to markdown api, url to markdown, url to markdown converter, convert url to markdown, webpage to markdown, website to markdown, html to markdown, web scraping api for ai agents, llm ready web."
      },
      "format": {
       "enum": [
        "json"
       ],
       "type": "string",
       "description": "Bazaar discovery uses JSON; omit for raw text/markdown Search intents: url to markdown api, url to markdown, url to markdown converter, convert url to markdown, webpage to markdown, website to markdown, html to markdown, web scraping api for ai agents, llm ready web."
      },
      "max_chars": {
       "type": "string",
       "description": "Maximum extracted text characters, 1000-50000 Search intents: url to markdown api, url to markdown, url to markdown converter, convert url to markdown, webpage to markdown, website to markdown, html to markdown, web scraping api for ai agents, llm ready web."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "ready",
  "product": "SML Agent Web Access",
  "markdown": "# Example Domain\n\nExample Domain ...",
  "price_usdc": "0.001",
  "source_url": "https://example.com/",
  "technical_service": "SML x402 Clean Web Reader"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-web-to-markdown-reader-ac2b0aaf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scriptmasterlabs.com](https://www.zero.xyz/host/scriptmasterlabs.com/llms.txt)
