API · 10 free calls, then LTC

MD2HTML API

Convert Markdown to HTML via API. Simple. Fast. Crypto-micropay.

Live Demo

Ready.

Conversion hits POST http://147.15.103.217/md2html/convert in real time. First 10 calls are free.

Why MD2HTML?

📦

No Dependencies

Pure REST + JSON. Drop one fetch() into your code — no SDK to install, no build step, no runtime bloat. Anywhere HTTP runs, MD2HTML runs.

🪙

Micropayments

$0.001 per call, billed in Litecoin. No subscriptions, no credit cards, no lock-in. Top up your on-chain balance once and ship — no middleman taking a cut.

🔓

Open Source

Full source on GitHub. Read the code, file issues, send PRs, or fork it. No black box — you always know what's running.

Dead Simple

One endpoint, one JSON body. {"markdown": "..."} in, {"html": "..."} out. No auth keys, no setup wizard, no learning curve. You're converted in 10 seconds.

Quick Start

# Convert markdown to HTML in one request
    curl -X POST http://147.15.103.217/md2html/convert \\
      -H "Content-Type: application/json" \\
      -d '{"markdown": "# Hello\\n**World** & *go*"}'

    # Response
    # {"html": "

Hello

\\nWorld & go"}

API Endpoints

POST/convert

Convert a Markdown document to HTML. Body: {"markdown": "..."}. Returns {"html": "..."}.

curl -X POST http://147.15.103.217/md2html/convert \\
  -H "Content-Type: application/json" \\
  -d '{"markdown": "# Title\\nText."}'

GET/health

Liveness probe. Returns service uptime and status JSON. No auth required.

curl http://147.15.103.217/md2html/health
# {"status":"ok","uptime":4321}

GET/docs

Interactive API documentation (auto-generated). Explore all endpoints in your browser.

# open in a browser
http://147.15.103.217/md2html/docs

POST/payment

Top up your API quota by reporting an LTC transaction. Body: {"txid": "...", "amount": 0.01}.

curl -X POST http://147.15.103.217/md2html/payment \\
  -H "Content-Type: application/json" \\
  -d '{"txid":"abc123","amount":0.05}'

GET/usage

Current month's call count and remaining free quota. Returns balance JSON.

curl http://147.15.103.217/md2html/usage
# {"calls":24,"free_remaining":0,"credits":0.05}

GET/stats

Aggregate service metrics: total calls, revenue (LTC), and uptime. Public, read-only.

curl http://147.15.103.217/md2html/stats
# {"total_calls":12340,"revenue":1.23,"uptime_rate":0.999}

Rate Limiting

30 requests/min per client · 10 free calls then top-up with LTC. Over the limit returns 429. Free tier resets 10 credits at first run, after which calls require a positive LTC balance posted via /payment.

Pricing

$0.001 per call

Pay via Litecoin — no subscriptions, no upfront cost, no card required.

Pay with Litecoin

Las7JLihEnYvACUt4jgxqcFcsFZrD3RgVM

Send any amount of LTC; fund balance is applied per call. Direct on-chain, no middleman.

Join the Waitlist

Be the first to know when we launch. No spam.

FAQ