Google's Custom Search JSON API is closed to new customers, and Google says existing customers "have until January 1, 2027 to transition to an alternative solution". The same page calls that date the API's "service discontinuation". A site that builds its Google custom search results from API calls needs a replacement live before then.

The date also reaches some sites that never called the API. Google's announcement of 20 January 2026 applies it to embedded Programmable Search Element engines that query more than 50 domains or search the entire web. Element engines limited to 50 or fewer domains carry on, so the first thing to establish is which route each of your search boxes uses.

What is ending on 1 January 2027, and what carries on?

Google's Custom Search JSON API and Element engines searching the entire web or more than 50 domains need to complete a transition "to an alternative solution" by 1 January 2027. An Element engine restricted to 50 or fewer domains can stay on Google's free "Sites to search" feature.

Route What Google says What Google names next
Custom Search JSON API Closed to new customers; move by 1 January 2027 Vertex AI Search for up to 50 domains; contact Google for full web search
Element, over 50 domains or "Search the entire web" Transition by 1 January 2027 "An alternative solution", with no product named
Element, 50 or fewer domains Free "Sites to search" continues Not applicable

Since 20 January 2026, Google's help centre says, every new engine "must now be configured to use the 'Sites to search' feature", while an existing engine set to search the entire web "can continue to use this option until January 1, 2027". Once that option is toggled off, Google says it "can not be toggled back to On".

How can you tell which Google custom search route your site uses?

A site using the Search Element loads a script from cse.google.com/cse.js and marks where the box and results go with gcse- placeholders. The JSON API shows up as a call to an address containing customsearch/v1, or as an API key and engine ID in the CMS settings.

  1. View the source of your search results page and look for cse.js and classes such as gcse-search, the markers in Google's Element documentation.
  2. Run a search with the browser's network panel open and filter on customsearch/v1. Google gives the API's address as https://www.googleapis.com/customsearch/v1.
  3. Check the CMS configuration for an API key. Google describes the API as "Client side or server side", and the browser will not show a call your CMS makes from the server.
  4. Ask your Google Cloud project owner whether customsearch.googleapis.com shows traffic, which Google says can be monitored in the console.
  5. For an Element engine, the control panel shows its domains and whether "Search the entire web" is on.

An engine ID alone does not tell you the route, because the control panel's Search Engine ID "is the cx parameter used by the API" and also appears in the Element's script.

On Drupal, the module name tells you

The google_cse module, Google Programmable Search Engine, "supports all configuration provided by the Programmable Search Element API" and, its maintainers say, "just returns the search results from Google as an embed". It is the Element route, and its project page shows 9,976 sites reporting it.

The API route on Drupal is Google Programmable Search JSON API, machine name google_json_api, which its project page lists as Unsupported and Obsolete, with no release declaring Drupal 11 compatibility. Forty sites report using it, and any site with it enabled is on the route Google is discontinuing.

Google has not said what happens on the day

Google has not said what a Custom Search JSON API call will return after 1 January 2027. None of the Google pages we read gives an error code or a grace period, so plan for a replacement that is live and tested before the date, and remove the old integration yourselves.

Five options for Google custom search sites, and what each asks of your team

The options are listed in no order of preference.

Option What it asks of the web team
Programmable Search Element, 50 or fewer domains Embed code and control panel settings; the standard version shows ads and Google's terms bar reordering results
Vertex AI Search, which Google Cloud is renaming Agent Search A Google Cloud project with Enterprise edition features, which Google says website search requires and which "incur additional cost"
Open-source search on your own platform On Drupal, Search API with an Apache Solr or OpenSearch backend, on a search server your team or host runs
A managed site search service A supplier who runs the index and ranking, under a contract with exit terms
A semantic or AI search layer Content with usable dates and document types, and a decision on what generated answers may read

Staying on the Search Element means working within Google's terms

The Search Element is "a free client-side JavaScript search widget with no daily query limit". Google's terms of service say its results "may contain advertising, which You agree to display", and that a site shall not "change the order of the information contained in any Results", including by mixing them with non-Google results. Google can also change the presentation. In February 2026 it said a refreshed results design "has already begun rolling out to all search engines", and that sites with custom CSS "may need to make adjustments".

Google's successor changes the credentials

Google's API note names Vertex AI Search, which Google Cloud is renaming Agent Search, as an alternative for up to 50 domains. Google's closest migration guide, written for the related Site Restricted JSON API, says that API authenticates with an API key, while the successor, "with a couple of exceptions", requires OAuth 2.0. A site keeping a key needs to use the searchLite method, which does not offer Google's search widget, and Google advises restricting the key to https://discoveryengine.googleapis.com/*. Generated answers need domain ownership verified first, according to Google's product page.

Measure what your current search gets wrong before it goes

Test the old search before it is switched off, so the replacement is judged against evidence. Our site search test found the right page first in 65% of the 3,287 searches we could score across 832 UK public sector websites in October 2026. For how semantic search differs from keyword ranking, see semantic search versus keyword site search.

Freshness is worth measuring too. The maintainers of Drupal's google_cse module note that the Element "uses Google's index of the site" and that "Content changes are not immediately reflected in the results". For a withdrawn page, that delay is time it can still be found in your search.

What to ask a supplier replacing site search before 1 January 2027

Put the same questions to every supplier, including whoever would keep you on Google.

Ask A strong answer A weak answer
How does our content get into the index? Names feed, API or crawl, and how fast an unpublished page leaves the results "We crawl the site regularly"
How long to switch, and how do we test it? A dated plan that runs your logged queries on old and new search before 1 January 2027 A go-live date with no test
Will our search reporting carry on? The query stays in a URL parameter GA4 reads, and any Element callback is replaced "Analytics are built in"
What happens to our promoted results? Each one listed and moved across, with a named owner Assumes they carry over
How are the results made accessible? Names the WCAG level and the screen reader testing before handover "Accessible by design"
What can we take with us if we leave? A notice period, and export of your configuration and query logs No exit terms

With enhanced measurement on, Google Analytics records view_search_results when a results page carries a query parameter, by default q, s, search, query or keyword. Google's GA4 guidance for Element sites adds Search Element callbacks, custom code a replacement has to cover.

Promoted results need a plan of their own. Drupal's Vertex AI Search project needed a companion module to emulate the ones the old control panel allowed. W3C's technique G161, on providing a search function, notes that "The search form itself must be accessible, of course."

Google's own terms say it "may change, suspend or discontinue all or any aspect of the Service ... at any time". Write the notice and exports you need into any new contract; avoiding vendor lock-in covers the wider ownership terms.

How Axistwelve Semantic Search handles a replacement

Axistwelve Semantic Search replaces the existing search box, and takes content in by feed, API or crawl, whichever CMS produced it. Basic retrieval and cited answers work on content as it stands, while audience scoping and document-type filters need reliable metadata. Unpublishing a page takes it out of results and answers within minutes. The interface is built to WCAG 2.2 AA and tested with a screen reader before handover. Send us a web address and we index a sample and return a searchable link within five working days, with no call required, and delete the sample index within 30 days unless you ask us to keep it.

  • Run the checks above on every search box you own, intranets included, and record each route.
  • On the JSON API, set a switch date before 1 January 2027 and plan back from it.
  • On the Element, check the domain count and leave "Search the entire web" alone until you have decided.
  • Save your GA4 search terms report and note, for a set of real queries, the page that should come first. Run them against any replacement.
  • List your promoted results so each one is recreated or retired on purpose.
  • Once the replacement is live, delete the old API key from the CMS and the Google Cloud project.

Frequently asked questions

Can we still pay Google to remove ads from the Search Element?

A new customer cannot pay Google to remove ads: the Programmable Search Element Paid API is closed to new customers. Google offers non-profits, schools and government agencies the Element "for free without advertising and with no 50 search domain limit", with Google's decision sent by email. That edition carries Google branding, and Google's page does not say which UK bodies qualify.

Is Google CSE the same as Google Programmable Search Engine?

Google CSE refers to the product Google's help pages call Programmable Search Engine, and those pages still refer to "your custom search engine". Drupal's module for it keeps the machine name google_cse. The JSON API carries the Custom Search name, and both routes share one engine ID, the cx value.

Does the deadline apply to a government engine with no domain limit?

Google has not said whether an engine registered for the domain-limit exemption must move by 1 January 2027 if it searches more than 50 domains. Its January announcement sets the deadline for Element engines over 50 domains, and its help centre says registered engines "are exempt from the 50-domain limit". Until Google covers the overlap, treat the date as applying.