Skip to the page

Extract any page as markdown or text

Send up to 20 URLs in one call and get the main text of each, without its menus, footers, and ads. A page that refuses a plain read comes from SpecStream's own copy with its date when SpecStream holds one, or is tried again, and read_from says where the text came from.

POST /v1/extract
curl https://api.specstream.ai/v1/extract \
  -H "Authorization: Bearer $SPECSTREAM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://en.wikipedia.org/wiki/Narbonne"], "format": "markdown"}'
Reply, cut short
{
  "data": {
    "results": [
      {
        "url": "https://en.wikipedia.org/wiki/Narbonne",
        "status": "ok",
        "title": "Narbonne - Wikipedia",
        "published": "2002-10-11T13:08:41+00:00",
        "read_from": "live",
        "text": "... ## Etymology\n\nThe etymology of the town's original name, **Narbo**, is lost in antiquity ..."
      }
    ],
    "took_ms": 441,
    "price_usd": 0.0008
  }
}

$0.80

per 1,000 pages read

Pages read, from your balance.

20 URLs a call
Send 1 to 20 http or https URLs. The same URL twice is read once.
PDF, Word, Excel
Documents come back as markdown or plain text, the same as a web page.

First on four public extraction benchmarks

On all 2,527 live URLs of TRACE Extract v6 the Extract API scores 88.51%, ahead of Context.dev (87.0%), Jina (86.8%), and Exa (85.0%), at $0.80 per 1,000 pages with a p50 of 1.23 s. It also ranks first on search-provider-bench Extract (0.7812 fact recall, ahead of Linkup 0.764 and Tavily 0.745), WCXB (0.914 F1), and Scrapinghub (0.971 F1).

Live extraction & scraping
SpecStreamContext.devJinaExaLinkupTavilyFirecrawl
Live URL extractionTRACE Extract v6 (2,527 URLs)88.5%87.0% live87.0%86.8%85.0%
Verifiable fact recallsearch-provider-bench Extract0.78199.0% avail0.7080.7640.745
Scraping for agentsscrapingbench, tasks done40/4038/4034/4032/40
Scraping for agentsscrapingbench, answer in the response40/4038/4037/4036/40

TRACE Extract v6 tests live page extraction across 2,527 real URLs (SpecStream $0.80 per 1,000 pages, p50 1.23s, zero paid proxies). search-provider-bench Extract is a deterministic zero-model fact recall benchmark across 105 pages (382 facts). scrapingbench is the 40-task live documentation scrape track on Claude Haiku 5.5, each answer checked against its official source on the day of the run: three tasks ask for a package's latest version, and those packages have had releases since the board stored its answers. A dash means no published score.

TRACE Extract v6 (2,527 URLs)Pass rate by provider
  • SpecStream
  • Other providers
8082848688900Pass rate (%)Exa(Contents)85.0Jina(Reader)86.8Context.dev87.0SpecStream88.58082848688900Pass rate (%)Exa(Contents)85.0Jina(Reader)86.8Context.dev87.0SpecStream88.5

TRACE Extract v6 evaluates live content extraction across 2,527 real URLs. SpecStream Extract API ($0.80 per 1,000 pages, p50 1.23s) leads at 88.51% overall and 87.04% live-only.

scrapingbenchTasks done by provider
  • SpecStream
  • Other providers
283032343638400Tasks done (of 40)Firecrawl32Linkup34String35Scrapfly36Spider37Context.dev38SpecStream40283032343638400Tasks done (of 40)Firecrawl32Linkup34String35Scrapfly36Spider37Context.dev38SpecStream40

scrapingbench gives one agent a single tool, the provider's scraper, and 40 tasks on live documentation sites. A script checks every answer against the official source. With our scraper the agent finishes all 40 tasks. No other provider on the board finishes more than 38.

Reading pages
SpecStreamZyteDiffbotrs-trafilaturaTrafilaturaReadability
Article extractionScrapinghub benchmark0.9710.970AutoExtract0.9510.9700.9580.947
Page extractionWCXB0.9140.9030.8410.726

Other extractors' figures are the scores published by each benchmark. Both benchmarks score F1 against hand-labelled page text. A dash means no published score.

Scrapinghub article benchmarkF1 by extractor
  • SpecStream
  • Other extractors
0.900.920.940.960.980F1Readability0.947Diffbot0.951Trafilatura0.958rs-trafilatura0.970Zyte(AutoExtract)0.970SpecStream0.9710.900.920.940.960.980F1Readability0.947Diffbot0.951Trafilatura0.958rs-trafilatura0.970Zyte0.970SpecStream0.971

The Scrapinghub benchmark scores how exactly an extractor returns the text of an article. Our Extract API scores 0.971, above the best commercial and open-source extractors, and is first on WCXB, the 511-page extraction benchmark, at 0.914.

Scores and method

Switch from Firecrawl in one line

Keep the Firecrawl SDK and set api_url to https://api.specstream.ai/compat/firecrawl. Scrape and search answer in Firecrawl's own JSON, so the code that reads the reply stays as it is.

What a call returns

One result for each URL, in the order you sent them, then the request_id and took_ms of the call.

url and status
Each URL and how its read went: ok, blocked, not_found, empty, unsupported, invalid_url, or failed. ok means read and charged.
text
The page's main text. Markdown keeps headings, lists, and links. Text returns it plain.
published
The date the page says it was published, when it says one. The page's title comes with it.
read_from
live for the page now, site for the same page from the site's own API or feed, archive for SpecStream's own copy of the page or its newest public web archive capture, with the date of that copy in captured_at.
price_usd
The price of the pages read in this call.

How a refused page is read

A page that refuses a plain read comes from SpecStream's own copy with its date when SpecStream holds one; a page it holds no copy of is tried again in this order, and read_from says where the text came from.

  1. As a browser

    The request goes out again the way a browser would ask for the page.

  2. In a real browser

    If that is refused too, the page opens in a real browser and the text is read there.

  3. From the site's feed

    Next, the same page comes from the site's own API or feed, and read_from is site.

  4. From the newest public archive capture

    Last, the text comes from the newest public web archive capture. read_from is archive, and captured_at gives its time.

Agents pay per call, with no account

An agent with no key calls the same address, gets a 402 with the price, pays it, and reads the answer.

Drop-in migrations and comparisons

Change the base address and the key, and the code you run on Google, Exa, Tavily, Firecrawl, or Serper today runs on SpecStream.

Extract API questions

Something we didn't answer? Talk to a human

What does a page cost?
$0.80 per 1,000 pages, from your balance, with no quote and no approval.
What if a page still can't be read?
Its status says why: blocked, not_found, empty, unsupported, invalid_url, or failed. The other URLs in the call are still returned.
Which formats does it return?
Set format to markdown, the default, which keeps headings, lists, and links, or to text for plain text. Both work for web pages, PDF, Word, and Excel.
Can I retry a call safely?
Yes. Send an Idempotency-Key header and the call is charged once per key. The same key again gets a 409.

Extract your first page

Sign up and get $2 of credit, no card.