HTML, Markdown & URL to PDF API
Published by @mdforge
· Verified
99.98% uptime
~35ms avg
AI Score 94/100
Convert structured HTML, Markdown documents, or public article URLs into clean multi-page PDFs with headers, footers & page numbers.
Try it live
https://api.indieapis.com/v1/html-markdown-to-pdf/from-markdown
Render headings, lists, tables, blockquotes, and code blocks into a crisp A4/Letter PDF.
Response
Press Run to call the live API
{
"ok": true
}
Overview
Convert structured HTML, Markdown documents, or public article URLs into clean multi-page PDFs with headers, footers & page numbers.
Self-hosted production API with hard monthly spend caps ($0 surprise overages) and native Streamable HTTP MCP support.
Gateway Headers & Hard Caps
Every response includes X-Quota-Limit, X-Quota-Used, X-Quota-Remaining, and X-Quota-Reset.
When your monthly quota is reached, the gateway returns 429 QUOTA_EXCEEDED so you are never billed surprise overages.
3 endpoints
| Method | Path | Parameters | Description |
|---|---|---|---|
| POST | /from-markdown |
title, markdown*, page_size
|
Render headings, lists, tables, blockquotes, and code blocks into a crisp A4/Letter PDF. |
| POST | /from-html |
title, html*, page_size
|
Convert semantic HTML (h1-h3, p, ul/li, table, pre, blockquote) into a paginated PDF. |
| GET | /from-url |
url*, page_size
|
Fetch a public webpage, extract clean readable structure, and export as a paginated PDF. |