Replace the Google Custom Search JSON API before January 1, 2027
Google shuts down the Custom Search JSON API on January 1, 2027. Change https://www.googleapis.com/customsearch/v1 to https://api.specstream.ai/customsearch/v1 and the same request keeps working, at $1 per 1,000 searches against $5. That is 80% lower, with no daily limit.
A new account gets $2 of credit, no card: 2,000 free test searches. Start the Starter plan at $49 a month for 49,000 searches.
- https://www.googleapis.com/customsearch/v1 + https://api.specstream.ai/customsearch/v1
- $1
- per 1,000 searches on SpecStream, fast tier
- $5
- per 1,000 queries on Google Custom Search, until it closes
- 80%
- lower search cost from the first call
- 25,280
- files on GitHub still called the API on November 20, 2026
Move in four steps
About ten minutes for one call site. Before and after code for 15 stacks is below.
- Create a SpecStream keySign up with no card. A new account gets $2 of credit, which covers 2,000 test searches.
- Change the base URLReplace
https://www.googleapis.com/customsearch/v1withhttps://api.specstream.ai/customsearch/v1and put the SpecStream key inkey.cxis accepted and not used. - Run your own queriesThe reply keeps the JSON Google sends:
itemswithtitle,linkandsnippet. Your parser stays as it is. Compare both replies in the Google CSE migrator. - Go to productionPay as you go at $1 per 1,000 searches, or start the Starter plan at $49 a month for 49,000 searches. There is no daily limit.
The same month of searches at $1 and at $5 per 1,000
SpecStream costs 80% less than Google Custom Search at every volume, and it keeps answering past 10,000 searches a day.
The move in one command
GitHub counted 7,072 files that build the call with the key in the address, customsearch/v1?key=, on November 20, 2026. That is the form a shell script uses. On SpecStream the same command runs with one host changed, or as a native search with the key in a header.
curl -G "https://www.googleapis.com/customsearch/v1" \ --data-urlencode "key=$GOOGLE_API_KEY" \ --data-urlencode "cx=$GOOGLE_CSE_ID" \ --data-urlencode "q=open source vector databases" \ -d num=10
curl -G "https://api.specstream.ai/v1/web-search" \ -H "Authorization: Bearer $SPECSTREAM_API_KEY" \ --data-urlencode "q=open source vector databases" \ -d num=10 \ -d speed=fast
By language
A whole program before and after, with no SDK to install.
- Pythonrequests against /v1/web-search, or one changed address.
- TypeScriptA typed search function on fetch, with the result type included.
- Node.jsBuilt in fetch on Node.js 18 and later, no package to install.
- Gonet/http and encoding/json from the standard library.
- PHPPlain PHP with file_get_contents, no Composer package.
- Rubynet/http and json from the standard library.
- Javajava.net.http.HttpClient on Java 11 and later, with Jackson.
- C#HttpClient and System.Text.Json on .NET 6 and later.
- curlOne command for shell scripts, cron jobs and quick checks.
By agent framework
The search tool your agent calls, moved without touching the agent.
By platform
The node or the Worker that makes the call today.
$1 per 1,000 searches against $5
SpecStream costs 80% less than Google Custom Search from the first call, with no daily limit and no plan to choose.
Start now
Test your own query, start on free credit, or prepay for production.
- Google CSE migratorRun a query and see the Google shaped reply beside the SpecStream reply, with the code for your call.
- Start with $2 of creditNo card. It covers 2,000 fast searches, and the key works on the API and over MCP.
- $1,000 prepay packPay once by card and get $1,200 of credit. It does not expire.
- $5,000 prepay packFor production volume. Pay once by card and search from the same balance.
More on the shutdown
- The one line switchThe Google request as it is, sent to SpecStream, with every parameter that carries over.
- Guides for open source appsLibreChat, Open WebUI, LangChain and other apps that ship a Google search setting.
- How much code still calls itGitHub counts by language and by project, read on November 20, 2026.
Questions
Something we didn't answer? Talk to a human
When does the Google Custom Search JSON API shut down?
What does SpecStream cost against Google Custom Search?
Do I need a Programmable Search Engine ID?
/v1/web-search you leave cx out, and on the Google compatible address it is accepted and not used. To keep a search inside one site, write site:example.com in q.Is the reply the same as Google's?
https://api.specstream.ai/customsearch/v1 the reply keeps Google's JSON: items with title, link, snippet and displayLink, searchInformation.totalResults and queries.nextPage. On /v1/web-search each result is in data.sources with title, url, site and snippet, and passages=true adds the best passages of each page.How accurate is SpecStream search?
Can an agent pay per call with no account?
What is the best alternative to the Google Custom Search JSON API?
customsearch/v1 request with Google's JSON reply, costs $1 per 1,000 searches against Google's $5, has no daily limit, and is #1 across 15 public web search and extraction benchmarks.Is there a drop in replacement for customsearch.googleapis.com?
https://www.googleapis.com/customsearch/v1 or https://customsearch.googleapis.com/customsearch/v1 to https://api.specstream.ai/customsearch/v1, with a SpecStream key in key. q, num, start, siteSearch, exactTerms, excludeTerms, orTerms, dateRestrict, fileType, lr, gl, safe and searchType=image carry over, and cx is accepted and not used.Is there a cheaper API than Google Custom Search?
What happens to my code on January 1, 2027?
Keep your search working after January 1
One base URL changed. $1 per 1,000 searches, no daily limit, and $2 of credit to start.