Menu

Extract

Extract parameters

Every field of an Extract request, the modes, and everything that comes back for each URL.

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

Text
POST https://api.millionshort.com/v1/extract

Takes up to 20 URLs and returns, for each, the page's main content as Markdown or plain text, with its title, metadata and links. The call is synchronous. Each URL succeeds or fails on its own, and a URL that fails costs nothing, with the one exception in Credits.

Request

FieldTypeDefaultNotes
urlsarray of strings, 1 to 20, distinctRequired. http or https, default ports, a host name (not an address), no credentials in the URL. Up to 2,048 characters each
modeauto, cached, live, rendered, unblock, stealth"auto"How the page is obtained. See below
max_age_hoursinteger, 0 to 8,760168With auto only: how old a stored copy may be before a live fetch is made instead
formatsarray of markdown, text, links, metadata["markdown","metadata"]What to return for each page
max_charsinteger, 1 to 500,00050000The longest content per page. Longer content is cut and truncated is true
topicsarray of topic slugsKeep only pages about these topics. See Labels
page_typesarray of page-type slugsKeep only pages of these kinds
source_hintsarray of source slugsKeep only pages with one of these source hints
jsonobject with schema and an optional promptEach page as JSON of your shape. Starter and up, at most 3 urls. See JSON of your shape

Any other field is a 400 INVALID_PARAM. A caller cannot send cookies or headers to the site.

Modes

ModeWhat it doesCredits per page
cachedReturns a copy we already hold. No request reaches the site. Switched off for now0.25
liveFetches the page now, as our declared bot. robots.txt is honoured0.5
renderedLoads the page in a browser, so content built by scripts appears. Paid plans2
unblockA rendered fetch through a residential or premium proxy, for sites that refuse automated requests. Growth plan and above10
stealthA rendered fetch through the hardest-to-block proxy, for sites that refuse even unblock. Not switched on yet; when it is, on the plans that include it25
autocached when there is a stored copy younger than max_age_hours, otherwise live. While cached is off, auto is liveBy the mode used

JSON of your shape

json asks for each page as an object of the shape you describe. schema is a JSON Schema of type object with properties, at most 8 KB. It may use type, properties, required, items, enum and description, and they are enforced in full; a schema that uses any other keyword is refused with 400 INVALID_PARAM, so nothing you write is silently ignored. prompt, up to 1,000 characters, says what to look for.

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/products/tide-clock"],
    "mode": "live",
    "json": {
      "schema": {
        "type": "object",
        "properties": { "name": { "type": "string" }, "price": { "type": ["number", "null"] } },
        "required": ["name"]
      },
      "prompt": "The product on the page."
    }
  }'
json_error.codeMeaning
JSON_SCHEMA_MISMATCHWhat was found did not fit the schema, after one correction
JSON_UNAVAILABLENot read in time, or not now. Try again later
JSON_LIMIT_REACHEDA daily limit of pages as JSON is used up (a team may have 500 a day)
JSON_NO_CONTENTThe page had no text to read

Example

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"],
    "mode": "live",
    "formats": ["markdown", "metadata", "links"]
  }'

The SDKs do not cover this endpoint yet. Their extract method belongs to an older draft and sends a different request: do not use it. Call the endpoint over HTTP as above.

Response

JSON
{
  "data": {
    "results": [
      {
        "url": "https://example.org/guides/tide-tables",
        "final_url": "https://example.org/guides/tide-tables",
        "status": "ok",
        "mode_used": "live",
        "fetched_at": "2026-11-18T10:00:00Z",
        "age_seconds": 0,
        "format": "markdown",
        "title": "How to read a tide table",
        "markdown": "# How to read a tide table\n\nA tide table lists the times of high and low water for one place...",
        "truncated": false,
        "metadata": {
          "description": "Times, heights and what the columns mean.",
          "author": null,
          "published_date": null,
          "language": "en",
          "canonical_url": null,
          "content_type": "text/html",
          "status_code": 200
        },
        "links": [{ "url": "https://example.org/guides/tidal-range", "text": "Tidal range" }],
        "topic": "science",
        "page_type": "tutorials",
        "source_hint": "web",
        "label_confidence": { "topic": 0.84, "page_type": 0.77, "source_hint": 0.77 },
        "site": "example.org",
        "popularity": { "rank": null, "bucket": "long-tail" },
        "risk": null
      },
      {
        "url": "https://example.org/private",
        "status": "error",
        "error": {
          "code": "ROBOTS_DISALLOWED",
          "message": "This site's robots.txt does not allow our bot to fetch this page."
        }
      }
    ],
    "summary": { "requested": 2, "succeeded": 1, "failed": 1, "by_mode": { "live": 1 } }
  },
  "usage": { "credits": 0.5, "cost_usd": 0.0005, "breakdown": { "extract_live": 0.5 } },
  "warnings": [],
  "request_id": "req_..."
}

The values are an illustration, for a request with two URLs.

One entry per URL, in the order sent. The HTTP status is 200 whenever the request itself was valid, even when every URL failed: look at each entry's status.

A result

FieldTypeNotes
urlstringThe URL you sent
statusok or error
final_urlstringWhere the page was after redirects
mode_usedcached, live, rendered, unblock, stealthThe mode that produced this result. Also on a failed URL that was charged
fetched_atdate and timeWhen the copy was taken
age_secondsintegerHow old the copy is now. A live page fetched for any caller in the last five minutes is reused, and says so here
formatmarkdown or textWhich of the two content fields is filled in
titlestring or null
markdownstring or nullThe main content as Markdown
textstring or nullThe main content as plain paragraphs. Present when text is in formats
truncatedbooleantrue when the content was cut at max_chars
metadataobjectOnly when asked for: description, author, published_date, language, canonical_url, content_type, status_code
linksarrayOnly when asked for: up to 2,000 {url, text} pairs
topicstring or nullWhat the page is about: one of the 24 topic slugs
page_typestring or nullWhat kind of page it is: one of the 23 page-type slugs
source_hintstring or nullThe source that holds pages like this one
label_confidenceobjecttopic, page_type and source_hint: how sure each label is, each 0 to 1 or null
filteredbooleanPresent, and true, on a page left out by topics, page_types or source_hints. See Labels
sitestringThe host name
popularity, riskobjectsThe same signals a search result carries, at no charge
errorobjectOn a failed URL: code, message, retry_after_seconds when waiting helps, and target_status when the site said the page does not exist in a browser mode
chargedbooleanPresent, and true, on a failed URL that was charged: a browser mode reached the site and the page does not exist (404, 410)

data.summary counts what was requested, succeeded and failed, and how many pages each mode served in by_mode. When a label list was sent it also has filtered: how many pages were left out.

Per-URL errors

CodeMeaningTry next
URL_NOT_ALLOWEDNot a public web page we will fetch: a private address, an unusual port, credentials in the URL, or a page flagged as malicious
ROBOTS_DISALLOWEDThe site's robots.txt does not allow our bot
ROBOTS_UNAVAILABLErobots.txt could not be read, so we did not fetchLater
SITE_OPTED_OUTThe site asked us not to fetch or serve it
NOT_IN_CACHEcached mode: we hold no copylive
FETCH_FAILEDThe site did not answer usefully, or answered with an error status. In a browser mode, with charged: true: the page does not existLater
TIMEOUTThe site was too slowLater
TOO_LARGEThe page is over 10 MiB
UNSUPPORTED_CONTENT_TYPENot HTML, text, PDF, a word-processing, spreadsheet or slide document, XML or JSON
BLOCKED_BY_SITEThe site refused our botunblock
RENDER_FAILEDrendered or unblock could not load the pageLater
HOST_BUSYWe are already fetching from this site as fast as we allowAfter retry_after_seconds
HOST_DAILY_LIMITThis team reached its daily limit for this siteTomorrow (UTC)
CAPACITYrendered and unblock are at capacity, for today or for the moment; or, in cached mode, the stored copy could not be looked up yetAfter retry_after_seconds when it is given, else later

Every redirect is checked again against the same rules as the first URL.

Labels

Every page that comes back says what it is, in every mode, at no charge:

Text
"topic": "health",
"page_type": "articles",
"source_hint": "medical",
"label_confidence": { "topic": 0.93, "page_type": 0.71, "source_hint": 0.71 }

Keep only some pages

topics, page_types and source_hints take lists of those slugs. Within a list, a page needs to match any one entry; it has to pass every list that was sent.

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/a", "https://example.org/b"],
    "mode": "live",
    "topics": ["health"],
    "page_types": ["articles", "research"]
  }'

A page that does not pass stays in results, in its place, so the answer still has one entry per URL:

JSON
{
  "url": "https://example.org/b",
  "final_url": "https://example.org/b",
  "status": "ok",
  "filtered": true,
  "mode_used": "live",
  "fetched_at": "2026-11-18T10:00:00Z",
  "age_seconds": 0,
  "topic": "food",
  "page_type": "products",
  "source_hint": "web",
  "label_confidence": { "topic": 0.88, "page_type": 0.91, "source_hint": 0.88 },
  "site": "example.org",
  "popularity": { "rank": null, "bucket": "long-tail" },
  "risk": null
}

Request-level errors

400 INVALID_PARAM; 400 UNSUPPORTED_OPTION for a mode the plan does not include or one that is switched off; 429 INSUFFICIENT_CREDITS; 429 RATE_LIMITED when the team has no fetch slot free. See Errors.

Limits

FreeStarterGrowthScaleBusiness
Fetches at once, per team2481632
renderedNoYesYesYesYes
unblockNoNoYesYesYes
stealth (not switched on yet)NoNoYesYesYes

The daily limit per site

A team may fetch 2,000 pages of one site in a day (UTC), in every mode other than cached, monitor checks included. The limit is there so that nobody copies a site through us. It counts what you take from a site, so looking at a page again and finding it as it was does not count again:

FetchCounts towards the 2,000?
The first fetch of an address in a dayYes
The same address again, and the page is as it was at your last fetchNo
The same address again, and the page has changedYes
A fetch that got no page (an error status, a timeout)Yes, every time

Credits

The call holds urls × the price of the mode asked for before any work (auto holds the live price), charges each page that succeeded at the price of the mode actually used, and hands the rest back in the same request. usage.breakdown has one line per mode used: extract_cached, extract_live, extract_rendered, extract_unblock, extract_stealth.

A failed URL is free, with one exception: in rendered, unblock and stealth, a page the site says does not exist (404 or 410) is charged at the mode's price, because a browser reached the site for you. It is marked charged: true. Our own refusals (robots.txt, the URL rules, a site that opted out, our caps, capacity) are never charged.

CallCredits
1 URL, live, succeeds0.5
10 URLs, live, 8 succeed4
1 URL, rendered, succeeds2
1 URL, unblock, succeeds10
1 URL, rendered, the site answers 4042
5 URLs, all fail0
10 URLs, live, all succeed, 6 left out by page_types5

Labels are free in every mode.

Extract is the second half of a common pair: search for pages, then read the ones worth reading.

  1. Search, and choose results by title, snippet, popularity and risk.
  2. Send the chosen URLs to Extract.

When a snippet is enough, skip the fetch: a search result carries up to 2,000 characters with max_chars_per_result.

Over MCP

The MCP server has an extract tool: up to 5 URLs, mode, max_chars and the three label lists (topics, page_types, source_hints), read-only, for callers with a key. Each page it returns says its topic, page type and source hint.

This page as Markdown · llms.txt