
Html to Markdown Converter
Pricing
$10.00 / 1,000 conversions
Go to Store

Html to Markdown Converter
Crawl a target URL and convert its HTML content into clean, structured Markdown with optional heading-based chunking.
0.0 (0)
Pricing
$10.00 / 1,000 conversions
0
Total users
1
Monthly users
1
Runs succeeded
>99%
Last modified
2 days ago
Html to Markdown Converter
Convert HTML pages to clean, structured Markdown with optional heading-level chunking.
This Apify actor crawls one or more URLs, extracts HTML content and converts it into readable Markdown. It supports both full-document conversion and heading-based section chunking (h1–h6
).
🚀 Features
- 🕷️ Crawl any public website
- 🪄 Convert HTML to GitHub-style Markdown
- 🧩 Automatically chunk content by heading
- 🧼 Cleans up temporary crawl artifacts
- 🐞 Logs crawl/parsing issues to Apify logs
📥 Input Example
{"urls": ["https://apify.com"],"output_format": "json","debug": false}
Field | Type | Description |
---|---|---|
urls | array | List of URLs to crawl |
output_format | string | "json" or "df" (DataFrame-like) |
debug | boolean | Enables verbose logging |
📤 Output Example
Each record includes:
url
– Source URLmarkdown
– Full converted contentchunks
– Markdown split into sections by heading
{"url": "https://apify.com","markdown": "# Welcome to Apify\n...","chunks": ["# Welcome to Apify","## What is Apify?","## Get Started"]}
▶️ Usage
You can run this actor:
🟣 Apify CLI
$apify call antonio_espresso/html-to-markdown-converter --input '{ "urls": ["https://apify.com"] }'
🐍 Python
import requestsACTOR_ID = "antonio_espresso/html-to-markdown-converter"TOKEN = "APIFY_API_TOKEN" # Replace with your tokenresponse = requests.post(f"https://api.apify.com/v2/actor-tasks/{ACTOR_ID}/runs",headers={"Authorization": f"Bearer {TOKEN}"},json={"urls": ["https://apify.com"], "output_format": "json"})print(response.json())
👨💻 Author
Made with ❤️ by SEO Antonio Blago
🔗 My Other Apify Actors:
- 🔍 Competitor-Based Keyword Recommendations
- 🧠 LLMs.txt Generator
- 💡 AI Prompt Keyword Matcher
- 📰 Markdown to Social Media Post
- 🌐 HTTP Status Codes and URL Checker
⚙️ Tech Stack
- Python 3.10+
- Apify SDK for Python
- Advertools for Markdown generation
🧪 Local Dev
pip install -r requirements.txtpython src/markdown_convert.py
Push to Apify:
$apify push
🧼 License
MIT