Extract clean, human-readable plain text with boilerplate and script tag removal.
Strip HTML tags, JavaScript scripts, CSS styles, navigation bars, and footers to produce clean, line-break preserved plain text ideal for NLP pipelines, embeddings, and word counting.
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/text \
-H "Content-Type: application/json" \
-d '{
"url": "https://en.wikipedia.org/wiki/Artificial_intelligence",
"stripNavAndFooter": true,
"preserveLinebreaks": 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 | — | Webpage URL to extract text from. |
| stripNavAndFooter | boolean | optional | true | Omit navigation, header, and footer tags from output. |
| preserveLinebreaks | boolean | optional | true | Maintain paragraph breaks and bullet item line breaks. |
| normalizeWhitespace | boolean | optional | true | Collapse excessive tabs and multiple spaces into single spaces. |
| selector | string | optional | — | CSS selector to restrict text extraction to a specific container. |
{
"url": "https://en.wikipedia.org/wiki/Artificial_intelligence",
"title": "Artificial intelligence - Wikipedia",
"text": "Artificial intelligence (AI) is the intelligence of machines or software, as opposed to the intelligence of living beings...",
"wordCount": 2150,
"characterCount": 14200,
"durationMs": 260
}