Google Custom Search API Node.js migration
Keep your TypeScript code intact.
Google shuts down the Custom Search JSON API on January 1, 2027 and already blocks new Google Cloud projects with HTTP 403. Node.js and TypeScript applications calling googleapis.com/customsearch/v1 switch to SpecStream by changing the hostname and API key.
SpecStream answers GET /customsearch/v1 with Google's exact JSON shape (items, queries, searchInformation) at $1 per 1,000 searches instead of $5, with no 10,000 queries per day ceiling. New accounts start with $2 free credit and no card.
For AI agent pipelines, SpecStream also ships an Extract API at $0.80 per 1,000 pages and cuts combined API plus LLM token spend by 13.0x versus Exa and 17.1x versus Tavily on 300 live calls. Model your workload in the token tax calculator.
No card required. 2,000 live searches included.
At volume, search packs start at $49 for 80,000 fast searches and never expire. Ready lists of companies and records start at $15 in the dataset finder.
SpecStream vs Google Custom Search JSON API (Node.js) side by side
| SpecStream | Google Custom Search JSON API (Node.js) | |
|---|---|---|
| What it is | The live web data engine: Search API, Extract API, Deep Search, MCP server, and 922M+ live public entity pages | Legacy Google search JSON API ending January 1, 2027 |
| Search pricing | $1 per 1,000 searches (up to 10 results), flat pay as you go | $5 per 1,000 queries (closed to new customers, end of life January 1, 2027) |
| Page extraction | $0.80 per 1,000 pages via Extract API (0.914 F1 on WCXB) | Separate tier, higher credit multiplier, or not included |
| Free signup credit | $2 free credit on sign up, no card required (2,000 searches) | Varies; often requires card or monthly plan |
| AI agent token tax | 13.0x lower total cost vs Exa and 17.1x lower vs Tavily across 300 live calls | Higher API fee or verbose payloads increase LLM input token spend |
| Benchmarks | 99 on SimpleQA Verified; 64.0 item F1 and 43.4 row F1 on all 200 WideSearch tasks | No published WideSearch and SimpleQA Verified scores |
| Limits and setup | No 10,000/day cap, no proxy zones, drop in /customsearch/v1 and MCP server | 10,000 queries per day maximum; new Cloud projects fail with 403 |
Why engineering teams choose SpecStream over Google Custom Search JSON API (Node.js)
Flat $1 per 1,000 search and $0.80 per 1,000 extract
Every Search API call costs $0.001 and every Extract API page costs $0.0008. There are no proxy zones, no 10x credit multipliers, and no monthly seat minimums. Check every rate on the pricing page.
13.0x to 17.1x lower total AI agent cost
In our 300 call live agent benchmark, SpecStream cut combined API and LLM input token cost by 13.0x compared with Exa and 17.1x compared with Tavily. Test your own call volume and model in the token tax calculator.
Measured accuracy on public benchmarks
SpecStream scores 99 on SimpleQA Verified, 64.0 item F1 and 43.4 row F1 on all 200 official WideSearch tasks, and 0.914 F1 on WCXB extraction. Every method and score is published on benchmarks.
One key for REST, Google CSE drop in, MCP, and x402
Use the same SpecStream key for GET /v1/web-search, GET /customsearch/v1, POST /v1/extract, Deep Search, and npx -y @specstream/mcp-server. Autonomous agents without an account can also pay per call in USDC over x402.
Other options teams compare
Brave Search API
Independent web index with higher per 1,000 pricing on paid tiers and no built in structured Deep Search. See Brave Search API pricing.
Tavily
Popular in LangChain tutorials, but 17.1x more expensive in combined API plus LLM token cost on our 300 call live benchmark. See Tavily pricing.
Serper
Low cost Google SERP wrapper without a clean Extract API, Deep Search, or MCP server. See Serper pricing.
How SpecStream scores
The same numbers as the benchmarks page, from the official tasks and scorers.
How to switch from Google Custom Search JSON API (Node.js) in two minutes
Create a free SpecStream account ($2 credit, no card) and copy your API key from Agents & API in the workspace.
const params = new URLSearchParams({
key: process.env.SPECSTREAM_API_KEY,
q: 'sec form d filings 2026',
num: '10',
});
const res = await fetch(`https://api.specstream.ai/customsearch/v1?${params}`);
const { items } = await res.json();
console.log(items.map((item) => ({ title: item.title, link: item.link })));Full endpoint documentation, SDKs, and MCP configuration live in the SpecStream docs.
Frequently asked questions
Something we didn't answer? Talk to a human
How much does SpecStream Search API cost?
Do I need a credit card to test SpecStream?
Does SpecStream support Google Custom Search JSON API format?
How does SpecStream reduce AI agent token costs?
Can I use SpecStream from an MCP client like Claude or Cursor?
npx -y @specstream/mcp-server with your API key to give Claude, Cursor, Windsurf, or custom agents live web search and page extraction.Sources
Pricing and documentation verified on December 6, 2026.
- Google Custom Search JSON API documentationdevelopers.google.com/custom-search/v1/overview, read 2026-12-06
- SpecStream pricingspecstream.ai/pricing, read 2026-12-06
- SpecStream benchmarksspecstream.ai/benchmarks, read 2026-12-06




