Blog 11 min read
Google Custom Search JSON API shutdown: a migration guide for B2B site search and AI agents
Method for B2B teams whose site search or AI agents depend on the Google Custom Search JSON API: inventory call volume before the 2027-01-01 cutoff, choose site-scoped vs open-web replacement, estimate post-migration cost, and read shutdown notices as demand signals.
Many B2B websites and internal tools quietly depend on the Google Custom Search JSON API: the “search our catalog” box on a distributor portal, a support bot that looks up spec sheets, or an AI agent that grounds answers on a handful of trusted domains. That dependency now has a deadline.
Google’s official overview states that the Custom Search JSON API is closed to new customers, and that existing customers have until January 1, 2027 to transition to an alternative solution (source: developers.google.com/custom-search/v1/overview, checked 2026-10-30). The same page points to Vertex AI Search as an alternative for searching up to 50 domains, and asks full-web use cases to contact Google about a full web search solution.
This is a method article for exporters, OEM portals, and B2B SaaS teams: how to inventory what you actually call, choose a replacement path, estimate post-migration cost, and—on the other side of the market—how to treat shutdown announcements like this as a demand-discovery signal. It is not a vendor recommendation.
What the official page says about pricing today
- 100 search queries per day free.
- $5 per 1,000 additional queries, billed via the API Console.
- Up to 10,000 queries per day cap.
Quoted from the official overview above (checked 2026-10-30). Re-check before budgeting; this is your baseline, not your future price.
1. Inventory call volume before you pick anything
Most teams discover they have more CSE consumers than they thought. Before comparing vendors, build a one-page inventory:
| Field | Where to get it | Why it matters |
|---|---|---|
| Consumers (site search box, support bot, agent tool, scripts) | Grep code and config for customsearch/v1, cx=, API keys | Each consumer may need a different replacement |
| Queries/day — average and p95 | Google Cloud console API metrics, app logs | Drives cost and whether you hit tier limits |
| Search scope — your domains only, a list of partner domains, or open web | Programmable Search Engine config | The single biggest decision input |
| Results used per query | Code: do you read top 3 or top 10? | Affects page-fetch volume downstream |
| Downstream steps — fetch pages, pass snippets to an LLM | Agent traces | Search may be the smallest part of the bill |
Convert to monthly: Qmonth = queries/day × 30. Under today’s CSE pricing your baseline is roughly max(0, queries/day − 100) × 30 × $5 / 1,000. At 2,000 queries/day that is about 1,900 × 30 × $0.005 ≈ $285/month.
2. Choose a replacement path: site-scoped vs open-web
The CSE API served two different jobs. Separate them before migrating.
| Path | Fits when | Options (illustrative) | Watch out for |
|---|---|---|---|
| A. Site-scoped search | You search your own catalog, docs, or a short list of domains | Managed enterprise search (Google points to Vertex AI Search for up to 50 domains); self-hosted or hosted site-search engines indexing your own content | Indexing setup, freshness, per-query or per-storage billing; often better relevance on your own data than a web index |
| B. Open-web search API | Agents look up competitor specs, standards, regulations, news | Independent web search APIs and agent-oriented search/extract APIs (Brave-, Exa-, Tavily-, Firecrawl-style), or model-native grounding | Different meters: per request, credits, separate extraction fees, result-count limits, terms on storing results |
| C. Remove the call | Logs show the search is rarely used or results are ignored | Static links, a FAQ, or your existing knowledge base / RAG | Measure before deleting; cheapest migration is no migration |
Many teams end up with a split: site search moves to path A, agents move to path B. Do not let one vendor’s demo decide both. When a vendor publishes third-party benchmarks or relevance comparisons on its own pages, treat them as vendor-reported and re-run a small evaluation on your own queries (50–100 real queries from logs is enough to spot gaps).
3. Estimate post-migration cost
Use the same inventory numbers and add the layers the new path introduces:
- Search: Qmonth × price per 1,000 (or credits per call × credit price). Check free tiers and plan minimums.
- Fetch / extract: if the agent now fetches pages the CSE snippets used to cover, add pages per query × per-page price.
- Generation: extra tokens from longer results or fetched content.
- Engineering: one-off migration hours, index setup, and evaluation. For low volumes this dominates.
| Scenario (2,000 queries/day) | Monthly search line |
|---|---|
| CSE today (official pricing) | ≈ $285 |
| Hypothetical API at $3 / 1,000 | ≈ $180 |
| Hypothetical API at $8 / 1,000 + $1 / 1,000 pages fetched × 3 pages | ≈ $480 + $180 = $660 |
The hypothetical rows are arithmetic examples, not quotes. Plug real prices into the calculators:
- Google Custom Search API migration cost calculator (rolling out—if it returns 404, use the comparison below)
- Web search API cost comparison
For the full search + fetch + generation model for agents, see Web search API costs for B2B AI agents. This post only covers the CSE exit decision.
4. Migration checklist (work back from 2027-01-01)
- Now: finish the inventory; tag each consumer A / B / C.
- +2 weeks: shortlist 2–3 options per path; run your log-sampled evaluation.
- +4–6 weeks: ship behind a feature flag; run old and new side by side; compare relevance, latency, cost per 1,000.
- Before mid-December: cut over, keep CSE as fallback until the deadline, set budget alerts on the new meter.
- After: remove CSE keys and
cxIDs from config so nothing silently fails on January 1.
5. Shutdown announcements as a demand-discovery signal
Flip the perspective. If you sell anything adjacent—search, integration services, hosting, data, or even physical products whose buyers run portals—a dated shutdown creates a cohort of buyers with a fixed deadline and a budget line. That is a method you can reuse for any API deprecation:
- Watch the source: official deprecation pages, changelogs, and pricing pages—not rumors.
- Extract the facts: who is affected, deadline, current price, official alternatives.
- Map the buyer questions: “what replaces it,” “what will it cost,” “how long does migration take.” Those are search queries and inquiry topics.
- Publish a useful answer early: a guide, a calculator, a checklist—clearly sourced.
- Measure: track impressions and inquiries on those pages over the window before the deadline.
This page is itself an example of the method. It does not require you to pitch a product; it requires you to answer the question first.
How this differs from related posts
- Web search API costs for B2B AI agents — general cost model for agent web grounding. This post is the dated CSE exit plan.
- B2B RAG stack cost modeling — search over your own corpus via embeddings; relevant if you choose path C.
- LLM API cost modeling, comparing aggregator quotes, machine-readable pricing, seats → agents — token, model, and packaging jobs, not a search-API deprecation.
Where Yizhan fits
Whichever path you choose, buyers’ agents and search engines still need to find and read your pages. Yizhan builds English B2B inquiry sites with clean, crawlable product and spec pages that work well with site-scoped search and with others’ agents.
If your site search or inquiry flow touches CSE, skim the platform, then leave a request with your query volume and which consumers you found. Measured numbers make scoping faster.
Next step
Want a crawlable inquiry site for that topic?
Tell us the product, target market, and how many sites you need. We build English inquiry pages search engines and AI crawlers can read—then route buyer messages into one admin.
See how Yizhan builds crawlable inquiry sites on the platform page, or leave a request.