> SpecStream is the live web data engine for teams and agents. This is the Markdown copy of https://specstream.ai/answers/extract-clean-markdown-from-websites-for-llm-rag. Every page, with what SpecStream does and costs: https://specstream.ai/llms.txt

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

[Get an API key](https://specstream.ai/signup?src=answers-markdown&returnTo=%2Fworkspace%2Fkeys)[Try a URL free](https://specstream.ai/tools/url-to-markdown.md)

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

POST /v1/extractCopy

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

-   [URL to MarkdownPaste any URL and read it as clean Markdown with its token count, free.](https://specstream.ai/tools/url-to-markdown.md)
-   [Website to textThe main text of any page as plain text, free.](https://specstream.ai/tools/website-to-text.md)
-   [Extract APIPrices, benchmarks, SDKs, and the x402 route for agents with no key.](https://specstream.ai/extract-api.md)

## 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 card](https://buy.stripe.com/7sY3cn57l0jxedO9EmbAs0c)

### Enterprise 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 card](https://buy.stripe.com/cNi8wHbvJ0jxglW9EmbAs0d)

Need a signed order or an invoice to pay by transfer? [Talk to sales](https://specstream.ai/talk-to-a-human?kind=sales)

## Questions

Something we didn't answer? [Talk to a human](https://specstream.ai/talk-to-a-human.md)

Which formats can I ask for?

markdown, the default, keeps headings, lists, and links. text returns plain text, and html returns the main text as the page's own HTML elements.

Can I send HTML or PDFs I already have?

Yes. Send pages with the HTML, or pdf\_b64 with the PDF's bytes. Nothing is fetched, and each item is charged as one page read.

Can I get the links on the page too?

Yes. Add include with links to get each link the page prints with its anchor text, at the same price.

What does it cost to start?

New accounts get $2 of credit with no card, which reads 2,500 pages.

## Feed your index clean pages today

New accounts get $2 of credit, no card.

[Start free](https://specstream.ai/signup)[Talk to a human](https://specstream.ai/talk-to-a-human.md)
