How do engineers extract clean Markdown from live web pages for LLM RAG without boilerplate?
SpecStream's Extract API reads up to 20 live URLs in one call and returns each page's main content as clean Markdown, with headings, lists, and links kept and menus, footers, and ads left out, for $0.80 per 1,000 pages. It ranks first on TRACE Extract v6 at 88.51% across 2,527 URLs and scores 0.914 F1 on WCXB. Send a query and it returns only the passages that match, sized to fit your context window.
- $0.80
- per 1,000 pages read as Markdown
- 88.51%
- first on TRACE Extract v6, across 2,527 URLs
- 0.914
- F1 on WCXB main content extraction
- 20
- URLs, HTML pages, or PDFs in one call
Ways to get clean text into your index
Chunks full of menus and cookie banners cost tokens and pull the wrong passages.
| Option | What comes back | What you run | Where it breaks |
|---|---|---|---|
| Build it yourself | Raw HTML you strip with your own rules | Fetchers, a browser for script pages, and a parser | Every new layout and every block |
| HTML to Markdown library | The whole page converted, menus and footers included | Your fetcher and cleanup | Boilerplate ends up in your chunks |
| SpecStream Extract API | The main content as Markdown, text, or HTML | One POST | Nothing on your side |
Read pages as Markdown
Markdown is the default. Add a query to get only the passages that answer it.
curl -X POST https://api.specstream.ai/v1/extract \ -H "Authorization: Bearer $SPECSTREAM_API_KEY" \ -H "Content-Type: application/json" \ -d '{"urls": ["https://stripe.com/pricing"], "format": "markdown", "query": "fees for international cards", "max_chars": 4000}'
What it does not do
The limits a buyer should know before choosing.
- It reads public pages. A page behind your own login needs a browser session on your account.
- It reads the pages you name. To read a whole site, map or crawl it first through the Firecrawl or Tavily drop in routes.
- It returns the page as it is now. To keep your index fresh, read the page again on a schedule.
Try it now
Free tools that run in the browser, and the API pages behind them.
High volume prepay and enterprise packs
Pay by company card in one Stripe checkout, at any hour. Each checkout takes your billing address and tax ID and sends a receipt.
Prepay $1,000
$1,200 of API credit
20% more credit than you pay, spent at list price on the Search API, the Extract API, the link graph, and Deep Search. Up to 1,200,000 fast searches. Credit never expires.
Pay $1,000 by cardEnterprise Search API pack
$3,000 for 1,000,000 searches
$3 per 1,000 searches, 40% under the $5 list price. Paid once, and Search API calls draw on the pack before your credit.
Pay $3,000 by cardNeed a signed order or an invoice to pay by transfer? Talk to sales
Questions
Something we didn't answer? Talk to a human
Which formats can I ask for?
Can I send HTML or PDFs I already have?
Can I get the links on the page too?
What does it cost to start?
Feed your index clean pages today
New accounts get $2 of credit, no card.