cd /news/ai-tools/29-days-until-google-custom-search-s… · home › topics › ai-tools › article
[ARTICLE · art-180726] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=· neutral

29 Days Until Google Custom Search Shuts Down: Free Repo Scanner and Drop In Replacement

SpecStream AI open-sourced an MIT-licensed Claude Code skill and standalone Python scanner that finds Google Custom Search JSON API call sites in a repository, estimates migration cost, and patches them to point at SpecStream's drop-in customsearch/v1 endpoint. The tool rewrites raw URLs, googleapiclient build() calls, and Node googleapis clients, and flags LangChain and SerpApi usages, running as a dry run by default with --apply, --json, and --serpapi options. The release comes ahead of Google's January 1, 2027 shutdown of the API for existing customers, with SpecStream pricing fast search at $1 per 1,000 queries versus Google's $5.

key takeaway

The open-cse-migration skill's cse_audit.py rewrites customsearch/v1 hosts and googleapiclient build() calls to SpecStream's endpoint, with --json output for CI gating and --apply limited to .py files.

by read3 min views12 publishedDec 3, 2026

Google ends the Custom Search JSON API for existing customers on January 1, 2027. That is 29 days from today. Every customsearch/v1 call left in your code stops answering that morning.

We open sourced a Claude Code skill that finds those calls for you, prices the move, and patches each one to an endpoint that answers the same request in Google's own JSON. It is MIT licensed: Specstreamai/open-cse-migration-skill.

In Claude Code:

/plugin marketplace add Specstreamai/open-cse-migration-skill
/plugin install open-cse-migration@specstream

Then ask: "migrate this repo off Google Custom Search". Or type /open-cse-migration:open-cse-migration.

No agent? Clone the repo and run the scanner directly. It needs Python 3.8 or newer and nothing else:

git clone https://github.com/Specstreamai/open-cse-migration-skill
python3 open-cse-migration-skill/scripts/cse_audit.py /path/to/your/repo --monthly-queries 250000

scripts/cse_audit.py walks your repo and flags every way teams call Custom Search:

Call What the patch does
www.googleapis.com/customsearch/v1 andcustomsearch.googleapis.com/customsearch/v1 (and/siterestrict ) in any file Rewrites the host to api.specstream.ai
Python googleapiclient`` build("customsearch", "v1", ...) Adds client_options={"api_endpoint": "https://api.specstream.ai"}
Node googleapis`` customsearch("v1") andcse.list(...) Prints the one line change ( rootUrl )
LangChain GoogleSearchAPIWrapper andGoogleSearchRun Prints the swap to SearxSearchWrapper on the same key
SerpApi clients and serpapi.com/search URLs Prints the client setting; rewrites only with --serpapi

The default run is a dry run. It prints a report and a unified diff and writes nothing:

$ python3 scripts/cse_audit.py . --monthly-queries 250000

Google ends the Custom Search JSON API on 2027-01-01 (29 days left).

Found 2 Google Custom Search call sites and 0 SerpApi call sites in 1 file; 1 file can be patched automatically.

--- a/search.py
+++ b/search.py
-URL = 'https://www.googleapis.com/customsearch/v1'
+URL = 'https://api.specstream.ai/customsearch/v1'
-s = build('customsearch', 'v1', developerKey=KEY)
+s = build('customsearch', 'v1', developerKey=KEY, client_options={"api_endpoint": "https://api.specstream.ai"})

Cost at 250,000 searches a month: Google $1,250.00, SpecStream $250.00 (fast tier, $1 per 1,000). You save $1,000.00 a month.

--apply writes the patch. build() calls are patched in .py files only, so notebooks and config files keep valid syntax. --json prints the report for CI, so you can fail a build while any Google call remains.

The patched calls go to SpecStream's customsearch/v1 drop in route. It returns items[] with title, link, snippet and displayLink, plus searchInformation and queries.nextPage. Image search works with searchType=image. Your parser does not change.

Google Custom Search JSON API SpecStream fast search
Price $5 per 1,000 after 100 free a day $1 per 1,000
Daily cap 10,000 queries None
After January 1, 2027 Closed to existing customers Live
Response format Google JSON The same Google JSON

SpecStream's Search API ranks first on WideSearch and scores 99 on SimpleQA Verified, with a median of 937 ms over 6,548 live calls in the week to December 1, 2026. Scores and method are on the benchmarks page.

A new account gets $2 of credit with no card, which is 2,000 fast searches. That is enough to run your whole test suite against the new endpoint before you merge.

Paste one of your own Custom Search URLs into the Google CSE migrator. It runs the same request against both endpoints and shows the results side by side.

For the full picture (what breaks, the timeline that works, and the change for each stack) read How to replace Google Custom Search before 2027.

--apply, review the diff, and ship behind a flag. cse_audit.py --json to CI so no new Google call lands before January 1. The skill, the scanner and its tests are on GitHub: open-cse-migration-skill. Stars and issues are welcome.

── more in #ai-tools 4 stories · sorted by recency
── more on @google 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/29-days-until-google…] indexed:0 read:3min 2026-12-03 · —