Skip to the page

trpc-agent-go

Google search stops on January 1, 2027. The setting to change.

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.

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

SpecStreamGoogle Custom SearchVertex AI SearchTavily
trpc-agent-go settingWithBaseURL("https://api.specstream.ai") and a SpecStream key in WithAPIKeyNo WithBaseURL: Google's default address, with a Google key and engine IDIts own POST request at discoveryengine.googleapis.comNot this tool's API; it needs new code and a new reply shape
Open to a new accountYes. Create a key and start with $10 of credit, no cardNo. Closed to new customers, and existing customers have until January 1, 2027Yes, with a free trial of 10,000 queries per account a monthYes, 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
LimitNo daily limit. Up to 8,800 searches a minute on one account10,000 queries a dayFull web search only on request: Google asks you to contact itOn a monthly plan, requests stop when the month's credits run out
How long it lastsCredit you buy never expiresUntil January 1, 2027, when Google ends the APIPay as you go, for search queries and data storageCredits reset on the first day of each month
What answers the searchThe whole live web, read at the moment of the call, in Google's JSON. 97.9 F-score on all 1,000 SimpleQA Verified questionsThe Programmable Search Engine you configuredUp to 50 domains you nameTavily's search. Its own post reports 97.6% on SimpleQA

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

Other Google search alternatives for trpc-agent-go

How SpecStream scores

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

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

Something we didn't answer? Talk to a human

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.

  1. trpc-agent-go Google search tool, toolset.gogithub.com/trpc-group/trpc-agent-go/blob/main/tool/google/search/toolset.go, read Nov 10, 2026
  2. trpc-agent-go Google search tool, search.gogithub.com/trpc-group/trpc-agent-go/blob/main/tool/google/search/search.go, read Nov 10, 2026
  3. Google Custom Search JSON API overviewdevelopers.google.com/custom-search/v1/overview, read Nov 10, 2026
  4. Vertex AI Search pricingcloud.google.com/generative-ai-app-builder/pricing, read Nov 10, 2026
  5. Vertex AI Search REST reference, search methodcloud.google.com/generative-ai-app-builder/docs/reference/rest/v1/projects.locations.collections.engines.servingConfigs/search, read Nov 10, 2026
  6. Tavily API creditsdocs.tavily.com/documentation/api-credits.md, read Nov 10, 2026
  7. Tavily pricingtavily.com/pricing, read Nov 10, 2026
  8. Tavily, SealQA and SimpleQA posttavily.com/blog/tavily-ranks-1-on-sealqa-and-simpleqa, read Nov 10, 2026
  9. SpecStream benchmarksspecstream.ai/benchmarks, read Nov 10, 2026
  10. SpecStream pricingspecstream.ai/pricing, read Nov 10, 2026
  11. SpecStream for agentsspecstream.ai/agents.md, read Nov 10, 2026