DocumentationCapture HTML or Markdown

Capture HTML or Markdown

Render static content without hosting it.

POST/v1/capture

Render HTML or Markdown

Provide content directly instead of a URL.

HTML input

{
  "html": "<main><h1>Weekly report</h1><p>Status: green</p></main>",
  "format": "png",
  "viewport": { "width": 1200, "height": 800 }
}

Markdown input

{
  "markdown": "# Release notes\n\n- New feature\n- Faster renders",
  "format": "pdf",
  "media_type": "screen"
}

Style the output

{
  "markdown": "# Status report\n\nEverything is green.",
  "customize": {
    "css": "body{font-family:Inter, sans-serif} h1{color:#0f172a}"
  }
}

Notes

  • Provide exactly one of html or markdown.
  • HTML/Markdown supports the same viewport, wait, and storage options.
Updated 1 day ago
Did this page help you?