DocumentationCapture HTML or Markdown
Capture HTML or Markdown
Render static content without hosting it.
POST
/v1/captureRender 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
htmlormarkdown. - HTML/Markdown supports the same
viewport,wait, andstorageoptions.
Updated 1 day ago