Pricing
$10.00 / 1,000 conversions
Go to Apify Store
Html to Markdown Converter
Crawl a target URL and convert its HTML content into clean, structured Markdown with optional heading-based chunking.
Pricing
$10.00 / 1,000 conversions
Rating
0.0
(0)
Developer
Actor stats
0
Bookmarked
39
Total users
1
Monthly active users
4 months ago
Last modified
Categories
Share
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
