Menu

Extract

Labels on extracted pages

Every page Extract returns says what it is about, what kind of page it is, and which source holds pages like it.

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

A page that comes back from Extract carries three labels, 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 }
LabelWhat it saysValues
topicWhat the page is aboutOne of the 24 topic slugs
page_typeWhat kind of page it isOne of the 23 page-type slugs
source_hintThe source that holds pages like this oneA source slug
label_confidenceHow sure each label is0 to 1 each, or null

One vocabulary across the endpoints

The labels are the same ones everywhere, so a program can treat a page it found, a page it fetched and a page it was told about with one rule:

source_hint tells an agent where to search for more of the same: a paper is academic, or medical when it is about health; a news article is news; a forum thread is discussions; a personal blog is smallweb. It does not say that we hold the page.

Keep only some pages

topics, page_types and source_hints on the request take lists of slugs. A page left out stays in results, in its place, with filtered: true and none of its content.

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"]
  }'

The full rules, with the entry a filtered page leaves behind, are under Parameters.

This page as Markdown ยท llms.txt