Menu

Extract

Extract guides

The jobs Extract is built for, each as the requests that do it.

Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)

Search, then read

The common pair: search for pages, then read the ones worth reading.

  1. Search, and choose results by title, snippet, popularity and risk:
Example
Shell
curl https://api.millionshort.com/v1/search \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "query": "reading a tide table", "num_results": 10, "remove_top_sites": 1000, "max_highlights": 2 }'
  1. Send the chosen URLs, up to 20, to Extract:
Example
Shell
curl https://api.millionshort.com/v1/extract \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": ["https://example.org/guides/tide-tables", "https://example.org/guides/tidal-range"],
    "mode": "live"
  }'

When the text we hold is enough, skip the second call: include_content on the search returns it for web and news results.

Keep only the pages worth reading

Hand Extract a mixed list and let the labels sort it. With page_types or topics on the request, a page that does not match comes back as an entry with filtered: true and no content, so nothing unwanted reaches the model. The fetch of a filtered page is still charged.

Many pages

More than 20 URLs is a batch: up to 1,000 as one job. Poll it, or name a webhook and be told when it ends. A page of a batch that is waiting for a busy site waits, at no cost, until the batch has run for 60 minutes; only after that can it fail as HOST_BUSY.

A page that scripts build

When a live page looks like an empty shell that scripts fill in, the response carries a looks_script_built warning. Send that URL again with mode: "rendered". No mode is ever upgraded for you, because rendered costs more.

Staying within the limits

One site gets at most 2 fetches at once and 1 a second from all our customers together, and a team may fetch 2,000 pages of one site a day. Spread a large job over sites, not over one. Pricing and limits has the numbers.

This page as Markdown ยท llms.txt