[ answer ]

Google Custom Search API alternative for AI agents

Google's Custom Search JSON API is closed to new customers, and existing customers have until January 1, 2027 to move (Google). Google points to Vertex AI Search for up to 50 domains and asks teams that need full web search to contact it. If your agent or app only needs web results as JSON, a web search API can take the same call. Clawifi is one: POST /search/free takes a query, domains, a time range, a country and a language, and returns up to 50 ranked results with title, URL and snippet. The Free plan has 1,000 credits a month with no card.

What changes on January 1, 2027?#

Google's overview page (last updated 19 November 2026) says the API is not available for new customers and that its pricing applies to existing customers only until the discontinuation on January 1, 2027: 100 queries a day free, then $5 per 1,000 queries, up to 10,000 a day. For search over up to 50 domains Google suggests Vertex AI Search; for full web search it offers a contact form (source). Bing's search API is already gone: Microsoft retired the Bing Search APIs on August 11, 2025 and points customers to its Grounding with Bing Search tool for agents (source).

How do Custom Search parameters map to Clawifi?#

Most of a Custom Search call carries over one field at a time. The Custom Search column is from Google's cse.list reference; the Clawifi column is the search docs. There is no search engine ID to create: send the domains you limited the engine to as include_domains.

Custom Search JSON APIClawifi POST /search/freeNote
qqueryUp to 500 characters.
key in the URLAuthorization: Bearer headerA free API key: the parameters in this table need one.
cx (search engine ID)Not neededLimit to sites with include_domains (up to 20) or drop sites with exclude_domains (up to 50).
num (at most 10)max_results (1 to 50)Default 10.
start (start + num at most 100)No offsetAsk for up to 50 results in one call instead of paging.
dateRestrict (d, w, m, y and a number)time_range: day, week, month or yearOne period, no number.
gl (country)countryTwo letters, ISO 3166-1, such as us.
lr (such as lang_en)languageTwo letters, ISO 639-1, such as en.
safeNo fieldThere is no SafeSearch switch.
items[].title, link, snippetresults[].title, url, snippetEach result also has rank, provider and, when the engine gives one, published_at.

What does the call look like before and after?#

The same search in each: the query "model context protocol", ten results, the past month, results for the US in English. The Python client is pip install clawifi.

curl "https://www.googleapis.com/customsearch/v1?key=$GOOGLE_API_KEY&cx=$SEARCH_ENGINE_ID&q=model+context+protocol&num=10&dateRestrict=m1&gl=us&lr=lang_en"

What is different after the move?#

The results are not Google's ranking: Clawifi asks several web engines and the Clawifi Index at once and merges them by rank, so the order will differ. Not every engine supports every filter; filters_applied in the response says, per engine, whether a filter was applied natively, after the fact or skipped. With a time range, for example, the Clawifi Index is skipped and the response says so in errors. A search that finds nothing costs 0, and an identical request within 60 seconds is answered from cache for 0. When the agent needs the pages and not only the links, POST /search/content searches and reads the top results in one call, and fetch reads a single URL.

What does it cost?#

A search costs 1 credit. The Free plan is $0 with 1,000 credits a month and no card; the paid plans are Starter at $19 a month (10,000 credits), Pro at $99 a month (125,000 credits), and Scale at $299 a month (500,000 credits). Agents can also try search_free on the hosted MCP server without a key, 50 calls a day per address; a call without a key returns a few results and ignores the filters above. Full prices are on Pricing.

Questions#

When does the Google Custom Search JSON API stop working?

On January 1, 2027. Google's overview page says existing customers have until then to move, and that the API is closed to new customers (source).

Can I still sign up for the Custom Search JSON API?

No. Google's page says the API is not available for new customers. It suggests Vertex AI Search for up to 50 domains and a contact form for full web search (source).

Does Clawifi return the same results as Google?

No. Clawifi merges several web engines and its own index by rank, so the order differs from Google's. The engine families are listed on Sources.

Is there a replacement for the Bing Search API too?

Yes, the same call. Microsoft retired the Bing Search APIs on August 11, 2025 (source); any web search API that returns results as JSON, Clawifi included, can take that call.

Which other search APIs should I look at?

Serper and SerpApi return Google-style results as JSON, Brave Search API has its own index, and Exa, Parallel and Tavily return page contents too. Each is compared, with sourced and dated facts, in Best web search API for AI agents? and on Compare.

Key facts#

  • Custom Search JSON API: closed to new customers, discontinued January 1, 2027 (Google)
  • Clawifi search: up to 50 results a call, 1 credit a search
  • Free plan: 1,000 credits a month, no card

Next: Docs · Pricing · Playground

This page as Markdown · llms.txt