Skip to the page

Custom Search API vs SerpApi

Keep your code and change one line.

Google ends the Custom Search JSON API on January 1, 2027, and it is already closed to new customers. SerpApi starts at $25 a month for 1,000 searches and answers in its own JSON, so the request and the parser both change.

SpecStream answers the Custom Search call itself. Change https://www.googleapis.com to https://api.specstream.ai, put a SpecStream key in key=, and the same path returns the same JSON, at $5 per 1,000 searches with no daily limit.

It is the most accurate web search API in the world: 97.9 F-score on all 1,000 SimpleQA Verified questions and 64.0 item F1 on all 200 WideSearch tasks, shown on the benchmarks page.

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

SpecStream, Google Custom Search JSON API and SerpApi side by side

SpecStreamGoogle Custom Search JSON APISerpApi
Your Custom Search codeRuns as it is. The base address https://api.specstream.ai in place of https://www.googleapis.com or https://customsearch.googleapis.com, and a SpecStream key in key=Closed to new customers. Existing customers have until January 1, 2027, when Google discontinues the serviceRewritten for GET https://serpapi.com/search?engine=google, with SerpApi's key and parameters
The replyGoogle's JSON: kind customsearch#search, items[] with title, link, snippet, displayLink, htmlTitle, htmlSnippet and formattedUrl, searchInformation.totalResults and queries.nextPage. Your parser reads it unchangedMetadata about the search and the engine, and an items array with the URL, title and text snippets of each result, in JSONsearch_metadata, organic_results with position, title, link and snippet, related_questions and serpapi_pagination. Your parser reads new field names
Price per 1,000 searches$5. A call of up to 10 results is one search at $0.005, on every plan$5 per 1,000 queries after 100 free queries a day, for existing customers$25 on Starter (1,000 searches for $25 a month), $15 on Developer (5,000 for $75), $10 on Production (15,000 for $150)
VolumeNo daily limit. The fast search takes up to 8,800 searches a minute on one account10,000 queries a dayGuaranteed successful searches an hour: 200 on Starter, 1,000 on Developer, 3,000 on Production
Results per callUp to 10 on the Custom Search route. Up to 100 on GET /v1/web-search with num, for $0.0591 to 10 results a call. Never more than 100 results for a queryA response with 100 results counts as 1 search
What answers the callThe whole live web, read at the moment of the call. 97.9 F-score on all 1,000 SimpleQA Verified questions (978 correct) and 64.0 item F1 on all 200 WideSearch tasksThe Programmable Search Engine you configured under cxGoogle, through engine=google. 97.6% on SimpleQA Verified in SerpApi's own post of Oct 16, 2026, on 937 of the 960 questions it kept
Failed callsA 429 with Retry-After charges nothing. With an Idempotency-Key, a retried call is charged onceIts terms say you may be charged for each successful request, and that Google can change fees with 90 days noticeCached, errored and failed searches are not counted
Free to start$10 of credit, no card. That is 2,000 searches, or up to 200 rows at 5¢100 queries a day, for existing customers250 searches a month on the Free plan
Every match as structured rowsDeep Search: a request in plain words returns every match on the live web as rows that meet each condition you wrote, at 5¢, 15¢ or $1 a row, plus 5¢ for an email and 15¢ for a phone. The most a run can cost is quoted before it starts, and nothing runs until you approve itStops at the first 100 results of a queryOne results page per call, with serpapi_pagination for the next one

Why Custom Search users move to SpecStream

Other options when Custom Search ends

How SpecStream scores

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

How to switch from Custom Search to SpecStream

1. Create a key under Agents & API in the workspace. A new account gets $10 of credit, no card, which covers 2,000 searches.

2. Set the base address to https://api.specstream.ai where your code has https://www.googleapis.com or https://customsearch.googleapis.com, and send the SpecStream key in key=.

import requests

BASE = "https://api.specstream.ai"  # was https://www.googleapis.com

reply = requests.get(
    f"{BASE}/customsearch/v1",
    params={"key": SPECSTREAM_KEY, "cx": CX, "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"); // was https://www.googleapis.com
url.searchParams.set("key", process.env.SPECSTREAM_API_KEY);
url.searchParams.set("q", "open source vector databases");
url.searchParams.set("num", "10");

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

3. Leave the rest. q, num and start work as before, and cx is accepted and not used. Each call is billed as one search at $0.005, and the key carries the spending limit you give it.

When your product needs the whole dataset in place of a results page, write the request in plain words. SpecStream reads it back as the conditions every row must meet and the facts to bring back, quotes the most it can cost, and delivers the rows after you approve.

Frequently asked questions

Something we didn't answer? Talk to a human

Google Custom Search API vs SerpApi: which is better?
For code written for Custom Search, SpecStream: it answers the same GET /customsearch/v1 call after January 1, 2027, at $5 per 1,000 searches. Custom Search ends on that date, and SerpApi needs a new request and a new parser at $25 per 1,000 on Starter.
Is Google's Custom Search JSON API being discontinued?
Yes, on January 1, 2027. Google's overview page says the API is closed to new customers, and that existing customers have until that date to move to another solution.
How much do Custom Search and SerpApi cost?
Custom Search costs $5 per 1,000 queries after 100 free a day, up to 10,000 a day, for existing customers. SerpApi costs $25 a month for 1,000 searches on Starter and $150 for 15,000 on Production. SpecStream costs $5 per 1,000 searches with no daily limit.
Does SerpApi return the same JSON as Custom Search?
No. SerpApi returns organic_results with position, title, link and snippet, where Custom Search returns items[]. SpecStream's route returns Custom Search's items[], searchInformation and queries, so your parser stays as it is.
Do I still need a search engine ID (cx)?
No. cx is accepted and not used, so a request that sends it works unchanged. SpecStream searches the whole live web, and siteSearch keeps a search to one site.
What does Google recommend in place of Custom Search?
Vertex AI Search, for up to 50 domains, at $1.50 per 1,000 queries on Search Standard. For full web search, Google's page asks you to contact it. SpecStream searches the whole live web today, on the Custom Search path.
What does it cost to move 10,000 searches a day?
$50 a day at $5 per 1,000 searches of up to 10 results. A call stopped by a 429 is not charged, and the first $10 of credit covers 2,000 searches. Every rate is on the pricing page.

Sources

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

  1. Google Custom Search JSON API overviewdevelopers.google.com/custom-search/v1/overview, read Nov 9, 2026
  2. Google Custom Search JSON API reference, cse.listdevelopers.google.com/custom-search/v1/reference/rest/v1/cse/list, read Nov 9, 2026
  3. Google Custom Search JSON API, using RESTdevelopers.google.com/custom-search/v1/using_rest, read Nov 9, 2026
  4. Google Custom Search terms of servicedevelopers.google.com/custom-search/terms, read Nov 9, 2026
  5. Agent Search (Vertex AI Search) pricingcloud.google.com/generative-ai-app-builder/pricing, read Nov 9, 2026
  6. Agent Search search methodcloud.google.com/generative-ai-app-builder/docs/reference/rest/v1/projects.locations.collections.engines.servingConfigs/search, read Nov 9, 2026
  7. Grounding with Google Search, Gemini APIai.google.dev/gemini-api/docs/google-search, read Nov 9, 2026
  8. SerpApi pricingserpapi.com/pricing, read Nov 9, 2026
  9. SerpApi Google Search APIserpapi.com/search-api, read Nov 9, 2026
  10. SerpApi on SimpleQA Verifiedserpapi.com/blog/serpapi-achieves-97-6-accuracy-on-simpleqa-verified/, read Nov 9, 2026
  11. Serper homepage and pricingserper.dev/, read Nov 9, 2026
  12. SpecStream pricingspecstream.ai/pricing, read Nov 9, 2026
  13. SpecStream for agentsspecstream.ai/agents.md, read Nov 9, 2026
  14. SpecStream benchmarksspecstream.ai/benchmarks, read Nov 9, 2026
  15. SpecStream dataspecstream.ai/data, read Nov 9, 2026
  16. SpecStream signalsspecstream.ai/signals, read Nov 9, 2026