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

# 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.

[Get $10 of credit](https://specstream.ai/signup?src=tools-google-cse-migrator&returnTo=%2Fworkspace%2Fkeys)[Read the migration guide](https://specstream.ai/migrate/google-custom-search.md)

$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

[Full migration guide](https://specstream.ai/migrate/google-custom-search.md)[Get $10 of credit](https://specstream.ai/signup?src=tools-google-cse-migrator&returnTo=%2Fworkspace%2Fkeys)

import os import requests res = requests.get( "https://www.googleapis.com/customsearch/v1", params={ "key": os.environ\["GOOGLE\_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", \[\])

Drop-in addressNative Search APIRead as Python

Copy SpecStream code

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.

10k100k300k1M5M

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](https://specstream.ai/talk-to-a-human.md)

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.

[Get $10 of credit](https://specstream.ai/signup?src=tools-google-cse-migrator&returnTo=%2Fworkspace%2Fkeys)[Talk to a human](https://specstream.ai/talk-to-a-human.md)
