Web Scraping API

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.

60–80% LLM context token savings vs raw HTML$1.2B by 2027 RAG pipeline market size73% Developers using markdown in docs

How It Works

1

Submit the target URL

Send any webpage URL and request markdown output format. The API handles JavaScript rendering for dynamic pages.

2

Receive clean markdown

Get structured markdown with headings, lists, code blocks, and links preserved — HTML noise removed.

3

Pipe to your workflow

Feed output directly to vector stores, LLM context windows, or document generation pipelines.

Quick Start

cURL
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.

Your first scrape.
Sixty seconds.

$1 free credit — up to 5,000 scrapes. No credit card.Just a POST request.

terminal
curl -X POST https://api.alterlab.io/v1/scrape \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "formats": ["markdown"]}'

No credit card required · $1 free credit, up to 5,000 scrapes · Balance never expires