# Google Custom Search JSON API replacements, tested on its own filters

Search and Fetch desk. A ZeroClick publication (https://searchandfetch.com/about/). Published 2026-11-02.
Format: Comparison. Topic: Search (https://searchandfetch.com/topics/search/).
Canonical: https://searchandfetch.com/articles/google-custom-search-api-replacements/

Google's Custom Search JSON API ends on January 1, 2027, and it is already [closed to new customers](https://developers.google.com/custom-search/v1/overview). We sent its own site, date and locale filters to four replacement APIs and checked every result that came back. Brave and Exa kept all ten results on the site and all ten inside the week. Serper, the one that returns Google's results, linked seven of its ten site-limited results through Google redirect URLs that hide the destination. For a German search, Brave's `search_lang=de` returned four of ten results tagged German, and Serper, whose `hl` parameter sets only the interface language, returned English pages.

List prices run from $1 to $8 per 1,000: Brave lists $5 per 1,000 requests, Exa $4 to $7 per 1,000, Tavily $0.008 a credit with one credit per basic search, and Serper $1.00 per 1,000 at 50,000 credits, against Custom Search's own $5 per 1,000. Price aside, what separates them is whether the filters your code already sends still work, and whether the response lets your code confirm that they did.

We translated Custom Search's [own parameters](https://developers.google.com/custom-search/v1/reference/rest/v1/cse/list) into each API's nearest equivalent and sent the query `electric car charging` to four APIs. Serper returns Google's results, Brave searches its own index, and Exa and Tavily are the other two. We paid for each call separately through Zero, ZeroClick's own payment layer for agents (ZeroClick publishes this site).

The list is ordered by how many of the filters we sent each call's logged results showed at work, counting every result each call returned. Brave held two of three on every result and part of the third, Exa two of two, Tavily one of two and Serper none of three in full. SerpApi and Google's three options follow, closest match to Custom Search first. The linked price pages show current rates.

| Option | Results from | Site limit (`siteSearch`) | Past week (`dateRestrict=w1`) | Germany, German (`gl`, `lr`) | Page two (`start=11`) | List price | Our call through Zero |
|---|---|---|---|---|---|---|---|
| Brave Search | Brave's own index | [`site:` in `q`](https://api-dashboard.search.brave.com/app/documentation/web-search/query): 10 of 10 on reuters.com | `freshness=pw`: 10 of 10 dated within the week | `country=DE`, `search_lang=de`: 4 of 10 tagged German | `offset=1` (max 9) | [$5 per 1,000](https://brave.com/search/api/) | [$0.035 ($35 per 1,000)](https://www.zero.xyz/c/brave-search-web-search-6ae27744) |
| Exa | Exa | [`includeDomains`](https://docs.exa.ai/reference/search): 10 of 10 on reuters.com | `startPublishedDate`: 10 of 10 dated within the week | `userLocation` (country only), no language filter; not called | Reference lists no offset; up to 100 results | [$7 per 1,000 (Auto), $4 (Lite)](https://exa.ai/pricing) | [$0.007 ($7 per 1,000), up to 10 results](https://www.zero.xyz/c/api-exa-ai-bbdecd0f) |
| Tavily | Tavily | [`include_domains`](https://docs.tavily.com/documentation/api-reference/endpoint/search): 6 results, all on reuters.com | `time_range=week`: 2 results, none dated | `country` (boost), `language` with `filter_by_language`; not called | Reference lists no offset; up to 20 results | [$0.008 per credit, 1 per basic search ($8 per 1,000)](https://docs.tavily.com/documentation/api-credits) | [$0.09 ($90 per 1,000)](https://www.zero.xyz/c/tavily-search-23570190) |
| Serper | Google | `site:` in `q`: 3 of 10 on reuters.com, 7 behind Google redirect links | `tbs=qdr:w`: 7 of 10 dated within the week, 3 undated | `gl=de`, `hl=de` (`hl` sets the interface language): English pages, dates in German format | Later pages of a search billed $0 on the listing | [$1.00 per 1,000 at 50,000 credits](https://serper.dev/) | [$0.002 ($2 per 1,000)](https://www.zero.xyz/c/serper-google-web-search-9f3a0a46) |
| SerpApi | Google | [`site:` in `q`](https://serpapi.com/search-api) | `tbs` | `gl`, `hl`, `lr`, `cr` | `start=10` | [$25 a month for 1,000](https://serpapi.com/pricing) | Not called |
| [Vertex AI Search](https://cloud.google.com/generative-ai-app-builder/docs/introduction) | Your sites, up to 50 domains | Built in | Not listed | Not listed | Not listed | Google Cloud | Not called |
| Google full web search | Google | Not published | Not published | Not published | Not published | By enquiry | Not called |
| [Grounding with Google Search](https://ai.google.dev/gemini-api/terms) | Google, inside a Gemini answer | Not listed | Not listed | Not listed | Not listed | Gemini API | Not called |

## Brave Search

Brave answers from its own index, and each Custom Search filter has a documented Brave parameter. The site limit goes inside the query as `site:`, the week limit is `freshness=pw`, and German pages from Germany are `country` with `search_lang`. In our calls all ten site-limited results were on reuters.com, all ten week-limited results were dated inside the week, and four of the ten results for Germany were tagged German. The language filter narrows the results without making them all German.

Paging works differently: `offset` counts pages, not results, so page two is `offset=1`, up to a maximum of 9. Through Zero each call cost $0.035, seven times Brave's list rate. That list rate comes with $5 of free credit a month and requires a card on file.

## Exa

Exa takes the site limit as `includeDomains`, a list of up to 1,200 domains, and its reference recommends this over a `site:` operator. The date limit is `startPublishedDate`, an ISO date. All ten results of our reuters.com call were on reuters.com, and all ten of the week call carried a published date inside the week.

Its reference has a country setting, `userLocation`, but lists no language filter and no offset parameter; a single request can return up to 100 results instead. Through Zero the calls cost $0.007, Exa's Auto list rate, and that route caps results at 10.

## Tavily

Tavily takes `include_domains`, a hard filter by default, and `time_range=week`. The reuters.com call returned six results for the ten requested, all on reuters.com. The week call returned two results, neither with a date.

Its reference explains the missing dates: undated results stay in a date-filtered search unless `filter_by_published_date` is set to true. Its `country` setting only boosts results, but `language` with `filter_by_language` filters strictly. Pay-as-you-go costs $0.008 a credit and a basic search is one credit, while through Zero each call cost $0.09, about eleven times that.

## Serper

Serper returns Google's results as JSON. Of the ten site-limited results, three linked to reuters.com and seven to Google redirect URLs, so code cannot confirm their domain without following each link. Seven of the ten week-limited results carried a relative date inside the week and three carried none. The German call returned English pages, with their dates written in German format. Our request sent `hl`, which Custom Search's reference defines as the interface language; the filter it was meant to replace, `lr`, restricts results to pages written in a language.

At $0.002 a call through Zero it was the cheapest call in the set, and its listing says later pages of the same search are charged nothing.

## SerpApi

SerpApi's parameters copy Custom Search's most closely: `site:` in `q`, `tbs` for dates, `gl`, `hl`, `lr` and `cr` for locale, and `start` for paging. Watch the offset: Custom Search's page two is `start=11`, while SerpApi's is `start=10`. Plans start at $25 a month for 1,000 searches, with 250 free.

Google [sued SerpApi in December 2025](https://blog.google/technology/safety-security/serpapi-lawsuit/), alleging it circumvented Google's protections to scrape results. In July 2026 the court [dismissed Google's DMCA claims](https://www.searchenginejournal.com/court-dismisses-googles-dmca-claims-against-serpapi/583033/), ruling that shutting scrapers out of results that hold no copyrighted work does not count as circumvention, and gave Google 21 days to amend the part tied to licensed Knowledge Panel images ([Bloomberg Law](https://news.bloomberglaw.com/ip-law/google-lawsuit-against-data-scraper-tossed-over-authority-issue)). The ruling narrowed the case without ending it.

## Vertex AI Search

This is Google's own suggestion for searching up to 50 domains, and it is being renamed Agent Search. It searches your websites or data stores rather than the open web, and Google publishes a migration guide from the site-restricted version of Custom Search.

## Google full web search

For whole-web results, Google's overview asks you to contact Google about a full web search solution. The overview gives no price and no parameters for it.

## Grounding with Google Search

Grounding returns Google search results woven into a Gemini answer, not a list of results. Its terms bar caching, syndicating, analysing or training on grounded results, and they limit display to the end user who sent the prompt. That makes it a poor fit for code that stores or post-processes results.

## The 403 error: this project does not have the access to Custom Search JSON API

A call Google refuses returns this error:

```text
403 PERMISSION_DENIED
This project does not have the access to Custom Search JSON API.
```

Google posted an [update to its web search products](https://programmablesearchengine.googleblog.com/2026/01/updates-to-our-web-search-products.html) on January 20, 2026. Its overview now says the API is closed to new customers and that existing customers have until January 1, 2027 to move. A project that is a new customer gets the 403 because of that closure, not because of its key or billing, so a new key or a new project does not bring access back, and from January 1, 2027 no project has it. The fix is to move the call to a replacement.

An engine created before January 20, 2026 can get the same 403, and Google's [support thread for the error](https://support.google.com/programmable-search/thread/411852630/requests-to-google-custom-search-api-fail-with-403-this-project-does-not-have-the-access-to-custom?hl=en) shows how those cases have gone. Engines that had worked for years began failing on February 20, 2026, and at the start of March the Community Manager answering the thread called it an internal bug that had been fixed. Through the summer he restored access for some older projects one at a time and sent other owners to the Send Feedback link in the Programmable Search control panel. In September he told the owner of an engine created in 2023 that Google no longer makes exceptions, even for engines created before January 2026. That September reply is Google's latest word in the thread, so treat the 403 as final for an older engine too, and move to a replacement: every project loses access on January 1, 2027 regardless.

Our Brave site-limit call sent this request, with the site limit inside the query.

```json
{"q": "site:reuters.com electric car charging", "count": 10, "result_filter": "web"}
```

It returned ten results, all on reuters.com.

## How to choose

Start from the filters your code sends. For `siteSearch` and `dateRestrict`, Brave and Exa held every result inside the limit, and Brave returns language tags your code can check. If you need Google's ordering, Serper is the cheapest call and SerpApi's parameters are the nearest copy of Custom Search's, but on Serper your code has to follow redirect links to check domains and handle results with no date. If your agent reads pages, [our comparison of search APIs](https://searchandfetch.com/articles/web-search-apis-for-ai-agents-compared/) covers what each result holds.

Each of the four is listed on Zero at a price per call, payable on whatever rail the listing accepts, and each also sells through a provider account and API key. At volume, a key costs far less for Brave and Tavily.

## Frequently asked questions

### What can replace the Google Custom Search JSON API?

Serper and SerpApi return Google's results, Brave searches its own index, and Exa and Tavily are other options; Google itself points to Vertex AI Search for up to 50 domains. In our calls Brave and Exa kept every result inside the site and date limits, while Serper hid most destinations behind Google redirect links.

### What is the dateRestrict equivalent in other search APIs?

Brave uses `freshness=pw`, Exa uses `startPublishedDate`, Tavily uses `time_range=week`, and Serper and SerpApi use `tbs`. Tavily keeps undated results in a date-filtered search unless `filter_by_published_date` is set to true.

### What is the siteSearch alternative?

Exa uses `includeDomains` and Tavily uses `include_domains`, while Brave, Serper and SerpApi take `site:` inside the query.

### Why does Custom Search return a 403 saying the project has no access to the API?

Google has closed the API to new customers, and existing customers have until January 1, 2027 to move to another service. Engines created before January 20, 2026 have hit it too: Google's staff fixed one wave in March as a bug, but said in September that they no longer make exceptions.
