SERP API

Google Custom Search API is shutting down: what to use instead before 2027

Google's Custom Search JSON API ends January 1, 2027. See what stops, what Vertex AI Search and the free search box cover, and how to move your code.

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.”

DateWhat changed
January 8, 2025The older Site Restricted JSON API stopped serving traffic. Google sent those users to Vertex AI Search.
January 20, 2026Google announced the change. All new search engines must use “Sites to search” (50 domains at most).
By February 18, 2026The Custom Search JSON API page says it is closed to new customers.
Now until January 1, 2027Existing customers keep access: 100 free queries a day, then $5 per 1,000, up to 10,000 a day.
January 1, 2027Google’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 (the cx value) loses its results. That includes image searches made with searchType=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

  1. Find every call. Search your code and logs for customsearch. Write down which fields you read.
  2. Check your volume. The API dashboard in the Google Cloud console shows how many queries you send a day.
  3. 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.
  4. 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 ElementVertex AI Search (Agent Search)Third-party SERP API
Best forA search box on your own websiteSearch across your own sites, files and recordsApps that need the real google.com results page
What it searchesUp to 50 domains you listOnly the sites and data you addGoogle’s results page for any keyword
Price (November 2026)Free, with ads$4 per 1,000 website queries (Enterprise edition); 10,000 free a monthVaries; Serplify is $0.005 per successful SERP of up to 100 results
How you get resultsA box on your web pageAn API or a search widgetA JSON API you call from your server
What it can’t doGive your server results as data; search the whole webSearch the whole web; match google.com rankingsSearch 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.

OptionWhere results come fromPrice (November 2026)Status
Custom Search JSON APIPart of Google’s index, filtered by your engine$5 per 1,000 queries after 100 free a dayClosed 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 monthAvailable
Google full web searchGoogle’s full indexNot publishedBy request through an interest form
Gemini API with Google Search groundingGoogle 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
SerplifyLive google.com results page, up to 100 results$0.005 per successful SERP; $1 free creditAvailable
SerpApiLive google.com results page$25 a month for 1,000 searches; 250 free a monthAvailable
DataForSEOLive google.com results page$0.002 per 10 results (live), $0.0006 (standard queue)Available
Brave Search APIBrave’s own index$5 per 1,000 requests; $5 free credit a monthAvailable
Bing Search APIBingNo longer soldRetired 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.

  1. Get a key. New Serplify accounts get $1 of free credit, about 200 searches, with no card.
  2. Swap the URL and the auth. A GET with key= in the URL becomes a POST with an Authorization: Bearer header.
  3. Rename the fields. Use the table after the code.
  4. Drop the paging loop. Set depth once instead of stepping start by 10.
  5. Handle HTTP 202. A slow search returns a status_url you fetch later.
  6. 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 APISerplify POST /v1/serp/search
GET https://customsearch.googleapis.com/customsearch/v1POST https://api.serplify.io/v1/serp/search
key in the URLAuthorization: Bearer <your key> header
cx (your engine)No engine. Add site:example.com to the keyword to stay on one site.
qkeyword
gl=uslocation: {"code": 2840}, or a city by name
hl, lrlanguage: {"code": "en"}
num (10 at most) and startdepth (10 to 100) in one call
items[]data.items[], filtered to type == "organic"
items[].titletitle
items[].linkurl
items[].snippetdescription
items[].displayLinkdomain
items[].formattedUrlbreadcrumb
Position in the listrank_group
searchInformation.totalResultsdata.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 needsUse
A search box on your own site (50 domains or fewer)Programmable Search Element
Search over your own sites, files or records, through an APIVertex AI Search
The same results a person sees on google.comA SERP API
A written AI answer based on Google SearchGemini API with Google Search grounding
Web results for an AI agent that do not have to be GoogleBrave Search API, or a SERP API
Google’s full index, from Google itselfGoogle’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

  1. Google for Developers: Custom Search JSON API overview (closure notice and pricing) developers.google.com
  2. Programmable Search Engine Blog: Updates to our Web Search Products (January 20, 2026) programmablesearchengine.googleblog.com
  3. Google for Developers: cse.list reference (num and start limits) developers.google.com
  4. Google for Developers: Custom Search response fields (items, link, snippet) developers.google.com
  5. Google for Developers: Custom Search Site Restricted JSON API (ended January 8, 2025) developers.google.com
  6. Google for Developers: Programmable Search Engine offerings (free, ad-supported Search Element) developers.google.com
  7. Google for Developers: Programmable Search Element Paid API (closed to new customers) developers.google.com
  8. Programmable Search Engine Help: Update sites in your search engine (50-domain limit) support.google.com
  9. Programmable Search Engine Help: What is Programmable Search Engine? support.google.com
  10. Programmable Search Engine Help: Programmable Search Engine vs Google.com support.google.com
  11. Google Cloud: Agent Search (Vertex AI Search) pricing cloud.google.com
  12. Google Cloud: Migrate from Custom Search Site Restricted JSON API to Agent Search docs.cloud.google.com
  13. Google Cloud: Prepare data (website URL pattern limits) docs.cloud.google.com
  14. Google AI Studio: Grounding with Google Search (pricing) aistudio.google.com
  15. Serplify docs: Live search docs.serplify.io
  16. Serplify docs: SERP API overview (request fields) docs.serplify.io
  17. SerpApi pricing serpapi.com
  18. DataForSEO Google Organic SERP API pricing dataforseo.com
  19. Brave Search API pricing brave.com
  20. Microsoft Learn: Bing Search APIs retiring on August 11, 2025 learn.microsoft.com

From the team that built it

Put this into practice with the SERP API.

Real-time Google SERP API with AI-ready JSON — 26+ SERP feature types, location and device targeting, 99.9% uptime — full live SERPs at a fraction of the going rate.

Start on the free balance — no card required.