Google Custom Search API migrator
Google ends the Custom Search JSON API on January 1, 2027. Paste your call in curl, Python or JavaScript and get working SpecStream code: the same request on the drop-in address, or the native Search API, with every parameter mapped.
- $1 / 1k
- SpecStream fast search
- $5 / 1k
- Google Custom Search
- Jan 1, 2027
- Google ends the API
- 64.0 F1
- First on WideSearch, all 200 tasks
Paste your Custom Search call
The migrator reads the address, the key and each parameter, and writes the SpecStream call in the same language.
ONE LINE CHANGES: THE HOST AND THE KEY
https://www.googleapis.com https://api.specstream.ai
Read as Python
SpecStream drop-in address: $1 per 1,000 searches, same reply as Google
import os
import requests
res = requests.get(
"https://api.specstream.ai/customsearch/v1",
params={
"key": os.environ["SPECSTREAM_API_KEY"],
"cx": os.environ["GOOGLE_CSE_ID"],
"q": "open source vector databases",
"num": 10,
"start": 11,
"siteSearch": "github.com",
"dateRestrict": "m6",
},
)
items = res.json().get("items", [])| Google parameter | Your value | Drop-in address | Native Search API |
|---|---|---|---|
| key | your key | Your SpecStream key | Your SpecStream key, as a Bearer token |
| cx | os.environ["GOOGLE_CSE_ID"] | Sent as is | Not needed |
| q | "open source vector databases" | Sent as is | q |
| num | 10 | Sent as is | num |
| start | 11 | Sent as is | page |
| siteSearch | "github.com" | Sent as is | site:github.com in q |
| dateRestrict | "m6" | Sent as is | Kept on the drop-in address |
Monthly cost: Google Custom Search and SpecStream
Google charges $5 per 1,000 queries, at most 10,000 a day. SpecStream charges $1 per 1,000, with no daily cap.
Google Custom Search
$500/mo
Ends January 1, 2027
SpecStream fast search
$100/mo
100,000 searches a month
Saved each year
$4,800
64.0 on WideSearch, 99 on SimpleQA Verified
Run your query on SpecStream now
A live call to the Search API fast tier ($1 per 1,000), with the operators from your code.
Google Custom Search migration questions
Something we didn't answer? Talk to a human
When does the Google Custom Search JSON API shut down?
Google's overview page says existing customers have until January 1, 2027 to move to another solution. The API is already closed to new customers.
What changes in my code?
On the drop-in address, two things: the host, from https://www.googleapis.com to https://api.specstream.ai, and the key, which becomes your SpecStream key. The request and the items[] reply stay the same, so your parser keeps working.
What does it cost?
$1 per 1,000 searches on the drop-in address, and on GET /v1/web-search with speed=fast, against Google's $5 per 1,000. There is no daily cap. New accounts get $10 of credit, no card.
Which parameters carry over?
All of them on the drop-in address: q, num, start, siteSearch, dateRestrict, gl, hl, lr, cr, safe, sort, searchType, exactTerms, excludeTerms, orTerms and fileType. cx is accepted and not needed. The native Search API takes q, num and page, with site:, quoted phrases, -word and filetype: written in the query.
Does it work with google-api-python-client and googleapis for Node?
Yes. In Python, pass client_options={"api_endpoint": "https://api.specstream.ai"} to build. In Node, pass rootUrl: "https://api.specstream.ai/" to google.customsearch. The migrator adds the option for you.
Move your search before January 1, 2027
New accounts start with $10 of credit, no card. Change the host and the key, and your next call runs on SpecStream.