# Markdown to Plain Text Converter

> Markdown to Plain Text Converter is a paid API for AI agents from markup-tools.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-02).

Strips CommonMark/GFM Markdown syntax from text, returning clean plain text with optional link URL preservation and code block handling.

## Facts

- Endpoint: GET https://markup-tools.x402tookit.com/markdown-to-text?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/markdown-to-plain-text-converter-558461fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ItlJsJniTe2oDvKtlZhS9

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 markdown-to-plain-text-converter-558461fd
```

Example prompt: Strip all the Markdown formatting from this text and give me clean plain text — keep the link URLs in parentheses after the link text, and drop the code block contents: '# Hello World\n\nThis is **bold** and [a link](https://example.com).\n\n```js\nconsole.log("hi");\n```'

## When to prefer this

Choose this endpoint when you need to convert CommonMark or GitHub Flavored Markdown to plain text with fine-grained control over code block handling and link URL preservation. It is purpose-built for Markdown (not generic HTML), so prefer it over HTML-to-text sibling endpoints when your input is .md files, README content, blog posts, or any GFM-formatted string up to 20,000 characters.

## Known failure modes

- Markdown input exceeds 20,000 characters — returns HTTP 400
- Missing required 'markdown' query parameter — returns 400 validation error
- Invalid value for 'code' parameter (not 'keep' or 'drop') — may return 400
- Payment not provided or insufficient — returns 402 Payment Required
- Malformed URL or network error reaching endpoint

## How this service works

Strip CommonMark/GFM syntax to plain text: emphasis, links, images, headings, lists, quotes, code fences, HTML, front matter.

## Output

Returns a JSON object containing the extracted plain text string, character count, link count, image count, detected front matter metadata (format, line count, keys), and optionally appended link URLs — with all Markdown syntax removed according to specified options.

## 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": [
      "markdown"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "keep (default) leaves code block contents; drop removes them"
      },
      "urls": {
       "type": "boolean",
       "description": "true to append link URLs in parentheses after link text (default false)"
      },
      "markdown": {
       "type": "string",
       "description": "Markdown, up to 20000 characters (longer is refused with 400)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "text": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "linkCount": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "imageCount": {
       "type": [
        "null",
        "number"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "frontMatter": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "keys": {
         "type": [
          "array",
          "null"
         ],
         "items": {
          "type": "string"
         }
        },
        "lines": {
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/markdown-to-plain-text-converter-558461fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from markup-tools.x402tookit.com](https://www.zero.xyz/host/markup-tools.x402tookit.com/llms.txt)
