Guide

What Is a Web Search API?

One HTTP call, one question in, the pages that answer it out - as text, with the date and the source attached. That is a web search API. Everything after that is a set of decisions about how it behaves and what it costs.

AgentSearch · Updated November 2026 · 10 min read

The phrase web search API covers two products that people often assume are the same thing. One returns a results page: titles, links, and a snippet for each, the shape a search engine's own page has. The other returns the content of the pages, already read and already extracted, so a model can use them without a second step. If you are building an agent, the second one is what you want, and the difference shows up in your bill and in your latency.

This guide covers what a search API actually returns, the handful of decisions that separate one from another, and the questions to ask a vendor before you commit. We will be explicit about the trade-offs rather than steering you toward a particular product - including the ones our own search API makes.

What a search API actually returns

A results-page API returns something close to this:

{ "title": "Rolling update strategy - Kubernetes Documentation", "link": "https://kubernetes.io/docs/...", "snippet": "A rolling update replaces the old version of the ReplicaSet..." }

That is a good shape for a link preview, and a poor shape for an agent. The snippet is 150 characters of whatever the search engine decided to cut. The agent that asked the question now has three options, and all of them cost money:

A content-returning search API collapses those three options into one call. The pages are read, the text is extracted, and the answer arrives as something you can put in a prompt. That is the whole reason this category exists separately from "a thing that scrapes google.com".

The five decisions that separate the products

1. Does it read the pages, or hand you links?

Ask any vendor this and the answer tells you what kind of product you are buying. If the response has a snippet field and no content field, you are buying a results-page API and you will be writing the fetch layer yourself. If the response carries the page text, the reading is included. Our structured output page has the two response shapes side by side.

2. Is it a model, or is it a search?

Some products in this category run a language model over the results and return a generated answer with sources attached. That is a different product with a different cost structure - you pay for inference on every call, and the answer is a model's claim about the pages rather than the pages themselves. A search API returns the pages and lets your model do the reading, in your prompt, where you can see and control it. Ours calls no model at all: the search returns text, and the intent label on the response comes from a rule engine.

3. What is billed, and what is counted?

The billing unit is where the differences hide. Four models are common:

The cleanest model to shop for is per successful call, with page reads metered separately. We price it that way, and the true cost of naive search works through what that means on an invoice.

4. What does the free tier look like?

Free tiers in this market come in three shapes, and the label rarely says which one you are holding: a standing monthly allowance, a one-time batch of trial credits that expires, or a daily trickle that resets at midnight. A daily allowance is the weakest of the three - it is awkward to build against, because every day you have to start again, and a batch of expiring credits is not an allowance at all. Our free tier is 100 searches and 20 page reads per month, and the free search API guide compares the shape of each one.

5. What happens when the search fails?

It will. Every provider has outages, rate limits and empty results. The questions that matter are whether your request is refused or served, whether the error tells you what to do, and whether a failed call is billed. Two are worth checking in the documentation before you sign up: what a retry-after-429 costs you, and whether a call that finds nothing counts as a successful call.

The questions worth asking a vendor

If you are evaluating a search API for an AI product, this is the shortlist. Every answer should be findable in the documentation, not in a sales call.

  1. Does one call return the page text, or only links? If only links, what is your plan for the fetch layer - and what does it cost you in latency?
  2. Is the response dated? A publication date as a field is worth a great deal to an agent that has to judge whether a page is current. A date appended as text to a snippet is not the same thing.
  3. Is there a per-result score, and what is it made of? Our quality score combines the engine's authority rating and ranking with the relevance, recency and completeness of the page. You want to know which of those you can filter on.
  4. What is the rate limit, and does it apply per key or per account? A limit that is per key means you scale horizontally by making keys.
  5. What is the timeout, and which failures are retryable? A 504 is retryable; a 400 is not. If the documentation does not say, assume you will find out in production.
  6. Does the provider keep my query text? If the answer is "yes, in our logs", you should know it before you send a query you cannot share.

What a search API is worth to an agent

The reason this category exists at all is that an agent with a search API answers a different class of question than one without. A model with a September 2025 knowledge cutoff cannot tell you what happened last week, what a package's current version is, or whether a company still exists. It will answer anyway, because it is trained to be helpful, and the answer will be wrong in a way that is hard to detect.

A search API does not make the model smarter. It makes the model checkable. The agent can look at a page with a date on it, quote it, and hand the citation back. That is the difference between an assistant that sounds informed and one that is, and it is the reason the guide to adding search to an AI agent exists.

The cost of that ability is one call per question. On a free tier, you can find out what it does to your answers before you have to think about what it does to your bill.

What AgentSearch does, stated plainly

We are not neutral here, so here is the honest version. A call to the AgentSearch search API gathers the pages for a query, reads them, and returns them as JSON for your code and as Markdown for your model, with the publication date, the source and the quality score on every result. Search and page reads are two separate meters, billed separately, so a caller that searches a lot and reads a few pages is not paying for an allowance it never uses. The free tier is 100 searches and 20 page reads a month; Pro is $9 a month; Team is $79. Overages are priced at $2.5 per 1000 calls and never interrupt a request.

What we do not do: we call no language model, we publish no uptime figure we cannot stand behind, and we do not keep your query text in plaintext. The privacy page lists exactly what is stored and who else sees a query.

Read the contract, not the adjectives

The documentation has the request body, the response format, every error code and the rate limit for each plan. The free tier gives you 100 searches a month to try it against your own questions.

Get a free API key

Related: what the free search API tiers really give you, why Google's search API is closing, and what a call costs.