Html to Markdown Converter avatar
Html to Markdown Converter

Pricing

$10.00 / 1,000 conversions

Go to Store
Html to Markdown Converter

Html to Markdown Converter

Developed by

Antonio Blago

Antonio Blago

Maintained by Community

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
}
FieldTypeDescription
urlsarrayList of URLs to crawl
output_formatstring"json" or "df" (DataFrame-like)
debugbooleanEnables verbose logging

📤 Output Example

Each record includes:

  • url – Source URL
  • markdown – Full converted content
  • chunks – 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 requests
ACTOR_ID = "antonio_espresso/html-to-markdown-converter"
TOKEN = "APIFY_API_TOKEN" # Replace with your token
response = 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:


⚙️ Tech Stack

  • Python 3.10+
  • Apify SDK for Python
  • Advertools for Markdown generation

🧪 Local Dev

pip install -r requirements.txt
python src/markdown_convert.py

Push to Apify:

$apify push

🧼 License

MIT