Glossary
Search API vs SERP API: what's the difference?
A search API queries an index and returns results made for programs, while a SERP API replays a search engine's results page as a person would see it.
Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)
A search API queries an index directly and returns clean, ranked results built for machines to consume, while a SERP API scrapes or replays a search engine's human-facing results page, ads and all. For LLM and agent workloads, search APIs deliver leaner output that is ready to use. SERP APIs suit SEO rank tracking and results-page monitoring.
What does each one actually return?
| Search API | SERP API | |
|---|---|---|
| What is queried | An index the provider queries directly | A search engine's results page, loaded and parsed |
| Output | Ranked results as JSON, with a text passage per result | Organic positions, ads, results-page features |
| Built for | LLMs, agents, RAG, applications | SEO rank tracking, results-page monitoring |
| Text per result | A snippet or passage, with some providers the full page | The short snippet the results page shows |
| Position on a consumer search engine | Not available | The whole point |
When is a SERP API the right choice?
When the results page itself is your dataset. If you need to know where a page ranks on a consumer search engine for a keyword in a given city, which competitors are running ads, or which queries trigger a featured snippet, only a SERP API can tell you. A search API has no concept of another engine's positions or ad slots. SEO platforms, ad-intelligence tools and marketplace monitors are SERP API territory.
When is a search API the right choice?
When you need information, not rankings. A web search API returns results a program can use immediately: structured JSON, a score, filters you can set per request, and a passage of text from each page. There is no results page to parse and no ad block to strip out. For the request and response shape of one such API, see the MillionShort search reference.
Why does the distinction matter for LLMs?
Token cost and grounding quality. Piping SERP JSON into a prompt spends context on ads, sitelinks and position metadata that the model ignores, and results-page snippets are a line or two, usually too thin to ground an answer. A search API can return a longer passage per result and nothing else, which makes each agent tool call cheaper to read.
How current the results are matters too. See search index freshness.
Where MillionShort fits
MillionShort is a search API, not a SERP API. It searches our own independent index and returns one ranked list with a snippet of up to 2,000 characters per result. With include_content, web and news results also carry the text of the page as we hold it. It does not report positions on any other search engine.