Data Transform 1 credit COMPUTE

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

API Reference

POST https://slopshop.gg/v1/text-markdown-to-html
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Input parameters

ParameterTypeRequiredDescription
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.

Example 1
Render LLM output
Convert Markdown returned by Claude into HTML for display in a web app.
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%"}'
Example 2
Render README as docs page
Convert a project README.md to HTML for a documentation site.
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."}'
Example 3
Render email body
Convert a Markdown template into HTML for an email campaign.
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 per call
1
credits
Cost per call
$0.001
at Starter tier
Tier
COMPUTE
Pure compute

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