Skip to the page

Custom Search API key in 2026

A SpecStream key answers the same call.

A new project cannot get a Custom Search JSON API key today. Google's page says the API is closed to new customers, and existing customers have until January 1, 2027 before the service ends.

Create a SpecStream key in a minute and send Google's call to https://api.specstream.ai/customsearch/v1?key=<your key>&q=.... You need no search engine ID: cx is accepted and not used, and the reply is Google's JSON.

It is the most accurate web search API in the world: 97.9 F-score on all 1,000 SimpleQA Verified questions, on the benchmarks page. $5 per 1,000 searches, and new accounts get $10 of credit, no card.

New accounts get $10 of credit, no card. It covers 2,000 searches.

A SpecStream key next to the Google keys a new project can look for

SpecStreamGoogle Custom Search JSON APIVertex AI Search (Agent Search)
Can a new project get a keyYes. Create it under Agents & API in the workspace. A new account starts with $10 of credit, no cardNo. The API is closed to new customers, and existing customers have until January 1, 2027Yes, in a Google Cloud project, with a free trial of 10,000 queries per account a month
What the key needs to searchNothing else. No search engine ID: cx is accepted and not usedA configured Programmable Search Engine, and its ID in cx on every callAn engine and a serving config in your Google Cloud project, named in the address of each call
The callGET https://api.specstream.ai/customsearch/v1?key=...&q=...&num=&start=, Google's own call. The key also works in X-Goog-Api-Key or as a Bearer tokenGET https://www.googleapis.com/customsearch/v1 with key, cx and qPOST https://discoveryengine.googleapis.com/v1/{servingConfig=...}:search, a different call and a different reply
What it searchesThe whole live web, read at the moment of the call. siteSearch keeps a search to one siteThe Programmable Search Engine you configuredUp to 50 domains. For full web search Google asks you to contact it
Price per 1,000 searches$5 for a search of up to 10 results ($0.005 a call)$5 per 1,000 queries after 100 free a day, up to 10,000 a day, for existing customers$1.50 per 1,000 queries on Standard, $4.00 on Enterprise
Free to start$10 of credit, no card. That is 2,000 searches100 queries a day, for existing customers10,000 queries per account a month on the free trial
How long it runsThe Google route has answered on production since November 9, 2026, on the same key as the rest of SpecStreamGoogle discontinues the service on January 1, 2027Google's January 20, 2026 post names it as its offer for enterprise-grade needs

Why a SpecStream key is the Custom Search key to get now

Other keys a new project can get for web search

How SpecStream scores

The same numbers as the benchmarks page, from the official tasks and scorers.

How to get a key and make the first call

1. Sign up at specstream.ai and create a key under Agents & API in the workspace. A new account gets $10 of credit, no card, which covers 2,000 searches. Over the API, a key that searches is made with this body:

curl -X POST "https://api.specstream.ai/v1/account/keys" \
  -H "Authorization: Bearer $SPECSTREAM_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "production", "scopes": ["account:read", "finds:spend"], "spend_cap_cents": 500000, "zero_retention": true}'

2. Send Google's call to SpecStream's address, with the key in key=.

import requests

reply = requests.get(
    "https://api.specstream.ai/customsearch/v1",
    params={"key": SPECSTREAM_KEY, "q": "open source vector databases", "num": 10},
).json()

for item in reply["items"]:
    print(item["title"], item["link"], item["snippet"])
const url = new URL("https://api.specstream.ai/customsearch/v1");
url.search = new URLSearchParams({ key: SPECSTREAM_KEY, q: "open source vector databases", num: "10" });

const reply = await fetch(url).then((r) => r.json());
for (const item of reply.items) console.log(item.title, item.link);

3. Page through results with start, as on Google: queries.nextPage gives the next one. Each call is one search on your key, inside the spending limit the key carries.

Frequently asked questions

Something we didn't answer? Talk to a human

How do I get a Google Custom Search API key?
A new project cannot get one: Google closed the Custom Search JSON API to new customers, and the service ends on January 1, 2027. A SpecStream key takes a minute to create and answers the same GET /customsearch/v1 call at https://api.specstream.ai, in Google's JSON.
Do I need a search engine ID (cx) with the key?
No. On SpecStream cx is accepted and not used, so you can leave it out or keep sending it. The search covers the whole live web, and siteSearch keeps it to one site.
Is the Google Custom Search API key free?
Google gives 100 queries a day free and charges $5 per 1,000 after that, up to 10,000 a day, for existing customers only. A SpecStream account starts with $10 of credit and no card, which covers 2,000 searches, then $5 per 1,000.
Is the Custom Search JSON API closed to new customers?
Yes. Google's overview page says it is closed to new customers, and existing customers have until January 1, 2027 to move to another service.
What is the Programmable Search Engine API key used for?
It authorized calls to the Custom Search JSON API, together with the cx of a Programmable Search Engine you configured. A SpecStream key authorizes the same call on its own, with the key in key=, X-Goog-Api-Key or a Bearer token.
Can I use the key from an AI agent or MCP client?
Yes. The same key works on the MCP server at https://api.specstream.ai/mcp, where the search_web tool runs a search at $5 per 1,000, and on GET /v1/web-search, which returns up to 100 results with the answer and its page.

Sources

SpecStream wrote this page. Each Google and rival figure comes from that company's own page.

  1. Google Custom Search JSON API overviewdevelopers.google.com/custom-search/v1/overview, read Nov 10, 2026
  2. Programmable Search Engine blog, updates to our web search productsprogrammablesearchengine.googleblog.com/2026/01/updates-to-our-web-search-products.html, read Nov 10, 2026
  3. Agent Search pricing, Google Cloudcloud.google.com/generative-ai-app-builder/pricing, read Nov 10, 2026
  4. Agent Search REST reference, servingConfigs.searchcloud.google.com/generative-ai-app-builder/docs/reference/rest/v1/projects.locations.collections.engines.servingConfigs/search, read Nov 10, 2026
  5. Grounding with Google Search, Gemini APIai.google.dev/gemini-api/docs/google-search, read Nov 10, 2026
  6. Brave Search APIbrave.com/search/api/, read Nov 10, 2026
  7. Serperserper.dev/, read Nov 10, 2026
  8. SpecStream benchmarksspecstream.ai/benchmarks, read Nov 10, 2026
  9. SpecStream for agentsspecstream.ai/agents.md, read Nov 10, 2026