Blog

Google Custom Search API Is Closing: What to Use by January 1, 2027

By Kartey R

Founder of Serpex

Updated 8 min read
Technology

Google's Custom Search JSON API "is closed to new customers", and existing customers "have until January 1, 2027 to transition to an alternative solution" (Google, checked 28 September 2026). Until then it gives 100 queries a day free and charges $5 per 1,000 after that, which comes to about $485 a month at 100,000 searches. At that volume, the open-web search APIs below list from $50 to $800 a month: Serpex $50 to $80, DataForSEO $60 (queued), Serper $75, Brave $500 and Tavily $800 pay as you go. Google's own suggested replacement, Vertex AI Search, is described for "searching up to 50 domains", not the whole web.

If you used Custom Search to bring whole-web results into an app or an agent, Serpex, the search API we make, is a small code change: you keep q, send the key as a header, and get up to 10 results back, plus the page content of the top 5 or 10 as Markdown in the same call if you ask for it. It costs $0.50 to $0.80 per 1,000 searches, errors and timeouts are never billed, and new accounts get 200 free credits with no card. The migration is shown step by step below.

Google's terms checked 28 September 2026 on its Custom Search JSON API overview. Other prices checked 1 October 2026 on each vendor's own pricing page or docs (Serper on 19 October 2026), linked in the table below.

What is changing, and when?

Google's overview page says two things, word for word:

  • "The Custom Search JSON API is closed to new customers. Vertex AI Search is a favorable alternative for searching up to 50 domains."
  • "Existing Custom Search JSON API customers have until January 1, 2027 to transition to an alternative solution."

So no new projects can start on it, and anything already running on it has to move before 1 January 2027. Counted from 19 October 2026, that's 74 days (13 left in October, 30 in November, 31 in December). Plan for your integration to stop working after that date and you won't be caught out.

Can you still sign up for a Custom Search JSON API key?

No. It "is closed to new customers". If you're starting a project today, pick another API from day one.

If you're an existing customer, the current pricing still applies until you move: "100 search queries per day for free", then "Additional requests cost $5 per 1000 queries, up to 10k queries per day." That daily cap works out to about 300,000 queries in a 30-day month.

Is Vertex AI Search a replacement?

For some teams. Google's words are "a favorable alternative for searching up to 50 domains." If your Custom Search engine covered your own site or a short list of sites, start there. If you used Custom Search to search the whole web, for an app, an agent or a research tool, Google's own description doesn't cover that case, and an open-web search API is the like-for-like move. We haven't priced Vertex AI Search here.

What do open-web search APIs cost compared with Custom Search's $5 per 1,000?

Monthly totals at list prices, before any free allowance, for one plain search per request:

OptionPer 1,00010,000 searches a month100,000 searches a month
Serpex$0.80 Starter, $0.65 Standard, $0.50 Scale$8.00, $6.50 or $5.00$80, $65 or $50
Serpex with page content of the top 5 resultsat most 3 credits a search$15 to $24$150 to $240
Google Custom Search (closing)$5.00$50 ($35 after the free 100 a day)$500 ($485 after the free 100 a day)
Serper$1.00 to $0.30, by pack$10 (a $50 pack of 50,000 lasts 5 months)$75 (a $375 pack of 500,000 lasts 5 months)
DataForSEO (Google Organic)$0.60 queued, $2.00 live$6 queued, $20 live$60 queued, $200 live
Bright Data SERP API$1.50 pay as you go$15$150
Parallel$1.00 to $5.00$10 to $50$100 to $500
Brave Search API$5.00$50$500
Linkup$5.00$50$500
Perplexity Search API$5.00 ($1.00 Fast Search)$50 ($10 Fast)$500 ($100 Fast)
You.com Web Search API$5.00$50$500
Exa$7 Fast/Auto ($4 Instant)$70 ($40 Instant)$700 ($400 Instant)
Tavily$8.00 pay as you go; $5.00 on Growth ($500/month)$80$800, or $500 on Growth

How the numbers are worked out:

  • Custom Search: 100 free a day is about 3,000 a month (100 × 30). At 10,000 a month, 7,000 are paid: 7,000 × $5 ÷ 1,000 = $35. At 100,000, 97,000 are paid: $485.
  • Serper: credits are valid for 6 months, so the monthly figure is the pack price spread over the months it lasts: $50 ÷ 5 = $10 and $375 ÷ 5 = $75.
  • Serpex: the rate depends on how much you top up in total: Starter for top-ups of $5 to $49, Standard for $50 to $499, Scale for $500 to $1,999. At 100,000 a month you'll pass $50 in the first month, so $65 is the realistic figure unless you top up $500 or more. With page content: 100,000 × 3 credits = 300,000 credits, × $0.50 or $0.80 ÷ 1,000 = $150 or $240.
  • SerpApi isn't in the table: we checked only its Starter plan ($25 a month for 1,000 searches) and its largest plan (about $1.96 per 1,000), and neither matches these volumes.

What does the migration look like in code?

The old request is a GET with your key, your cx and the query in the URL:

python
import os
import requests
# Before: Google Custom Search JSON API
resp = requests.get(
"https://www.googleapis.com/customsearch/v1",
params={"key": os.environ["GOOGLE_API_KEY"], "cx": os.environ["GOOGLE_CX"], "q": "acme hotel"},
timeout=30,
)

The Serpex request sends the key as a header and keeps q:

python
# After: Serpex Search API
resp = requests.post(
"https://api.serpex.dev/api/search",
headers={"Authorization": f"Bearer {os.environ['SERPEX_API_KEY']}"},
json={"q": "acme hotel"},
timeout=60,
)
resp.raise_for_status()
for r in resp.json()["results"]:
print(r["position"], r["title"], r["url"], r["snippet"])

The steps:

  1. Drop key and cx from the request.
  2. Send your Serpex key as Authorization: Bearer <key>.
  3. Keep q. Search operators such as site: go straight into the query, so a Custom Search engine limited to one site becomes q="acme hotel site:example.com".
  4. POST JSON to https://api.serpex.dev/api/search. GET with query parameters also works.
  5. Read results[]: each result has title, url, snippet and position. Update your parsing code to these names.
  6. Optionally set include_content: true to get the page content of the top 5 or 10 results as Markdown in the same response. It's best-effort: content arrives for roughly 70% of requested results, and blocked or robots.txt-disallowed pages return content_error instead. It costs at most 3 credits for 5 pages and 6 for 10, and pages that don't arrive aren't charged.

Errors and timeouts are never charged, and an empty result that couldn't be confirmed as genuinely empty is free. The full checklist, with the response format, is on our Google Custom Search API alternative page.

Which replacement should you pick?

  • You feed web results to an app, an agent or an LLM: a search API built for that. Serpex costs $0.50 to $0.80 per 1,000 and can return page content in the same call. Brave ($5.00) returns results plus LLM context. Tavily ($8.00 pay as you go, $5.00 on Growth) has answer synthesis and mature LangChain and LlamaIndex integrations. Exa ($4 to $7) bills page contents separately at $1 per 1,000 pages.
  • You need Google's own results page (rank tracking, SEO tools): a SERP API. Serper returns the Google results page as JSON from $1.00 down to $0.30 per 1,000, prepaid with no subscription, with country and language targeting. DataForSEO costs $0.60 per 1,000 if you can wait in a queue and $2.00 live. SerpApi covers the widest range of engines and verticals and is the reference choice for rank tracking, at a higher price per search.
  • You search up to 50 of your own domains: Vertex AI Search, on Google's own description.

Where Serpex isn't the best fit: if the product is a faithful copy of Google's results page, use a SERP API. On price per plain search, Serper's largest pack ($0.30) is below our lowest rate, and DataForSEO's queue ($0.60) is below our Standard and Starter rates. The wider comparison is in Search API Pricing in 2026 and on our alternatives page.

What's the migration checklist, with dates?

  • By 31 October 2026: list every service that calls googleapis.com/customsearch/v1, its daily query volume, and whether its cx limits search to particular sites.
  • By 15 November 2026: decide which kind of replacement you need (results page, up to 50 domains, or open web) and price it at your volume with the table above.
  • By 1 December 2026: run the new API alongside Custom Search on real queries and check the results your users rely on.
  • By 15 December 2026: move production traffic, and keep Custom Search as a fallback while it still answers.
  • Before 1 January 2027: remove the old key and cx from code and secrets. That's Google's deadline for existing customers.

FAQ

When does the Google Custom Search JSON API shut down?

Google says existing customers "have until January 1, 2027 to transition to an alternative solution". New customers already can't sign up.

Can I still get a Custom Search JSON API key in 2026?

No. Google says the API "is closed to new customers".

Is Vertex AI Search the official replacement?

Google calls it "a favorable alternative for searching up to 50 domains." For whole-web search, use an open-web search API.

How much does Custom Search cost until it closes?

"100 search queries per day for free", then "$5 per 1000 queries, up to 10k queries per day." That's about $35 a month at 10,000 searches and $485 at 100,000.

What changes in my code when I move to Serpex?

Drop key and cx, send Authorization: Bearer <key>, keep q, POST JSON to https://api.serpex.dev/api/search, and read results[] (title, url, snippet, position).

Try Serpex

Sign up for 200 free credits, no card required, and run your Custom Search queries through the new endpoint well before January 1, 2027. The docs have the full request and response format, and pricing lists the rates by top-up, with credits that never expire.

Serpex Blog

Related Articles

More content you might be interested in

Oct 24, 2026 · 8 min read

Vibe Coding Web Search: Add a Search API With Cursor, Claude Code or Lovable

Add web search to an app you build with AI, no coding needed: get a key, give your agent the docs, keep the key server-side. Cursor, Claude Code, Lovable.

Technology
Read More
Oct 24, 2026 · 14 min read

Search APIs for Enterprise AI (2026): Security, Rate Limits and Cost at Scale

Questions to ask before signing a search API contract for enterprise AI: security, retention, SLAs, rate limits, billing, and cost at 1M-10M searches.

Technology
Read More
Oct 23, 2026 · 15 min read

PHP2Shell vs the Knowledge Cutoff: CVE-2026-109618, Tested Oct 2026

Only 3 of 36 top-3 search results for PHP2Shell came from the PHP project. We built a 91-line agent that checks CVE-2026-109618 against primary sources.

Technology
Read More
Oct 19, 2026 · 19 min read

Which Search API Is Cheapest at 100k, 1M and 10M Searches a Month? (Prices Checked October 2026)

Search API costs at 100k, 1M and 10M searches a month, checked Oct 23, 2026. Lowest list: $0.20/1k. Serpex: $0.50-$0.80, from $0.20 at 10M+.

Technology
Read More
Oct 19, 2026 · 8 min read

How to Add Web Search to an AI Workflow or RAG Pipeline (Python, 2026)

How to add web search to an AI workflow or RAG pipeline in Python (2026): one call returns pages as Markdown to chunk, rank and cite, with real monthly costs.

Technology
Read More
Oct 19, 2026 · 8 min read

Tavily Pricing in 2026: What 10k, 100k and 1M Searches Cost

Tavily pricing in 2026: $8 per 1,000 credits pay as you go, $5 on Growth. Monthly cost at 10k, 100k and 1M searches, advanced depth, Extract and alternatives.

Technology
Read More
Oct 19, 2026 · 8 min read

Serper vs Tavily (2026): Pricing, Output and Which to Use

Serper vs Tavily in 2026: Serper costs $0.30 to $1.00 per 1,000 searches, Tavily $5 to $8. Free tiers, output, page content, LangChain support and which to use.

Technology
Read More
Oct 3, 2026 · 7 min read

Web Search in n8n: HTTP Request, AI Agent or Community Node

Add web search to an n8n workflow with the HTTP Request node, use it as an AI Agent tool with $fromAI(), or install the n8n-nodes-serpex community node.

Technology
Read More