Strip clutter, extract clean structured Markdown, and save up to 88% tokens for RAG pipelines.
Convert any dynamic, JavaScript-rendered web page into ultra-clean, token-efficient Markdown. Powered by mdream and Readability algorithms, it strips navigation, footers, and scripts while preserving headlines, tables, code blocks, and metadata.
Because this endpoint utilizes full headless Chromium rendering, dynamic JavaScript and single-page apps (SPAs) are executed completely before conversion:
Chromium initializes, fetches the URL, executes client JavaScript, resolves DOM mutations, and generates output.
Returned instantly from Valkey/Redis cache with header X-Lender-Cache: HIT (15-minute TTL).
curl -X POST https://api.headless-lender.com/api/v1/markdown \
-H "Content-Type: application/json" \
-d '{
"url": "https://en.wikipedia.org/wiki/Artificial_intelligence",
"engine": "mdream",
"minimal": true,
"cleanUrls": true,
"includeFrontmatter": true
}'No Authorization header required. Simply send a JSON POST request. Perfect for quick prototypes, small scripts, and low-volume scraping.
Sign up in 10s with no credit card required. Unlocks 1,000 free monthly requests, 600 browser minutes (10 hours), 120 req/min burst limits, and cache-bypass controls.
| Access Mode | Monthly Quota | Cloud Browser Time | Burst Limit | Credit Card | Action |
|---|---|---|---|---|---|
| Public Anonymous | Daily IP Allowance | 5-min trial sandbox | 10 req/min | None | Instant (No Setup) |
| Free Account (Highest Quota) | 1,000 Req / Month | 600 Mins (10 Hours) | 120 req/min | Zero ($0 forever) | Claim Free Key → |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| url | string | required | — | Target webpage URL to render and convert. |
| engine | 'mdream' | 'hybrid' | 'turndown' | optional | 'mdream' | Markdown conversion engine. 'mdream' is fastest and saves the most tokens; 'hybrid' combines Readability with mdream. |
| minimal | boolean | optional | true | Aggressively strip layout boilerplate, navigation bars, headers, and footers. |
| isolateMain | boolean | optional | true | Auto-detect and isolate the primary <main> or <article> content container. |
| cleanUrls | boolean | optional | true | Purge tracking parameters (UTM, fbclid, etc.) from extracted links. |
| includeFrontmatter | boolean | optional | true | Include YAML metadata frontmatter with title, source, and timestamp. |
| includeImages | boolean | optional | true | Retain markdown image tags  or strip them for text-only LLMs. |
| waitUntil | 'domcontentloaded' | 'load' | 'networkidle' | optional | 'domcontentloaded' | Browser navigation wait condition before extraction. |
{
"url": "https://en.wikipedia.org/wiki/Artificial_intelligence",
"title": "Artificial intelligence - Wikipedia",
"engine": "mdream",
"markdown": "---\ntitle: \"Artificial intelligence\"\nsource: \"https://en.wikipedia.org/wiki/Artificial_intelligence\"\ntimestamp: \"2026-10-23T09:40:00.000Z\"\n---\n\n# Artificial intelligence\n\n**Artificial intelligence** (AI) is the intelligence of machines or software...",
"wordCount": 1840,
"characterCount": 11200,
"estimatedTokens": 2947,
"rawHtmlTokens": 24500,
"tokenSavingsPercent": 88,
"readingTimeMinutes": 9,
"isArticle": true,
"durationMs": 380
}