HTML to Markdown Conversion API
Convert any public webpage to clean, structured markdown for LLM ingestion, RAG pipelines, documentation generation, and content workflows — without manual HTML parsing.
How It Works
Submit the target URL
Send any webpage URL and request markdown output format. The API handles JavaScript rendering for dynamic pages.
Receive clean markdown
Get structured markdown with headings, lists, code blocks, and links preserved — HTML noise removed.
Pipe to your workflow
Feed output directly to vector stores, LLM context windows, or document generation pipelines.
Quick Start
curl -X POST https://alterlab.io/api/v1/scrape \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://docs.example.com/getting-started",
"output_format": "markdown",
"render_js": false
}'Need an API key? — no credit card required.
Related Data Extraction Guides
Related Use Cases
Frequently Asked Questions
What HTML elements are preserved in the markdown output?
Headings (h1–h6), paragraphs, ordered and unordered lists, code blocks, inline code, links, bold, italic, blockquotes, and tables are all converted to their markdown equivalents. Navigation menus, ads, and boilerplate are stripped.
Can this handle JavaScript-rendered documentation sites?
Yes. Enable JavaScript rendering in your request to capture content loaded by frameworks like React, Vue, or Next.js. This covers single-page apps and dynamically generated documentation.
Responsible Use
AlterLab is designed for extracting publicly available data. Always review the terms of service for any website you access, respect robots.txt directives, and ensure your use case complies with applicable laws in your jurisdiction.
Scraping Guides & Resources
Best Web Scraping APIs in 2026
In-depth comparison of top APIs by cost, features, and success rates.
Anti-Bot Handling API
Automatic challenge handling for protected sites — works out of the box.
Web Scraping Pipelines for AI Agents
Build LLM-ready data pipelines that minimize token waste and extraction cost.
Pricing
From $0.0002/request. No subscriptions. Balance never expires.
Your first scrape.
Sixty seconds.
$1 free credit — up to 5,000 scrapes. No credit card.
Just a POST request.
No credit card required · $1 free credit, up to 5,000 scrapes · Balance never expires