Markdown to HTML API
Convert Markdown to HTML via REST API. Supports GitHub Flavored Markdown (GFM) including tables, task lists, strikethrough, fenced code blocks, and inline HTML. Returns clean, sanitized HTML ready to render in a browser.
Try it live →How it works
POST a Markdown string. The API parses it and returns equivalent HTML. Supports standard Markdown headings, bold, italic, links, images, code blocks (with optional language hint), blockquotes, ordered and unordered lists, and horizontal rules.
Use cases
- Render Markdown content in a CMS or blog platform
- Convert README files to HTML for documentation sites
- Process LLM outputs (often in Markdown) for display in web apps
- Generate HTML email bodies from Markdown templates
API Reference
POST https://slopshop.gg/v1/text-markdown-to-html
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Input parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text / input |
string | required | The text or data to process |
Example response
{
"data": {
"result": "[{\"key\":\"value\"}]",
"rows": 1
},
"meta": {
"credits_used": 1,
"engine": "real",
"ms": 4
}
}
Examples
Three real-world scenarios showing how developers use Markdown to HTML in production.
curl -X POST https://slopshop.gg/v1/text-markdown-to-html \
-H "Authorization: Bearer $SLOPSHOP_KEY" \
-H "Content-Type: application/json" \
-d '{"markdown": "## Summary\n\nThe analysis shows **three key findings**:\n\n1. Revenue increased 15%\n2. Costs decreased 8%\n3. Net margin improved to 22%"}'
curl -X POST https://slopshop.gg/v1/text-markdown-to-html \
-H "Authorization: Bearer $SLOPSHOP_KEY" \
-H "Content-Type: application/json" \
-d '{"markdown": "# My Library\n\nInstall with:\n\n```bash\nnpm install my-library\n```\n\n## Usage\n\nSee [docs](https://docs.example.com) for details."}'
curl -X POST https://slopshop.gg/v1/text-markdown-to-html \
-H "Authorization: Bearer $SLOPSHOP_KEY" \
-H "Content-Type: application/json" \
-d '{"markdown": "Hi {{name}},\n\nYour **trial expires in 3 days**. [Upgrade now](https://app.example.com/upgrade) to keep access."}'
Code examples
curl
curl -X POST https://slopshop.gg/v1/text-markdown-to-html \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input": "your data here"}'
Python
import requests
response = requests.post(
"https://slopshop.gg/v1/text-markdown-to-html",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"input": "your data here"}
)
result = response.json()
print(result["data"])
Node.js
const response = await fetch("https://slopshop.gg/v1/text-markdown-to-html", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({ input: "your data here" })
});
const { data } = await response.json();
console.log(data);
CLI
# Install the Slopshop CLI
npm install -g slopshop
# Set your API key
export SLOPSHOP_KEY=your_api_key
# Call text-markdown-to-html
slop text-markdown-to-html '{"input": "your data here"}'
Pricing
Credits are purchased in bundles starting at $1 for 1,000 credits. All compute APIs like this one use 1 credit per call — that's $0.001. See all pricing tiers.
Related APIs in Data Transform
View the full API catalog · Try in playground · Documentation