Menu

Glossary

What is a web search API?

A web search API lets software query an index of the web and get titles, URLs and text passages back as JSON instead of a results page made for people.

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

A web search API is a programmatic interface that lets software query an index of the web and get structured results, such as titles, URLs, snippets and sometimes full page content, as JSON instead of a human-facing results page. Developers use them to give LLMs, agents and applications access to current web information.

How does a web search API work?

You send an HTTP request containing a query, plus options such as the number of results or a list of domains to include or exclude. The service searches its index and returns ranked results as JSON. Each result typically carries a title, a URL, a score and a snippet, ready to parse or to place in a prompt. Some providers return the full page text, and some add a short generated answer next to the results.

Why do web search APIs matter for LLMs and agents?

A language model is frozen at its training cutoff, and a web search API is the standard way around that. At query time your application retrieves pages and grounds the model's answer in them. This is the pattern behind retrieval-augmented generation. For autonomous agents the search API becomes a tool the model calls repeatedly in a loop (see agentic search), which raises the bar on output: agents need structured results that are cheap in tokens, not HTML built for human eyes.

What should you look for when choosing one?

One common confusion: a web search API is not a SERP API, which replays a search engine's human-facing results page for SEO tooling. The difference has its own entry.

Where MillionShort fits

MillionShort is a web search API on our own independent index. One call to POST /v1/search searches 1 to 5 of 13 sources and returns one merged, ranked list. Each result has a snippet of up to 2,000 characters, a popularity signal and a risk signal. You can remove the most popular sites with remove_top_sites and set domain rules with lenses.

What it does not do: it writes no generated answer. It does not fetch a page at request time: with include_content, web and news results carry the page text as we hold it. Web pages carry no date, so a date filter is not applied to web. Retrieval is keyword-based. The quickstart shows a first call.

This page as Markdown ยท llms.txt