Menu

Search

Filters for agents

The controls other search APIs do not have. Cut by popularity, steer by site, keep kinds of page and topics, and read what each result says about its site.

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

An agent that can only type a query gets what everyone gets. These filters let it say what kind of web it wants. All of them are fields of POST /v1/search, all of them are free, and they combine.

FilterFieldWhat it does
Remove the top sitesremove_top_sitesDrops results from the N most popular sites, N from 0 to 1,000,000
Only the top sitesonly_top_sitesKeeps only results from the N most popular sites
Popularity bucketspopularity_bucketsKeeps sites in the bands you name, from top-100 to long-tail
Boostboost_domains, boost_page_types, boost_topicsMoves named sites, kinds of page or topics ahead of the rest
Burybury_domains, bury_page_types, bury_topicsMoves them to the end
Blockexclude_domains, exclude_page_types, exclude_topicsRemoves them
Onlyinclude_domains, page_types, topicsKeeps them and nothing else
Topicstopics and the three lists above24 topics
Page typespage_types and the three lists above23 kinds of page: forums, tutorials, documentation, reviews and so on
Traffic trendstraffic_trendKeeps sites whose visits are rising, spiking, falling and so on; on every result too
Popular wherepopular_inKeeps sites that are popular in the countries you name; on every result too
Site techsite_techKeeps sites built with what you name; on every result too
Riskexclude_riskyDrops results whose site carries a risk label; the label is on every result
Popularityon every resultThe rank and band of the result's site
Datesstart_date, end_date, time_rangeResults published in a range, on the sources that carry dates
Language and countrylanguage, countryResults in a language, or from a country, on the sources that can tell; two-letter codes
SafeSearchsafe_searchoff, moderate or strict

Over MCP, the search tool takes the same fields under the same names.

A set of these filters can be saved under a name and used with one field, space. That is Spaces.

Agent recipes

Each recipe is one request. Copy it, change the query, and give it to your agent as an example of what it can ask for.

Long-tail forum discussions on a topic, with no product pages

Keep forum and comment pages, on one topic, from outside the 10,000 most popular sites. Shops and product pages are not among the kinds kept, so they are gone.

Example
Shell
curl https://api.millionshort.com/v1/search \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "sourdough starter",
    "page_types": ["forums", "comments"],
    "topics": ["food"],
    "remove_top_sites": 10000,
    "num_results": 10
  }'

What comes back, cut to one result (the values are an illustration):

JSON
{
  "data": {
    "results": [
      {
        "title": "Starter sluggish after a week in the fridge",
        "url": "https://forum.example.org/t/starter-sluggish/4821",
        "site": "forum.example.org",
        "source": "web",
        "snippet": "Mine does the same every winter. Two feeds at room temperature and it is back...",
        "highlights": ["Mine does the same every winter. Two feeds at room temperature and it is back..."],
        "published_date": null,
        "page_type": "comments",
        "topic": "food",
        "popularity": { "rank": 412907, "bucket": "top-1m" },
        "risk": null,
        "position": 1,
        "score": 1.0,
        "extra": {}
      }
    ],
    "summary": {
      "returned": 10,
      "removed": { "popularity": 0, "blocked": 0, "duplicates": 1, "risk": 0, "safe_search": 0 }
    },
    "warnings": []
  },
  "usage": { "credits": 1, "cost_usd": 0.001, "breakdown": { "search": 1 } },
  "warnings": [],
  "request_id": "req_..."
}

The mainstream view and the independent view, side by side

Two requests with the same query: only_top_sites: 1000, then remove_top_sites: 1000. The agent reads both and reports where they differ. Two credits.

Tutorials and documentation only, from sources you trust first

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",
    "page_types": ["tutorials", "documentation"],
    "topics": ["programming", "software"],
    "boost_domains": ["docs.example.com"],
    "bury_domains": ["example.net"]
  }'

A closed set of sites for a regulated answer

include_domains with the approved sites, and safe_search: "strict". Nothing outside the list can be cited. See Only.

Nothing risky, nothing you have already read

Send the sites already in your corpus in exclude_domains, and exclude_risky: true. Every result that comes back has risk: null.

JSON
{ "query": "home battery storage payback", "exclude_domains": ["example.com", "example.org"], "exclude_risky": true }

Rising sites in a niche

Search the field broadly and keep the results whose site is rising. Sites on the move are rare, so use a broad query and ask for more results; the list is often short and can be empty. See traffic trends.

JSON
{ "query": "best running shoes", "traffic_trend": ["rising", "spiking", "new"], "num_results": 20 }

Sites that matter in one country

popular_in keeps sites with an audience in the countries you name, whatever their domain ending. See popular where.

JSON
{ "query": "heat pump grant", "popular_in": ["GB", "IE"] }

Discussion, with no shops and no listicles

JSON
{ "query": "standing desk wobble", "boost_page_types": ["forums", "comments"], "exclude_page_types": ["products", "listicles"] }

This week's news in one language

JSON
{ "query": "Bundestag Haushalt", "sources": ["news"], "time_range": "week", "language": "de" }

What to tell your agent

A tool description lists fields. It does not tell a model when a filter is worth using. Put this, or your own version of it, in the system prompt:

Text
Search filters you can use:
- remove_top_sites: N drops the N most popular sites. Use 1000 to 10000 when results are all
  big, familiar sites and you want specialist or first-hand pages. only_top_sites: N is the reverse.
- page_types keeps kinds of page (forums, comments, tutorials, documentation, reviews, research,
  news, blogs and others). topics keeps subjects (programming, health, business, food and others).
  exclude_page_types / exclude_topics remove them; boost_ and bury_ forms reorder.
  Ask list_sources for the full lists.
- include_domains searches only the sites named; exclude_domains removes sites; boost_domains
  and bury_domains reorder.
- start_date, end_date or time_range (day, week, month, year) for dated sources such as news;
  web pages carry no date. language and country take two-letter codes.
- traffic_trend keeps sites whose visits are rising, spiking, falling, dropped or new (few sites
  are on the move: use a broad query). popular_in keeps sites popular in the countries named.
  site_tech keeps sites built with what you name. exclude_risky: true drops labelled sites.
- max_highlights: 1 to 5 returns the passages that answer the query. include_content: true
  returns the page's text for web and news results (it costs extra per result).
- Every result has popularity, risk, traffic_trend, popular_in and site_tech. Say so when a
  source is a little-known site. Do not cite a result that carries a risk label.
- If the answer has a filter_not_applied warning, a source could not apply that filter: say so
  or search that source another way.

Where they apply

This page as Markdown ยท llms.txt