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

# Google Site Restricted JSON API replacement: 1-line swap ($1/1K) | SpecStream

Checked on Dec 2, 2026 against the live SpecStream backend and vendor docs.

# Google Site Restricted JSON API replacement

**Change one host, keep your code.**

Google stopped serving the Custom Search Site Restricted JSON API (`/customsearch/v1/siterestrict`) on January 8, 2025 and retires the standard Custom Search JSON API on January 1, 2027. SpecStream answers `GET https://api.specstream.ai/customsearch/v1/siterestrict` in Google's exact `customsearch#search` JSON shape at $1 per 1,000 fast searches (937 ms median over 6,548 live calls), 80% less than Google's $5 per 1,000 and with no daily limit, alongside $5 per 1,000 default Search API and $0.80 per 1,000 Extract API pages.

SpecStream is state of the art on the live web, setting a new bar in research, extraction, and search. It ranks first on WideSearch (60.93 low-cost, ahead of every search API; 64.0 single-trial item F1 and 57.32% Avg@4 item F1 across all 200 official tasks) and scores 99 on SimpleQA Verified, alongside AA-Omniscience 82.67%, SurfBench v2 84.6, Seal-0 66.7%, Seal-Hard 71.26%, FinSearchComp Global T3 60.7%, FRAMES 90.78%, TRACE Extract v6 88.51%, WCXB 0.914, Scrapinghub 0.971, and scrapingbench 40 of 40 ([benchmarks](https://specstream.ai/benchmarks.md)).

Change only the host (`https://www.googleapis.com` to `https://api.specstream.ai`) and put your SpecStream key in `key=` (or `X-Goog-Api-Key`). `siteSearch`, `siteSearchFilter`, `exactTerms`, `orTerms`, `dateRestrict`, `num`, and `start` work directly, and `cx` is accepted without errors.

Want to generate the exact 1-line diff and compare monthly costs? Open the [Drop-in API converter](https://specstream.ai/tools/drop-in-api-converter.md) or read the [Web Search API reference](https://specstream.ai/docs/web-search.md) for native parameters including `boost_domains`, `include_domains`, and `exclude_domains`.

[Get an API key](https://specstream.ai/signup?src=alternatives-migrate-google-siterestrict&utm_source=alternatives&utm_campaign=migrate-google-siterestrict&returnTo=%2Fworkspace%2Fsearch%3Froute%3Dgoogle)[Start Growth plan ($199/mo)](https://specstream.ai/v1/billing/credit-plans/checkout?plan=growth)

New accounts get $2 of free credit, no card required: 2,000 fast searches or 2,500 extracted pages.

Monthly credit plans with higher RPM and invoice receipts: [Starter ($49/mo)](https://specstream.ai/v1/billing/credit-plans/checkout?plan=starter), [Growth ($199/mo)](https://specstream.ai/v1/billing/credit-plans/checkout?plan=growth), or [Scale ($499/mo)](https://specstream.ai/v1/billing/credit-plans/checkout?plan=scale). [Try the 1-line converter and savings calculator](https://specstream.ai/tools/drop-in-api-converter.md).

## SpecStream vs Google Site Restricted JSON API and Vertex Agent Search

|  | SpecStream | Google Custom Search Site Restricted JSON API |
| --- | --- | --- |
| Endpoint | `GET https://api.specstream.ai/customsearch/v1/siterestrict` (and `/customsearch/v1`) | `GET https://www.googleapis.com/customsearch/v1/siterestrict` (retired Jan 8, 2025) |
| Authentication | SpecStream API key in `key=`, `X-Goog-Api-Key`, or `Authorization: Bearer` (`cx` accepted and ignored) | Google API key plus a Programmable Search Engine `cx` restricted to 10 or fewer sites |
| Site scoping | `siteSearch` and `siteSearchFilter` (`i` or `e`) on this route; up to 20 domains, subdomains, or TLDs with `include_domains` or `boost_domains` on `/v1/web-search` | Up to 10 domains configured inside Programmable Search Engine control panel |
| Response shape | Exact `customsearch#search` JSON: `items[]` (`title`, `link`, `snippet`, `displayLink`), `searchInformation`, `queries.nextPage` | Same `customsearch#search` JSON shape |
| Price per 1,000 searches | $1 per 1,000 fast searches (up to 10 results, 937 ms median), no daily cap; $5 per 1,000 default Search API; $0.80 per 1,000 Extract API pages | Was $5 per 1,000; Google Cloud Agent Search replacement is $1.50 to $4.00 per 1,000 plus storage and requires a full POST rewrite |
| Free start | $2 of credit on sign-up, no card required (2,000 fast searches) | Requires Google Cloud billing and Discovery Engine setup |

## Why swap to SpecStream instead of rewriting for Vertex Agent Search

### Keep GET /customsearch/v1/siterestrict with zero SDK rewrite

Moving to Google Cloud's Discovery Engine (`servingConfigs:search`) requires creating a GCP project, indexing sites, switching to `POST` with OAuth/IAM auth, and rewriting every parser. On SpecStream, changing one host keeps your existing `GET /customsearch/v1/siterestrict` requests and `items[]` parsing live immediately.

### Need multi-site allowlists or domain boosting?

When you previously configured up to 10 sites inside a Google `cx` engine, you can pass `siteSearch` for a single site on `/customsearch/v1/siterestrict` or move to `POST /v1/web-search` with `include_domains` (up to 20 domains, subdomains, or TLDs) or `boost_domains` (prioritize your sites first, then the rest of the web) on the exact same API key ([Web Search API reference](https://specstream.ai/docs/web-search.md)).

## More Google Custom Search migration resources

### Google Custom Search 15-stack migration hub

Full before-and-after code for Python, TypeScript, Go, Java, PHP, Ruby, C#, LangChain, n8n, and Cloudflare Workers: [Google CSE migration hub](https://specstream.ai/migrate/google-cse.md) and [Google CSE migrator tool](https://specstream.ai/tools/google-cse-migrator.md).

### Google Custom Search JSON API guide

Parameter-by-parameter guide for `/customsearch/v1`: [Google Custom Search migration guide](https://specstream.ai/migrate/google-custom-search.md).

## How SpecStream scores

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

ResultsWideSearchCostSimpleQA Verified

|  | SpecStream | ![](https://specstream.ai/images/benchmarks/parallel.svg)Parallel | ![](https://specstream.ai/images/benchmarks/exa.svg)Exa | ![](https://specstream.ai/images/benchmarks/tavily.svg)Tavily | ![](https://specstream.ai/images/benchmarks/perplexity.svg)Perplexity |
| --- | --- | --- | --- | --- | --- |
| **Web research**WideSearch, GPT-5.6 Luna | 60.9 | 45.5 | 53.0 | 47.9 | 47.0 |
| **Factual accuracy**SimpleQA Verified, GPT-5.6 Luna | 96 | 94 | 91 | 94 | 94 |
| **Factual accuracy**SimpleQA Verified, GPT-5.6 Sol | 99 | 97 | 91 | 92 | 95 |

## 1-line swap from Google Site Restricted JSON API to SpecStream

1\. Create an API key in the workspace. New accounts start with $2 of free credit, no card required (2,000 fast searches).

2\. Swap the host in cURL (`https://www.googleapis.com` to `https://api.specstream.ai`):

```
# Before (Google Custom Search Site Restricted JSON API)
curl -G https://www.googleapis.com/customsearch/v1/siterestrict \
  -d "key=$GOOGLE_API_KEY" -d "cx=$GOOGLE_CX" \
  -d "siteSearch=docs.python.org" --data-urlencode "q=asyncio TaskGroup" -d num=10

# After (SpecStream: $1 per 1,000 fast searches, no daily cap)
curl -G https://api.specstream.ai/customsearch/v1/siterestrict \
  -d "key=$SPECSTREAM_API_KEY" -d "cx=$GOOGLE_CX" \
  -d "siteSearch=docs.python.org" --data-urlencode "q=asyncio TaskGroup" -d num=10
```

3\. Swap one line in Python:

```
import os, requests

# Before: URL = "https://www.googleapis.com/customsearch/v1/siterestrict"
URL = "https://api.specstream.ai/customsearch/v1/siterestrict"

res = requests.get(
    URL,
    params={
        "key": os.environ["SPECSTREAM_API_KEY"],
        "q": "asyncio TaskGroup",
        "siteSearch": "docs.python.org",
        "num": 10,
    },
    timeout=30,
).json()
for item in res.get("items", []):
    print(item["title"], item["link"])
```

4\. Swap one line in Node.js / TypeScript:

```
// Before: const URL = "https://www.googleapis.com/customsearch/v1/siterestrict"
const URL = "https://api.specstream.ai/customsearch/v1/siterestrict"

const qs = new URLSearchParams({
  key: process.env.SPECSTREAM_API_KEY!,
  q: "asyncio TaskGroup",
  siteSearch: "docs.python.org",
  num: "10",
})
const data = await fetch(`${URL}?${qs}`).then((r) => r.json())
console.log(data.items)
```

5\. Test live parity JSON in the [Google CSE migrator](https://specstream.ai/tools/google-cse-migrator.md) or compare costs in the [Drop-in API converter](https://specstream.ai/tools/drop-in-api-converter.md).

[Get an API key](https://specstream.ai/signup?src=alternatives-migrate-google-siterestrict&utm_source=alternatives&utm_campaign=migrate-google-siterestrict&returnTo=%2Fworkspace%2Fsearch%3Froute%3Dgoogle)[Start Growth plan ($199/mo)](https://specstream.ai/v1/billing/credit-plans/checkout?plan=growth)[Open 1-line converter](https://specstream.ai/tools/drop-in-api-converter.md)

## Frequently asked questions

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

Does SpecStream answer the exact /customsearch/v1/siterestrict path?

Yes. GET https://api.specstream.ai/customsearch/v1/siterestrict answers live in Google's customsearch#search JSON shape, alongside GET /customsearch/v1.

How do I replace a multi-site cx allowlist from Google Programmable Search Engine?

For one site, pass siteSearch=example.com on /customsearch/v1/siterestrict. For up to 20 sites, subdomains, or TLDs, pass include\_domains (or boost\_domains to rank them first) to GET or POST /v1/web-search on the same API key.

How much does /customsearch/v1/siterestrict cost on SpecStream?

$1 per 1,000 fast searches for up to 10 results (80% less than Google's $5 per 1,000), with no 10,000/day limit and $2 of free credit on sign-up with no card required.

### Sources

Google retirement dates and pricing come from developers.google.com and cloud.google.com read Nov 10 to 11, 2026.

1.  [Google Custom Search Site Restricted JSON API](https://developers.google.com/custom-search/v1/site_restricted_api)developers.google.com/custom-search/v1/site\_restricted\_api, read Nov 10, 2026
2.  [Google Custom Search JSON API overview](https://developers.google.com/custom-search/v1/overview)developers.google.com/custom-search/v1/overview, read Nov 11, 2026
3.  [Google Cloud Agent Search pricing](https://cloud.google.com/generative-ai-app-builder/pricing)cloud.google.com/generative-ai-app-builder/pricing, read Nov 10, 2026
4.  [SpecStream benchmarks](https://specstream.ai/benchmarks)specstream.ai/benchmarks, read Dec 2, 2026
5.  [SpecStream pricing](https://specstream.ai/pricing)specstream.ai/pricing, read Dec 2, 2026
