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?
- Output format. JSON with a usable passage of text per result saves you a fetch for many questions.
- Freshness. How quickly new pages become retrievable. See search index freshness.
- Filtering. Which controls exist for scoping retrieval: domains, page types, topics, dates, language, country. Providers differ, so check the ones you need.
- Ranking control. Whether you can steer results away from the same heavily optimized, popular domains.
- Cost transparency. Metered pricing per call that you can budget against.
- Who runs the index. Whether the provider builds and runs its own. See independent search index.
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.