Defuddle

Readable markdown from any web page

Content selector

Skips auto-detection and uses this element as the content. Try .markdown-body for GitHub READMEs.

API

Put any page URL after the endpoint to get its markdown as plain text:

GET /api/defuddle/https://example.com/article

Add ?json=1 for the full result with title, author, published, wordCount and more, and ?selector=.content to pick the content element. Send pasted HTML as JSON:

curl -X POST https://kamalnrf.com/api/defuddle \
  -H 'Content-Type: application/json' \
  -d '{"html": "<html>…</html>", "url": "https://example.com", "selector": ".article"}'
Pages are fetched and parsed on this site's server with defuddle. No JavaScript runs, so pages that build their content in the browser may come back empty.