Menu

Search

Lenses

Four lists of sites that shape a search. Boost, bury, block, or search only the sites you name.

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

A lens is a list of sites that changes what a search returns. There are four, and each is one field of the search request:

LensFieldWhat it does
Boostboost_domainsMoves results from these sites ahead of the rest
Burybury_domainsMoves results from these sites to the end
Blockexclude_domainsRemoves results from these sites
Onlyinclude_domainsReturns results from these sites and no others

Boost and bury change the order. Block and only change what is in the list. All four are free, and each takes up to 25 sites.

Writing a site

An entry is a host name, such as example.com. A leading www., a scheme or a path is ignored, so https://www.example.com/blog means example.com.

Boost

Use boost when you trust some sites more than the rest but still want everything else.

Example
Shell
curl https://api.millionshort.com/v1/search \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "rate limiting with a token bucket",
    "boost_domains": ["example.org", "docs.example.com"]
  }'

A boosted site's results come first, in their own order, then everything else. Boost only reorders what the search found: it does not add results from a site that had none for this query.

Bury

Use bury for sites you would rather not read but do not want to lose: aggregators, sites that summarise other sites, a competitor's marketing pages.

Example
Shell
curl https://api.millionshort.com/v1/search \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "rate limiting with a token bucket",
    "bury_domains": ["example.net"]
  }'

Buried results go to the end of what the search found. With a short num_results they will usually fall off the list; ask for more results if you want to see them.

Block

Use block for sites you never want: a site you already have, a source your users have rejected, your own domain.

Example
Shell
curl https://api.millionshort.com/v1/search \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "rate limiting with a token bucket",
    "exclude_domains": ["example.com", "example.net"]
  }'

The list is filled from further down, so you still get num_results results when there are enough.

Only

Use only to search inside a set of sites: your documentation and two others, a list of journals, the sites a customer has approved.

Example
Shell
curl https://api.millionshort.com/v1/search \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "token bucket",
    "include_domains": ["example.org", "docs.example.com"],
    "num_results": 20
  }'

Only results from the named sites come back. If those sites have little on the query, the list is short and the response carries a short_results warning.

Together, and with the popularity cut

The lenses combine with each other and with everything else in the request:

summary.removed.blocked counts results the block lens took out of the list. As with the popularity cut, some sources apply it before results are counted, so the number can be 0 when the lens plainly worked.

The same four verbs for page types and topics

Boost, bury, block and only also work on kinds of page and on topics, with the slugs of topics and page types:

VerbSitesPage typesTopics
Onlyinclude_domainspage_typestopics
Blockexclude_domainsexclude_page_typesexclude_topics
Boostboost_domainsboost_page_typesboost_topics
Burybury_domainsbury_page_typesbury_topics
JSON
{ "query": "rust lifetime elision", "boost_page_types": ["documentation", "tutorials"], "bury_page_types": ["forums"], "exclude_page_types": ["listicles"] }

The page-type and topic lists act on web and news results; another source in the same call is named in a filter_not_applied warning. only_domains and block_domains are accepted as other names for include_domains and exclude_domains.

Patterns for agents

Saving a lens in a Space

A lens can be saved. A Space holds a lens of three lists, boost, bury and block, whose entries are targets: site:example.org, type:forums or topic:science. Its list of sites, with mode: only or mode: boost, is the fourth verb. Save the Space once and pass its name as space on a search, and the lens applies without being sent again.

JSON
{
  "name": "Programming, first-hand",
  "mode": "boost",
  "sites": ["docs.example.com", "example.org"],
  "lens": {
    "boost": ["type:documentation", "type:tutorials"],
    "bury": ["type:forums"],
    "block": ["type:listicles", "site:example.net"]
  }
}

A list you send in the request replaces the saved one for that search. The Spaces reference has the fields, and Spaces are free.

Over MCP and in the SDKs

The search tool of the MCP server takes the same four lists with a key. The SDKs take them as boost_domains and so on in Python, and boostDomains and so on in TypeScript. In the search page for people, the same four are called boost, bury, block and only.

This page as Markdown ยท llms.txt