<!-- twin of https://specstream.ai/google-pse/trpc-agent-go -->
# trpc-agent-go: Google search stops on January 1, 2027. The setting to change

Compared on Nov 10, 2026. The page: https://specstream.ai/google-pse/trpc-agent-go

trpc-agent-go's Google search tool calls Google's Custom Search JSON API through Google's Go client. Google closed that API to new customers and ends it on January 1, 2027.

The tool takes the address as an option. Pass `search.WithBaseURL("https://api.specstream.ai")` with a SpecStream key in `WithAPIKey`, and the same request goes out and the same JSON comes back, `pagemap` on every item included.

SpecStream scores 97.9 F-score on all 1,000 SimpleQA Verified questions and costs $5 per 1,000 searches, with no daily limit. A new account gets $10 of credit, no card.

[Get an API key](https://specstream.ai/signup?src=alternatives-google-pse-trpc-agent-go&utm_source=alternatives-md&utm_campaign=google-pse-trpc-agent-go&returnTo=%2Fworkspace%2Fsearch%3Froute%3Dgoogle) New accounts get $10 of credit, no card. It covers 2,000 searches.

## trpc-agent-go Google search and what replaces it, from each company's own pages on Nov 10, 2026

| | SpecStream | Google Custom Search | Vertex AI Search | Tavily |
|---|---|---|---|---|
| trpc-agent-go setting | `WithBaseURL("https://api.specstream.ai")` and a SpecStream key in `WithAPIKey` | No `WithBaseURL`: Google's default address, with a Google key and engine ID | Its own POST request at `discoveryengine.googleapis.com` | Not this tool's API; it needs new code and a new reply shape |
| Open to a new account | Yes. Create a key and start with $10 of credit, no card | No. Closed to new customers, and existing customers have until January 1, 2027 | Yes, with a free trial of 10,000 queries per account a month | Yes, with 1,000 free credits every month |
| Price per 1,000 searches | $5, with up to 10 results a search | $5 per 1,000 queries after 100 free queries a day, for existing customers only | $1.50 on Standard, $4.00 on Enterprise | $0.008 a credit on pay as you go. A basic search is 1 credit |
| Limit | No daily limit. Up to 8,800 searches a minute on one account | 10,000 queries a day | Full web search only on request: Google asks you to contact it | On a monthly plan, requests stop when the month's credits run out |
| How long it lasts | Credit you buy never expires | Until January 1, 2027, when Google ends the API | Pay as you go, for search queries and data storage | Credits reset on the first day of each month |
| What answers the search | The whole live web, read at the moment of the call, in Google's JSON. 97.9 F-score on all 1,000 SimpleQA Verified questions | The Programmable Search Engine you configured | Up to 50 domains you name | Tavily's search. Its own post reports 97.6% on SimpleQA |

## Why trpc-agent-go users point Google search at SpecStream

### The change is one option

The tool passes `WithBaseURL` to Google's Go client as its endpoint, and the client adds `/customsearch/v1`. So the option takes the host alone, `https://api.specstream.ai`, with no path.

```
import "trpc.group/trpc-go/trpc-agent-go/tool/google/search"

toolSet, err := search.NewToolSet(ctx,
    search.WithAPIKey(os.Getenv("SPECSTREAM_API_KEY")),
    search.WithEngineID("any"),
    search.WithBaseURL("https://api.specstream.ai"),
)
```

`NewToolSet` refuses to start without an API key or an engine ID, so pass any engine ID. SpecStream accepts `cx` and does not use it. This is the call the tool then sends, with `key`, `cx`, `q`, `num` (5 by default) and `hl` (`en` by default):

```
curl "https://api.specstream.ai/customsearch/v1?key=$SPECSTREAM_API_KEY&cx=any&q=open+source+vector+databases&num=5&hl=en"
```

### The same JSON, so the tool's parser reads it

The tool reads `items[]` and takes `link`, `title` and `snippet` from each, then parses each item's `pagemap` as JSON for a page description, and it fails the whole search when `pagemap` is missing. Every item SpecStream returns carries `pagemap`, and the tool reads the query back from `queries.request[].searchTerms`, which the reply also carries.

On Nov 10, 2026 the tool's parser, run in Go with Google's client and this option, read a reply in this shape: 5 items, each `pagemap` parsed, and the query read back. The same call from Python:

```
import os, requests

reply = requests.get(
    "https://api.specstream.ai/customsearch/v1",
    params={"key": os.environ["SPECSTREAM_API_KEY"], "cx": "any", "q": "open source vector databases", "num": 5, "hl": "en"},
).json()

for item in reply["items"]:
    print(item["title"], item["link"], item["pagemap"])
```

### $5 per 1,000 searches, with no daily limit

A search of up to 10 results costs $0.005, and the tool asks for 5 unless the agent sets `size`. There is no monthly plan and no daily limit. Credit you buy never expires, and a new account starts with $10 of credit, which covers 2,000 searches.

### The most accurate web search API, in about one second

On SimpleQA Verified the SpecStream Search API scores 97.9 F-score on all 1,000 official questions, 978 of them correct. On WideSearch it scores 64.0 item F1 and 43.4 row F1 on all 200 official tasks. The Extract API scores 0.908 F1 on WCXB. Every score and its method is on the [benchmarks](https://specstream.ai/benchmarks?utm_source=alternatives&utm_campaign=google-pse-trpc-agent-go) page.

A call of up to 10 results on the first page runs the fast search. Measured on production on November 9, 2026, its median was 0.82 s at 1 search a second and 1.07 s at 20 a second, the 95th percentile stayed between 1.09 and 1.73 s, and it answered 718 of 720. One account can send up to 8,800 searches a minute.

### You decide what is kept, on each key

Create the key with `zero_retention` and a search made with it keeps no request text and no answer after the reply. `spend_cap_cents` is the most the key can spend.

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

### Search, pages and rows on one key

The same key reads up to 20 pages or documents a call with the [Extract API](https://specstream.ai/extract-api?utm_source=alternatives&utm_campaign=google-pse-trpc-agent-go) at $0.80 per 1,000 pages, and a page with no text is not charged. [Deep Search](https://specstream.ai/deep-search?utm_source=alternatives&utm_campaign=google-pse-trpc-agent-go) returns every match for a request in plain words as structured rows, at 5¢, 15¢ or $1 a row, with a source URL on every value. The most a run can cost is approved before it starts.

## Other Google search alternatives for trpc-agent-go

### Google Custom Search, until January 1, 2027

Existing customers can keep Google's default address until Google ends the API: $5 per 1,000 queries after 100 free a day, up to 10,000 a day. A new project gets no key. SpecStream costs the same $5 per 1,000, with no daily limit, behind one option.

### Vertex AI Search

Google's named alternative, for searching up to 50 domains, at $1.50 per 1,000 queries on Standard and $4.00 on Enterprise, called by POST at `discoveryengine.googleapis.com` with its own request. SpecStream searches the whole live web and answers the GET request the tool already sends.

### Tavily

Search billed in credits at $0.008 each on pay as you go, with 1,000 free credits a month that reset on the first day of each month. The Google tool cannot call it, so moving means new code and a new reply shape. SpecStream keeps your Google setup and charges $0.005 a search.

## How to move trpc-agent-go's Google search to SpecStream

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

2. Check the key with the call the tool will send. A `200` with `items` means the tool gets the same.

```
curl "https://api.specstream.ai/customsearch/v1?key=$SPECSTREAM_API_KEY&cx=any&q=test&num=5&hl=en"
```

3. Where your code builds the Google tool set, add `WithBaseURL` with the host alone and pass the SpecStream key:

```
import "trpc.group/trpc-go/trpc-agent-go/tool/google/search"

toolSet, err := search.NewToolSet(ctx,
    search.WithAPIKey(os.Getenv("SPECSTREAM_API_KEY")),
    search.WithEngineID("any"),
    search.WithBaseURL("https://api.specstream.ai"),
)
```

4. Ask the agent something that needs a web search. Each search shows up in your SpecStream request log with its price.

## Frequently asked questions

### Why is Google search failing in trpc-agent-go?

Google closed the Custom Search JSON API to new customers and ends it on January 1, 2027, so a new project gets no key for the tool. Pass `search.WithBaseURL("https://api.specstream.ai")` with a SpecStream key and the tool searches again.

### What is the best Google search alternative for trpc-agent-go?

SpecStream, at $5 per 1,000 searches with no daily limit and 97.9 F-score on all 1,000 SimpleQA Verified questions. It answers the tool's own Google call in Google's JSON, so one option moves it.

### What value does WithBaseURL take?

The host alone: `https://api.specstream.ai`, with no path. The tool hands it to Google's Go client as the endpoint, and the client adds `/customsearch/v1`.

### Does the trpc-agent-go parser read SpecStream's reply?

Yes, as run on Nov 10, 2026: every item carries `link`, `title`, `snippet` and `pagemap`, the field the tool parses on each item and fails without. The reply also carries `queries.request[].searchTerms`, which the tool reads back.

### How much does trpc-agent-go web search cost with SpecStream?

$0.005 a search of up to 10 results, or $5 per 1,000; the tool asks for 5 results by default. Credit you buy never expires, and the first $10 of credit covers 2,000 searches.

### Do I still need an engine ID?

Yes, `NewToolSet` returns `search engine id is required` without one. Pass any value: SpecStream accepts `cx` and does not use it, and searches the whole live web.

## Sources

SpecStream wrote this page. trpc-agent-go's options come from its source on GitHub, and each provider's figure from that company's own page.

- [trpc-agent-go Google search tool, toolset.go](https://github.com/trpc-group/trpc-agent-go/blob/main/tool/google/search/toolset.go), read Nov 10, 2026
- [trpc-agent-go Google search tool, search.go](https://github.com/trpc-group/trpc-agent-go/blob/main/tool/google/search/search.go), read Nov 10, 2026
- [Google Custom Search JSON API overview](https://developers.google.com/custom-search/v1/overview), read Nov 10, 2026
- [Vertex AI Search pricing](https://cloud.google.com/generative-ai-app-builder/pricing), read Nov 10, 2026
- [Vertex AI Search REST reference, search method](https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1/projects.locations.collections.engines.servingConfigs/search), read Nov 10, 2026
- [Tavily API credits](https://docs.tavily.com/documentation/api-credits.md), read Nov 10, 2026
- [Tavily pricing](https://tavily.com/pricing), read Nov 10, 2026
- [Tavily, SealQA and SimpleQA post](https://www.tavily.com/blog/tavily-ranks-1-on-sealqa-and-simpleqa), read Nov 10, 2026
- [SpecStream benchmarks](https://specstream.ai/benchmarks), read Nov 10, 2026
- [SpecStream pricing](https://specstream.ai/pricing), read Nov 10, 2026
- [SpecStream for agents](https://specstream.ai/agents.md), read Nov 10, 2026
