DEV Community

Cover image for What is the best alternative to the Google search API?
Ricardo Batista for cloro

Posted on Edited on

What is the best alternative to the Google search API?

For Google.com results, the best alternative to the Google search API is a Google SERP API, which returns the live results page as JSON. For a search box over up to 50 of your own sites, Google names Vertex AI Search. For an AI agent that needs web results but not Google's ranking, Brave, Exa and Tavily answer faster. Among the Google SERP APIs, Serper has the lowest price per call, SerpApi covers the most engines, and SerpApi and cloro both parse the AI Overview.

  • The deadline is fixed. The Custom Search JSON API is closed to new customers, and existing customers have until January 1, 2027 to move. Since January 20, 2026, a new Programmable Search Engine can search at most 50 domains.
  • Bing is not the fallback. Microsoft retired the Bing Search APIs on August 11, 2025, and sends customers to Grounding with Bing Search inside Azure AI Agents.
  • A SERP API changes your results as well as your code. Custom Search returns results from an engine you configure. A SERP API returns the Google.com page, so organic positions, the AI Overview and People Also Ask appear in your data for the first time.

What is happening to the Google search API?

"Google search API" usually means the Custom Search JSON API, the REST endpoint of Programmable Search Engine. Google's API overview says it "is closed to new customers" and that "existing Custom Search JSON API customers have until January 1, 2027 to transition to an alternative solution." Until that date, existing customers keep the same terms: 100 free queries a day, then $5 per 1,000, up to 10,000 queries a day.

Change Date Source
Bing Search APIs retired August 11, 2025 Microsoft lifecycle notice
New engines limited to "Sites to search", up to 50 domains January 20, 2026 Programmable Search Engine help
Custom Search JSON API ends January 1, 2027 Custom Search API overview

Google names two paths. Vertex AI Search is "a favorable alternative for searching up to 50 domains." For full web search, Google asks you to contact it, and it publishes no price or date for that product. Neither path returns the Google.com results page.

Which alternative fits which job?

What you used Custom Search for Alternative Live price Free allowance
Google.com results for rank checks, SEO or research A Google SERP API, such as Serper, SerpApi or cloro $0.30 to $25 per 1,000 searches See the next table
A search box over your own sites Vertex AI Search, up to 50 domains Not checked for this article Not checked
Web results for an AI agent, from any index Brave, Exa or Tavily $5, $4 to $7, and $8 per 1,000 $5 credit, $10 credit, and 1,000 credits a month
A Gemini answer grounded in Google Search Grounding with Google Search in the Gemini API $14 per 1,000 search queries, plus tokens 5,000 queries a month on Gemini 3 and newer

The last row is Google's own route for AI agents, and it is easy to miss. It does not return a list of results. The API returns the model's answer, the queries the model ran and a URL and title for each citation. Billing counts each search query the model decides to run, so one prompt can cost several queries. If your agent already runs on Gemini and only needs a cited answer, it is the shortest path. If your code reads ranked results, it is the wrong shape.

How do the Google SERP APIs compare?

API Rate per 1,000 searches Free allowance AI Overview Notes
Serper $1.00 on the $50 pack, down to $0.30 on the $3,750 pack 2,500 queries, once Not checked Credits valid for 6 months; "1-2 seconds" per query by Serper's own figure
SerpApi $25 on Starter ($25 for 1,000), $3.75 on Cloud 1M 250 searches a month Yes; sometimes a second request with a page_token Many engines besides Google; only successful searches count
cloro $2.40 on Lite, $1.20 on Hobby ($100 for 250,000 credits), about $0.92 on Enterprise 5,000 500 credits a month, about 166 searches Yes, for 2 more credits a search A Google search is 3 credits async; a synchronous request adds 2

Each one wins a different case. Serper is the cheapest way to get organic links, and it is the fastest of the three by its own claim. SerpApi is the pick when the same key must also reach Bing, YouTube, Amazon or Google Maps. cloro returns the AI Overview with its cited sources and People Also Ask in the same call, at $2.00 per 1,000 with the AI Overview on Hobby. The trade is speed: in an open benchmark of six web search APIs, the two Google SERP APIs tested took 7.96 and 8.20 seconds at the median.

How do you move a Custom Search call to a SERP API?

  1. List the fields your code reads. Most code reads title, link and snippet from items[].
  2. Map them to the new response. The names are close:
Custom Search JSON API SerpApi cloro
items[] organic_results[] result.organicResults[]
title title title
link link link
snippet snippet snippet
displayLink displayed_link displayedLink
No field; derive it from the index and start position position
  1. Remove the cx engine ID. A SERP API searches Google.com. If your engine searched only some sites, put a site: operator in the query.
  2. Change the pagination. Custom Search returns up to 10 results per request. On SerpApi each extra page is another search. On cloro each extra page adds 2 credits.
  3. Run both for a week before the cutover. Send 50 of your real queries to the old and the new API and compare. Expect different results: the engine you configured is not Google.com, and the new response holds blocks the old one never had.

Which alternative is best for an AI agent?

It depends on how long the agent can wait and how hard its questions are. The same open benchmark ran six APIs on 2,182 questions in November 2026, one search per question.

API Median search time Multi-hop questions answered (FRAMES, 824)
Exa 0.74 s 64.0%
Brave Search API 1.21 s 53.9%
Tavily 2.00 s 48.4%
SerpApi 8.20 s 77.4%
cloro 7.96 s 80.2%

An agent that must answer a person in under 3 seconds needs an independent index. An agent that runs in the background, where a wrong answer costs more than a slow one, gets more correct answers from a Google SERP API with the AI Overview. Note one limit of every SERP API: it returns Google's snippets and no full page text. An agent that reads whole pages needs a fetch step as well.

How this was checked

This article is published by cloro, which sells one of the Google SERP APIs compared above. Google's and Microsoft's dates and quotes come from their own pages, linked above and read on November 16, 2026. Every vendor price comes from that vendor's pricing page, read the same day. The rows for its own API come from its published plans. Vertex AI Search pricing and Serper's AI Overview support were not checked. The speed and accuracy figures come from the open benchmark repo, which publishes the questions, the settings and every graded answer, so its own rows can be checked.

What Google has and has not said about the shutdown, including what happens to existing keys, is covered in more detail in Google Search API: Official Options, Limits and Pricing.

Top comments (0)