BiGapiguides
POST /v1/html/to-markdown · 1 cent per operation

HTML → Markdown

You already have the HTML: extract the readable article as Markdown — navigation, headers, footers, sidebars and scripts stripped. No browser, no network, milliseconds. The sibling of url/to-markdown.

Try it

curl -X POST https://api.bigapi.dev/v1/html/to-markdown -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' -d '{"html":"<h1>Title</h1><p>Text</p>"}' -o page.md

New keys come with 100 free operations, no signup: curl -X POST https://api.bigapi.dev/v1/keys. Failed calls cost nothing.

Parameters

NameMeaning
html requiredRaw HTML to convert (or upload a file instead).
modearticle keeps the main text and drops navigation, header, footer, sidebars and forms; full keeps everything.
Allowed: article, full
Default: "article"
baseUrlAddress of the original page; relative links become full links.
Default: links stay as they are
outputmd returns a Markdown file, json returns the Markdown with title and mode.
Allowed: md, json
Default: "md"

Result and price

1¢ · 1 cent per operation

Returns text/markdown | application/json. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).

From an agent (MCP)

Connect BiGapi as an MCP server: https://api.bigapi.dev/mcp (hosted) or npx -y @bigapi/mcp (local). Then ask in plain words; the agent finds html_to_markdown on its own.