Google's Custom Search API Is Closing
The Custom Search JSON API has been the default answer to "how do I get Google results programmatically" for fifteen years. It is closed to new customers and it stops working on January 1, 2027. Here is what it cost, what is left, and what to migrate to.
If you are here because you typed does google charge for their custom search api into a search box, the answer is yes, and then some. The Custom Search JSON API gives you 100 free queries a day, charges $5 per 1,000 queries after that, and caps out at 10,000 queries a day. More important than the price: Google has closed it to new customers and it is discontinued on January 1, 2027.
If you already use it, you have a deadline. If you are planning a new project on it, you do not have an API - you have a migration to plan. This guide has the numbers, what Google offers instead, and how to choose.
What it costs, exactly
Google's own documentation states the pricing in one paragraph, and it is worth quoting rather than paraphrasing. From the Custom Search JSON API overview, read on 19 November 2026:
"The following pricing applies only to current Custom Search JSON API customers until the service is discontinued on January 1, 2027. This API is not for new customers. The Custom Search JSON API provides 100 free search queries per day. If you need more, you can enable billing in the API Console. Additional requests cost 5 USD per 1,000 queries, up to 10,000 queries per day."
- Google for Developers, Custom Search JSON API overview, page last updated 19 November 2026
So the numbers are:
- 100 free queries per day for existing customers, for the remaining life of the service.
- $5 per 1,000 queries once you are past that, billed through Google Cloud.
- A hard ceiling of 10,000 queries per day, and no plan raises it. That ceiling is more binding than the price for a lot of teams.
- No access for new customers. The API key that the tutorials tell you to create cannot be created any more.
The billing unit is the query, not the result. A request that returns ten results and a request that returns one cost the same. But the API returns at most ten results per call, so pulling a hundred results for one keyword is ten billable queries - $0.05 at the paid rate.
The limit people forget: it was never the open web
This is the part that matters most if you are migrating, and it is the part the tutorials never mention. The Custom Search JSON API searches the Programmable Search Engine you configured - a list of sites or a refinement you set up in the PSE console. It is not google.com. It does not return the results page people see on google.com.
If you are using it to search your own documentation, that is exactly the right tool and you should keep using it while it lasts. If you are using it to ask an agent "what does the web say about this", it was never the right tool, and the January 2027 deadline is the excuse to fix that. The distinction is the difference between a site search and a web search, and no amount of configuration turns one into the other.
What Google offers instead
Google names two successors in its own documentation, and it is worth being precise about what each one is - because neither is a drop-in replacement for the thing most people were using.
Vertex AI Search. Google's note points at it as "a suitable alternative for searching up to 50 domains". It is an enterprise product for semantic search over content you own and have indexed, priced per 1,000 queries plus per gigabyte of indexed data. It is a good fit for search inside your own product. It is capped at 50 domains, so it is not an open-web search API.
Contacting Google. For full-web search, Google's documentation invites you to contact their team rather than pointing at a self-serve product. That is what it says, and it is worth taking at face value: there is no public price list for open-web search through Google in 2026.
Grounding with Google Search, inside the Gemini API, is the third option people ask about. It is not a results API: it returns a model's answer with search behind it, not ranked results with URLs. If you are building an agent that has to cite a specific page, that is a different shape from what you had.
Microsoft went the same way: the Bing Search and Bing Custom Search APIs were retired on 11 August 2025, and the successor - Grounding with Bing Search - is only available inside Microsoft's own agent platforms rather than as a standalone API. Two of the three big indexes have now closed their programmatic doors. That is the market context for everything below.
Three kinds of migration
You were searching your own sites
Stay with Google, move to Vertex AI Search, and budget for the indexing. This is the migration with the least risk, and the announcement exists mainly so you can do it on your own schedule rather than in a panic in December 2026.
You were searching the open web for an agent
You were using something that was never going to do this well, and now you have to move. The candidates are the search APIs built for agents: ones that return the page text rather than a snippet, because an agent needs the text. The guide to what a web search API actually returns is the right starting point, and the honest comparison is against the SERP providers if you need the results page itself.
You were scraping google.com and hoping
Now is the moment to stop. The providers that return the open-web results page are a different category from the ones that return page content for an agent, and they charge accordingly. Pick the category that matches your workload rather than the one that happens to be cheapest per call.
A migration checklist that fits in a day
- Find out which of the three situations you are in. Own sites, open web, or a results page. The answer determines the category of replacement.
- Write down what you actually use it for. If the answer is "we asked for ten results and read the first three", you are using a results API and the replacement can be much cheaper.
- Check whether you need the full text. If your agent reads the pages, a snippet API means you are writing a fetch layer you would rather not write - that is the whole argument for a content-returning search API.
- Move the key and the billing separately. A provider that has no card on file cannot cut you off mid-migration, and a provider with a monthly allowance gives you room to test.
- Run the same twenty questions through the new provider. The old one, the new one, side by side. That comparison settles a migration faster than any feature table.
What AgentSearch is, in this context
We are one of the options in the third group, so here is the honest version rather than a sales pitch. A call to the AgentSearch search API searches the live web and returns the text of the pages, with the publication date, the source and a quality score on every result - as JSON for your code and as Markdown for your model. It is a search API for agents, not a results-page API and not a site-search product.
Search and page reads are metered separately. The free tier is 100 searches and 20 page reads a month; Pro is $9, Team is $79; overages are priced at $2.5 per 1,000 calls and never interrupt a request. There is no SDK to install - it is two HTTP endpoints and a bearer token. We call no language model, and we do not keep your query text in plaintext.
What we are not is a source of Google's results page. If your product needs the exact rankings google.com shows, with the ads and the People Also Ask box, you want a SERP provider and we are the wrong tool. We will say so in the sales call too.
Try the migration on your own questions
The Free plan gives you 100 searches and 20 page reads a month, no card. Take the twenty queries that matter most to you and read the answers with the citations.
Get a free API keySources
- Google for Developers, Custom Search JSON API overview - read 24 November 2026; the page itself was last updated 19 November 2026
- Google for Developers, the
cse.listAPI reference, for the 10-results-per-request and 100-results-per-query limits - Google Cloud, Agent Search (Vertex AI Search) pricing - read November 2026
- Google AI for Developers, Grounding with Google Search - read November 2026
- Microsoft's retirement of the Bing Search and Bing Custom Search APIs on 11 August 2025, as reported across several vendor guides
Related: what a web search API is, what the free search API tiers give you, and what a call costs.