{"slug": "29-days-until-google-custom-search-shuts-down-free-repo-scanner-and-drop-in", "title": "29 Days Until Google Custom Search Shuts Down: Free Repo Scanner and Drop In Replacement", "summary": "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.", "body_md": "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.\n\nWe 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](https://github.com/Specstreamai/open-cse-migration-skill).\n\nIn Claude Code:\n\n```\n/plugin marketplace add Specstreamai/open-cse-migration-skill\n/plugin install open-cse-migration@specstream\n```\n\nThen ask: \"migrate this repo off Google Custom Search\". Or type `/open-cse-migration:open-cse-migration`.\n\nNo agent? Clone the repo and run the scanner directly. It needs Python 3.8 or newer and nothing else:\n\n```\ngit clone https://github.com/Specstreamai/open-cse-migration-skill\npython3 open-cse-migration-skill/scripts/cse_audit.py /path/to/your/repo --monthly-queries 250000\n```\n\n`scripts/cse_audit.py` walks your repo and flags every way teams call Custom Search:\n\n| Call | What the patch does | \n|---|---|\n| `www.googleapis.com/customsearch/v1` and`customsearch.googleapis.com/customsearch/v1` (and`/siterestrict` ) in any file | Rewrites the host to `api.specstream.ai` | \n| Python `googleapiclient`` build(\"customsearch\", \"v1\", ...)` | Adds `client_options={\"api_endpoint\": \"https://api.specstream.ai\"}` | \n| Node `googleapis`` customsearch(\"v1\")` and`cse.list(...)` | Prints the one line change ( `rootUrl` ) | \n| LangChain `GoogleSearchAPIWrapper` and`GoogleSearchRun` | Prints the swap to `SearxSearchWrapper` on the same key | \n| SerpApi clients and `serpapi.com/search` URLs | Prints the client setting; rewrites only with `--serpapi` | \n\nThe default run is a dry run. It prints a report and a unified diff and writes nothing:\n\n``` bash\n$ python3 scripts/cse_audit.py . --monthly-queries 250000\n\nGoogle ends the Custom Search JSON API on 2027-01-01 (29 days left).\n\nFound 2 Google Custom Search call sites and 0 SerpApi call sites in 1 file; 1 file can be patched automatically.\n\n--- a/search.py\n+++ b/search.py\n-URL = 'https://www.googleapis.com/customsearch/v1'\n+URL = 'https://api.specstream.ai/customsearch/v1'\n-s = build('customsearch', 'v1', developerKey=KEY)\n+s = build('customsearch', 'v1', developerKey=KEY, client_options={\"api_endpoint\": \"https://api.specstream.ai\"})\n\nCost 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.\n```\n\n`--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.\n\nThe 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.\n\n|  | Google Custom Search JSON API | SpecStream fast search | \n|---|---|---|\n| Price | $5 per 1,000 after 100 free a day | **$1 per 1,000** | \n| Daily cap | 10,000 queries | None | \n| After January 1, 2027 | Closed to existing customers | Live | \n| Response format | Google JSON | The same Google JSON | \n\nSpecStream'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](https://specstream.ai/benchmarks).\n\nA 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.\n\nPaste one of your own Custom Search URLs into the [Google CSE migrator](https://specstream.ai/tools/google-cse-migrator). It runs the same request against both endpoints and shows the results side by side.\n\nFor the full picture (what breaks, the timeline that works, and the change for each stack) read [How to replace Google Custom Search before 2027](https://specstream.ai/answers/replace-google-custom-search-before-2027).\n\n`--apply`, review the diff, and ship behind a flag.` cse_audit.py --json` to CI so no new Google call lands before January 1.\nThe skill, the scanner and its tests are on GitHub: [open-cse-migration-skill](https://github.com/Specstreamai/open-cse-migration-skill). Stars and issues are welcome.", "url": "https://wpnews.pro/news/29-days-until-google-custom-search-shuts-down-free-repo-scanner-and-drop-in", "canonical_source": "https://dev.to/specstream/29-days-until-google-custom-search-shuts-down-free-repo-scanner-and-drop-in-replacement-4h9l", "published_at": "2026-12-03 03:36:20+00:00", "updated_at": "2026-12-03 03:46:38.735247+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-search", "ai-products"], "entities": ["Google", "SpecStream AI", "Claude Code", "LangChain", "SerpApi", "googleapis", "googleapiclient"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/29-days-until-google-custom-search-shuts-down-free-repo-scanner-and-drop-in", "markdown": "https://wpnews.pro/news/29-days-until-google-custom-search-shuts-down-free-repo-scanner-and-drop-in.md", "text": "https://wpnews.pro/news/29-days-until-google-custom-search-shuts-down-free-repo-scanner-and-drop-in.txt", "jsonld": "https://wpnews.pro/news/29-days-until-google-custom-search-shuts-down-free-repo-scanner-and-drop-in.jsonld"}}