> SpecStream is the live web data engine for teams and agents. This is the Markdown copy of https://specstream.ai/migrate/google-cse. Every page, with what SpecStream does and costs: https://specstream.ai/llms.txt

# 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.

[Get an API key](https://specstream.ai/signup?src=migrate-google-cse&returnTo=%2Fworkspace%2Fsearch)[Test your query in the migrator](https://specstream.ai/tools/google-cse-migrator.md)

A new account gets $2 of credit, no card: 2,000 free test searches. [Start the Starter plan at $49 a month](https://specstream.ai/v1/billing/credit-plans/checkout?plan=starter) for 49,000 searches.

The whole change: one base URLCopy

```
- 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 keyStep 1Sign up with no card. A new account gets $2 of credit, which covers 2,000 test searches.

-   Change the base URLStep 2Replace `https://www.googleapis.com/customsearch/v1` with `https://api.specstream.ai/customsearch/v1` and put the SpecStream key in `key`. `cx` is accepted and not used.

-   Run your own queriesStep 3The reply keeps the JSON Google sends: `items` with `title`, `link` and `snippet`. Your parser stays as it is. Compare both replies in the Google CSE migrator.

-   Go to productionStep 4Pay 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.

SpecStream

Google Custom Search JSON API

**50,000 searches a month**

$50

$250

**100,000 searches a month**

$100

$500

**300,000 searches a month**

$300

$1,500

**1,000,000 searches a month**

$1,000

Not offered: over the limit of 10,000 queries 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.

Before: Terminal, Google Custom SearchCopy

```
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
```

After: Terminal, SpecStreamCopy

```
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.](https://specstream.ai/migrate/google-cse/python.md)
-   [TypeScriptA typed search function on fetch, with the result type included.](https://specstream.ai/migrate/google-cse/typescript.md)
-   [Node.jsBuilt in fetch on Node.js 18 and later, no package to install.](https://specstream.ai/migrate/google-cse/nodejs.md)
-   [Gonet/http and encoding/json from the standard library.](https://specstream.ai/migrate/google-cse/go.md)
-   [PHPPlain PHP with file\_get\_contents, no Composer package.](https://specstream.ai/migrate/google-cse/php.md)
-   [Rubynet/http and json from the standard library.](https://specstream.ai/migrate/google-cse/ruby.md)
-   [Javajava.net.http.HttpClient on Java 11 and later, with Jackson.](https://specstream.ai/migrate/google-cse/java.md)
-   [C#HttpClient and System.Text.Json on .NET 6 and later.](https://specstream.ai/migrate/google-cse/csharp.md)
-   [curlOne command for shell scripts, cron jobs and quick checks.](https://specstream.ai/migrate/google-cse/curl.md)

## By agent framework

The search tool your agent calls, moved without touching the agent.

-   [LangChainA web search tool in place of GoogleSearchAPIWrapper.](https://specstream.ai/migrate/google-cse/langchain.md)
-   [LlamaIndexA FunctionTool in place of GoogleSearchToolSpec.](https://specstream.ai/migrate/google-cse/llamaindex.md)
-   [Vercel AI SDKA tool() definition for generateText and streamText.](https://specstream.ai/migrate/google-cse/vercel-ai-sdk.md)
-   [OpenAI Agents SDKA function\_tool for Agent and Runner in Python.](https://specstream.ai/migrate/google-cse/openai-agents.md)

## By platform

The node or the Worker that makes the call today.

-   [n8nOne HTTP Request node, pasted onto the canvas.](https://specstream.ai/migrate/google-cse/n8n.md)
-   [Cloudflare WorkersA Worker that searches from the edge with a secret key.](https://specstream.ai/migrate/google-cse/cloudflare-workers.md)

## $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.

SpecStream

Google Custom Search JSON API

**Price per 1,000 searches**

$1 on the fast tier, up to 10 results a search

$5, after 100 free queries a day

**Price per call**

$0.001

$0.005

**Daily limit**

None

10,000 queries a day

**Status**

Open to new accounts

Closed to new customers. Ends January 1, 2027

**Results per search**

Up to 100 with `num`

Up to 10 with `num`

**What a search returns**

Title, URL, site and snippet for each result. `passages=true` adds the best passages of each page, and the Extract API returns any page as Markdown at $0.80 per 1,000 pages

Title, link and snippet for each result

**What it searches**

The whole live web, with no engine to configure

The sites of a Programmable Search Engine you set up, named by `cx`

**Accuracy**

#1 across 15 public web search and extraction benchmarks

No score on these boards

**Pay per call with no account**

$0.002 a search in USDC on Base, with x402

Not offered

## 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.](https://specstream.ai/tools/google-cse-migrator.md)
-   [Start with $2 of creditNo card. It covers 2,000 fast searches, and the key works on the API and over MCP.](https://specstream.ai/signup?src=migrate-google-cse&returnTo=%2Fworkspace%2Fsearch)
-   [$1,000 prepay packPay once by card and get $1,200 of credit. It does not expire.](https://buy.stripe.com/7sY3cn57l0jxedO9EmbAs0c)
-   [$5,000 prepay packFor production volume. Pay once by card and search from the same balance.](https://buy.stripe.com/aFadR12Zd1nB4De8AibAs0b)

## More on the shutdown

-   [The one line switchThe Google request as it is, sent to SpecStream, with every parameter that carries over.](https://specstream.ai/migrate/google-custom-search.md)
-   [Guides for open source appsLibreChat, Open WebUI, LangChain and other apps that ship a Google search setting.](https://specstream.ai/google-pse.md)
-   [How much code still calls itGitHub counts by language and by project, read on November 20, 2026.](https://specstream.ai/studies/google-custom-search-shutdown-2026.md)

## Questions

Something we didn't answer? [Talk to a human](https://specstream.ai/talk-to-a-human.md)

When does the Google Custom Search JSON API shut down?

Google's documentation says existing customers have until January 1, 2027 to move to another solution. The API is already closed to new customers.

What does SpecStream cost against Google Custom Search?

Google charges $5 per 1,000 queries after 100 free queries a day and stops at 10,000 queries a day. SpecStream costs $1 per 1,000 searches of up to 10 results on the fast tier, 80% lower, with no daily limit. A new account gets $2 of credit with no card.

Do I need a Programmable Search Engine ID?

No. SpecStream searches the whole live web, so there is no engine to configure. On `/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?

On `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?

SpecStream is #1 across 15 public web search and extraction benchmarks from one frozen build, with 99 on SimpleQA Verified and first place on WideSearch. Scores and method are on the benchmarks page.

Can an agent pay per call with no account?

Yes. With x402 an agent pays $0.002 for one fast search in USDC on Base, with no account and no key. With a key the same search costs $0.001.

What is the best alternative to the Google Custom Search JSON API?

SpecStream is the drop in alternative. It answers the same `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?

Yes. Send the request you send to `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?

Yes. Google charges $5 per 1,000 queries. SpecStream charges $1 per 1,000 searches, 80% lower. A new account gets $2 of credit with no card, which covers 2,000 test searches, and the Starter plan is $49 a month for 49,000 searches.

What happens to my code on January 1, 2027?

Google's documentation gives existing customers until January 1, 2027 to move to another solution, and the API already takes no new customers. A call your product still sends to Google after that date has no service behind it. Moving to SpecStream is one changed base URL.

## 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.

[Get an API key](https://specstream.ai/signup?src=migrate-google-cse&returnTo=%2Fworkspace%2Fsearch)[Talk to a human](https://specstream.ai/talk-to-a-human.md)
