Google’s Custom Search JSON API is going away. It is closed to new customers, and existing customers must move off it by January 1, 2027. As of November 11, 2026, that is about seven weeks away.
What you move to depends on the job. A search box on your own site can use Google’s free Programmable Search Element. Search over your own sites and files fits Vertex AI Search. If your app needs the real google.com results page, use a SERP API.
What is happening to the Custom Search JSON API?
The Custom Search JSON API is a Google service that returns results from a Programmable Search Engine as JSON. Google has closed it to new customers and will discontinue it on January 1, 2027. The API overview page says so twice: once in its closure notice and once next to its prices.
Google first announced the change on January 20, 2026, on the Programmable Search Engine blog. That post says your move “needs to be completed by January 1, 2027.”
| Date | What changed |
|---|---|
| January 8, 2025 | The older Site Restricted JSON API stopped serving traffic. Google sent those users to Vertex AI Search. |
| January 20, 2026 | Google announced the change. All new search engines must use “Sites to search” (50 domains at most). |
| By February 18, 2026 | The Custom Search JSON API page says it is closed to new customers. |
| Now until January 1, 2027 | Existing customers keep access: 100 free queries a day, then $5 per 1,000, up to 10,000 a day. |
| January 1, 2027 | Google’s discontinuation date for the API. Engines set to “Search the entire web” must have moved by then too. |
We checked every Google page cited here on November 11, 2026. The ones that name a date all still say January 1, 2027.
What happens on January 1, 2027?
On January 1, 2027, the Custom Search JSON API is discontinued, and whole-web search engines must have moved to another tool. Here is what that means in practice.
What stops working
- Calls to
customsearch/v1. Any app that sends an API key and a search engine ID (thecxvalue) loses its results. That includes image searches made withsearchType=image. - Engines set to “Search the entire web.” Existing engines may keep this setting until January 1, 2027. Google has not said exactly what they will show after that.
- Engines that cover more than 50 domains. Google asks these users to move as well. Its help page says registered nonprofits, accredited schools and government agencies are exempt from the 50-domain cap.
Google has not said what a request will return after the cutoff, such as an error code. Treat the date as a hard stop. Plan to switch in December, not on New Year’s Day.
What keeps working
- The Programmable Search Element with “Sites to search.” This is Google’s free search box for your own site. It shows ads and can cover up to 50 domains. Google’s blog calls it the best tool for site search going forward.
- The ad-free Search Element, for people who already pay for it. Google’s Paid API page says it is closed to new customers, but existing customers are not affected.
What to do this week
- Find every call. Search your code and logs for
customsearch. Write down which fields you read. - Check your volume. The API dashboard in the Google Cloud console shows how many queries you send a day.
- Pick a path for each use. A site search box, search over your own content, or real Google results. The comparison below helps you choose.
- Set a switch date in December. Run the old and new source side by side first, so you switch with time to spare.
Why your Custom Search results were never quite Google
Some teams used this API as a cheap stand-in for google.com. It never matched.
Google’s own help pages say why. An engine puts your own sites ahead of the rest of the web. It may use only part of Google’s index when it covers more than ten sites, says What is Programmable Search Engine? And it leaves out Google features such as Oneboxes, real-time results and personalized results, says Programmable Search Engine vs Google.com.
The API had hard limits too. Each call returned at most 10 results. A query could never go past result 100, says the API reference. There were no ads, maps, People Also Ask boxes or AI Overviews. A real results page holds all of those, as we show in SERP features explained.
So the shutdown is also a chance to fix a data problem you may not have noticed.
Vertex AI Search vs. Programmable Search Element vs. a SERP API
Most Custom Search users will take one of three paths. Google points to the first two. The third is for apps that need Google’s own results page.
| Programmable Search Element | Vertex AI Search (Agent Search) | Third-party SERP API | |
|---|---|---|---|
| Best for | A search box on your own website | Search across your own sites, files and records | Apps that need the real google.com results page |
| What it searches | Up to 50 domains you list | Only the sites and data you add | Google’s results page for any keyword |
| Price (November 2026) | Free, with ads | $4 per 1,000 website queries (Enterprise edition); 10,000 free a month | Varies; Serplify is $0.005 per successful SERP of up to 100 results |
| How you get results | A box on your web page | An API or a search widget | A JSON API you call from your server |
| What it can’t do | Give your server results as data; search the whole web | Search the whole web; match google.com rankings | Search your private files; return the same list every time |
Programmable Search Element: for a search box on your site
The Programmable Search Element is Google’s free search box that you paste into your own web pages. It runs in the visitor’s browser. Results show on your page, with ads unless you are a nonprofit, school or government site that qualifies. Google’s offerings chart lists it as free with no daily query limit.
It suits a blog, docs site or store that wants a simple site search. It does not suit a backend that reads results as data.
Vertex AI Search: for search over your own content
Vertex AI Search is Google Cloud’s search engine for your own websites, files and databases. Google’s docs say it is being renamed Agent Search. It indexes what you give it, not the whole web.
For websites, the data limits page allows up to 50 URL patterns with basic website search. Advanced indexing allows 500, but you must prove you own the domains. Google’s migration guide says website search needs the Enterprise edition. Its searchLite method takes a plain API key, the closest match to your old setup.
On the pricing page, Enterprise costs $4 per 1,000 queries. The $1.50 Standard edition covers files and records, not websites. Each account gets 10,000 free queries a month. Index storage is billed too, after 10 GiB free a month.
A SERP API: for the real google.com page
A SERP API fetches the live Google results page for a keyword, place and device, and returns it as JSON. It covers the web as Google ranks it, including ads, local packs and AI Overviews. Rank trackers, SEO tools and AI agents use them.
It cannot search your private files. And results move as Google’s rankings move, so the same query can return a new list tomorrow.
Other Custom Search API alternatives, with prices
Prices below come from each provider’s own page, checked on November 11, 2026.
| Option | Where results come from | Price (November 2026) | Status |
|---|---|---|---|
| Custom Search JSON API | Part of Google’s index, filtered by your engine | $5 per 1,000 queries after 100 free a day | Closed to new customers; ends January 1, 2027 |
| Vertex AI Search (Agent Search) | Sites and data you add | $4 per 1,000 website queries; 10,000 free a month | Available |
| Google full web search | Google’s full index | Not published | By request through an interest form |
| Gemini API with Google Search grounding | Google Search, read by a Gemini model | $14 per 1,000 searches after 5,000 free a month (Gemini 3 models) | Available; returns an answer with links, not a results list |
| Serplify | Live google.com results page, up to 100 results | $0.005 per successful SERP; $1 free credit | Available |
| SerpApi | Live google.com results page | $25 a month for 1,000 searches; 250 free a month | Available |
| DataForSEO | Live google.com results page | $0.002 per 10 results (live), $0.0006 (standard queue) | Available |
| Brave Search API | Brave’s own index | $5 per 1,000 requests; $5 free credit a month | Available |
| Bing Search API | Bing | No longer sold | Retired August 11, 2025 |
A fair note on our own row: Serplify publishes this blog. It bills only a live search that succeeds and has no monthly plan. If you only need page one, DataForSEO’s standard queue costs less per call. Our SerpApi pricing guide works out its real monthly cost. For a wider field, see our comparison of SerpApi alternatives. Bing is out too, as our post on what replaced the Bing Search API explains. DuckDuckGo’s free API is no replacement either, since it returns instant answers, not search results.
One more price check. Custom Search and Serplify both cost $5 per 1,000 calls. A Custom Search call returns 10 results at most. A Serplify call returns up to 100.
How to move a Custom Search request to a SERP API
Often the change fits inside one function. Here is the short version.
- Get a key. New Serplify accounts get $1 of free credit, about 200 searches, with no card.
- Swap the URL and the auth. A
GETwithkey=in the URL becomes aPOSTwith anAuthorization: Bearerheader. - Rename the fields. Use the table after the code.
- Drop the paging loop. Set
depthonce instead of steppingstartby 10. - Handle HTTP 202. A slow search returns a
status_urlyou fetch later. - Compare before you switch. Run 50 real queries from your logs through both, then cut over.
Before: the Custom Search JSON API
This is a typical call in Python. It needs three requests to get 30 results, because num stops at 10.
import os, requests
URL = "https://customsearch.googleapis.com/customsearch/v1"
items = []
for start in (1, 11, 21): # 10 results per call
res = requests.get(URL, params={
"key": os.environ["GOOGLE_API_KEY"],
"cx": os.environ["SEARCH_ENGINE_ID"],
"q": "best running shoes",
"gl": "us",
"num": 10,
"start": start,
})
res.raise_for_status()
items += res.json().get("items", [])
for item in items:
print(item["title"], item["link"], item["snippet"])
After: the same search on Serplify
This sends the same search to our SERP API, using the request from the quickstart. One call returns up to 100 results. The standard format keeps organic results, ads and featured snippets.
import os, requests
res = requests.post(
"https://api.serplify.io/v1/serp/search",
headers={"Authorization": f"Bearer {os.environ['SERPLIFY_KEY']}"},
json={
"keyword": "best running shoes",
"location": {"code": 2840}, # United States
"language": {"code": "en"},
"depth": 30, # 10 to 100, one call
"format": "standard",
},
timeout=300,
)
res.raise_for_status()
body = res.json()
if body["status"] == "accepted": # HTTP 202, still running
print("Fetch later:", body["data"]["status_url"])
else:
for item in body["data"]["items"]:
if item["type"] == "organic":
print(item["title"], item["url"], item["description"])
The fields map like this:
| Custom Search JSON API | Serplify POST /v1/serp/search |
|---|---|
GET https://customsearch.googleapis.com/customsearch/v1 | POST https://api.serplify.io/v1/serp/search |
key in the URL | Authorization: Bearer <your key> header |
cx (your engine) | No engine. Add site:example.com to the keyword to stay on one site. |
q | keyword |
gl=us | location: {"code": 2840}, or a city by name |
hl, lr | language: {"code": "en"} |
num (10 at most) and start | depth (10 to 100) in one call |
items[] | data.items[], filtered to type == "organic" |
items[].title | title |
items[].link | url |
items[].snippet | description |
items[].displayLink | domain |
items[].formattedUrl | breadcrumb |
| Position in the list | rank_group |
searchInformation.totalResults | data.total_results_count |
Three things change for the better. You get the real page, not a filtered copy. You can pick a city and a device, as well as a country. And each item has a type, so you can keep or skip ads, maps and question boxes. Set format to advanced to get every SERP feature we parse.
Three things to watch. Results will differ from what your engine returned, so check any tests that expect exact URLs. Custom Search filters such as dateRestrict and image search have no direct match. And if your code already reads DataForSEO’s format, our DataForSEO drop-in serves the same data on /v3 routes.
Which option should you pick?
| If your app needs | Use |
|---|---|
| A search box on your own site (50 domains or fewer) | Programmable Search Element |
| Search over your own sites, files or records, through an API | Vertex AI Search |
| The same results a person sees on google.com | A SERP API |
| A written AI answer based on Google Search | Gemini API with Google Search grounding |
| Web results for an AI agent that do not have to be Google | Brave Search API, or a SERP API |
| Google’s full index, from Google itself | Google’s full web search interest form |
If you were thinking of scraping Google yourself instead, read that post first. Google blocks plain scripts within a few dozen searches. For agents, our guide on how to give an AI agent live Google search shows a full setup. If you want the same results page your users see, a Google SERP API is the most direct swap.
Whatever you pick, start this week. Run the new source next to the old one, compare the output, and switch well before January 1, 2027.
Frequently asked questions
Is the Google Custom Search API discontinued?
It is closed to new customers now. Existing customers can keep using it until January 1, 2027, which Google lists as the discontinuation date. After that you need another source of search results.
Can I still get a Google Custom Search API key?
Not for new projects. Google says the Custom Search JSON API is not available to new customers. If you already use it, your key keeps working until January 1, 2027.
Is the Google Custom Search API free?
Only for existing customers, and only for the first 100 queries each day. More queries cost $5 per 1,000, with a cap of 10,000 queries a day. New sign-ups are not accepted.
Will my Programmable Search Engine search box keep working after 2027?
Yes, if it uses Sites to search and covers 50 domains or fewer. Google says that free option stays. A box set to Search the entire web must move to another tool by January 1, 2027.
Can Vertex AI Search replace the Custom Search API?
Only for searching sites and data you choose. It does not search the whole web. Website search needs the Enterprise edition, at $4 per 1,000 queries with 10,000 free queries a month (November 2026).
Is there another API for Google search results?
Google no longer sells a self-serve API that returns a list of whole-web results. It runs an interest form for a full web search product. Third-party SERP APIs fetch the live google.com page and return it as JSON.
Sources and further reading
- Google for Developers: Custom Search JSON API overview (closure notice and pricing) developers.google.com
- Programmable Search Engine Blog: Updates to our Web Search Products (January 20, 2026) programmablesearchengine.googleblog.com
- Google for Developers: cse.list reference (num and start limits) developers.google.com
- Google for Developers: Custom Search response fields (items, link, snippet) developers.google.com
- Google for Developers: Custom Search Site Restricted JSON API (ended January 8, 2025) developers.google.com
- Google for Developers: Programmable Search Engine offerings (free, ad-supported Search Element) developers.google.com
- Google for Developers: Programmable Search Element Paid API (closed to new customers) developers.google.com
- Programmable Search Engine Help: Update sites in your search engine (50-domain limit) support.google.com
- Programmable Search Engine Help: What is Programmable Search Engine? support.google.com
- Programmable Search Engine Help: Programmable Search Engine vs Google.com support.google.com
- Google Cloud: Agent Search (Vertex AI Search) pricing cloud.google.com
- Google Cloud: Migrate from Custom Search Site Restricted JSON API to Agent Search docs.cloud.google.com
- Google Cloud: Prepare data (website URL pattern limits) docs.cloud.google.com
- Google AI Studio: Grounding with Google Search (pricing) aistudio.google.com
- Serplify docs: Live search docs.serplify.io
- Serplify docs: SERP API overview (request fields) docs.serplify.io
- SerpApi pricing serpapi.com
- DataForSEO Google Organic SERP API pricing dataforseo.com
- Brave Search API pricing brave.com
- Microsoft Learn: Bing Search APIs retiring on August 11, 2025 learn.microsoft.com