# The best web search APIs for AI agents.

> Google web search, News, Shopping and Images ranked as search APIs for AI agents in 2026: ranked links, snippets, dates and prices, quoted first.

Canonical: https://apiforagents.dev/best/best-web-search-apis-for-ai-agents · Updated 2026-10-21

For an AI agent, the best web search source is Google web search, because it returns ranked links with titles, snippets, related questions and searches, and accepts the operators agents already know (site:, intitle:, OR). Google News is best for anything dated, Shopping for prices and Images for pictures with their source pages.

- Surfaces: 4
- Google web search: $0.0009 per record
- Web search billed: Per page of about ten
- Free trial: $0.10

## The ranking

| # | Source | What you get | Best for | Price |
|---|---|---|---|---|
| 1 | Google web search | Link, title, snippet, domain, rank, related questions and searches | General research | $0.0009 per record |
| 2 | Google News | Headline, publisher, date, link | Anything with a date | $0.0018 per record |
| 3 | Google Shopping | Title, merchant, price, rating, review count | Prices across merchants | $0.0027 per record |
| 4 | Google Images | Image URL, source page, dimensions, thumbnail | Pictures with their source | $0.0009 per record |

List prices are per record and some calls carry a minimum. Quote any call first with "estimateOnly": true: the quote is free and is the most the call can cost.

## Each source, in order

- **[1. Google web search](https://apiforagents.dev/platforms/google/search-api).** Up to five pages per call, billed per page of about ten results. Filter by country, language, one site, a date range, file type, or sites similar to a domain. It returns links and snippets, not the page text, so fetch the pages you need.
- **[2. Google News](https://apiforagents.dev/platforms/google/news-api).** News articles for a query, filtered to the last hour, day, week or year, by country and language. Use it when the agent must know what changed recently.
- **[3. Google Shopping](https://apiforagents.dev/platforms/google/shopping-api).** Shopping offers for a query, filtered by country, language and how recent. One call shows what several merchants charge for the same thing.
- **[4. Google Images](https://apiforagents.dev/platforms/google/images-api).** Image results for a query, each with the page it came from and its size. It takes a query and a limit only.

## How to choose

- Facts and sources: web search, with site: or the site filter when the agent knows where to look.
- Recent events: News with posted-within.
- What people think, not what pages say: add Reddit search or X post search.
- Every call can be quoted first and capped with maxUsd, so a looping agent cannot overspend.

## The operations on this list

- [Google Search API](https://apiforagents.dev/platforms/google/search-api): General research
- [Google News API](https://apiforagents.dev/platforms/google/news-api): Anything with a date
- [Google Shopping API](https://apiforagents.dev/platforms/google/shopping-api): Prices across merchants
- [Google Images API](https://apiforagents.dev/platforms/google/images-api): Pictures with their source

## Questions

### Can my agent pay for search on its own?

Yes. It signs itself up, starts with $0.10 free, quotes each call with "estimateOnly": true and spends a prepaid balance. Only a person can add money.

### Can the agent search one site only?

Yes: write site: in the query, or set the site filter to a domain or path such as reddit.com.

### Does it return the page content?

No. Web search returns links, titles, snippets, domains and rank. The agent fetches the pages it needs.

### Can I search news from the last hour?

Yes. Google News takes posted-within of one hour, one day, seven days, one year or any time.

## Why API for Agents

- One key for 26 platforms: social, commerce, jobs, places, search and contacts, with one request shape and one response shape.
- A free quote before any spend: add "estimateOnly": true to any call and see the most it can cost.
- Pay per record in US dollars. No subscription, nothing expires, top-ups from $5.
- $0.10 free to try, no card. An AI agent can sign itself up in one request; a person claims it later.
- Measured, not estimated: every answer says when each row was measured, whether it was fresh or a recent capture, and how sure to be of each field.
- Partial success is success: anything that could not be fetched is named with a reason, and the charge settles to what came back, never above the quote.
- Typed fields that keep their names whichever source answered, and a details object last with everything else the source sent, under our own field names.
- Try any endpoint in the playground and download the answer as CSV or JSON.

## Start

The playground runs any endpoint by hand: pick a platform and what you want from it, fill a short form named in plain words (or press Use sample input), see the free quote on the Run button, run it, then read the answer as a table or JSON and download it as CSV or JSON. The same call is written out as cURL, Python and Node while you type. Open it at https://apiforagents.dev/dashboard/run (sign in first).

Agents register at https://apiforagents.dev/auth.md (one POST, $0.10 free). People: https://apiforagents.dev/docs#start. Prices: https://apiforagents.dev/pricing.md
