Google’s Custom Search JSON API is closed to new customers and will be discontinued for existing users on January 1, 2027. Until then, its pricing remains 100 free queries per day, then $5 per 1,000 queries, with a 10,000-query daily limit. The right replacement depends on the task: Google’s Programmable Search Element or Algolia for a website search box; Google Agent Search for searching up to 50 specified domains or private data; and dedicated SERP services or Brave Search API for whole-web results. For search results plus page content, options include RAG Web Browser, Tavily, Exa, or combining search with a page-fetching tool.
For applications that need whole-web results as JSON, the guide presents Apify Web Search as a close substitute. It accepts a query and returns structured results through an HTTP endpoint or an Actor run, using an Apify token instead of a Google API key and search-engine ID. Migration involves renaming parameters and mapping response fields - for example, `q` becomes `query`, `gl` becomes `countryCode`, and `items[].link` becomes `results[].url`. Web Search supports city-level location and has no daily cap, but charges per search, returns only the first results page, and takes a few seconds because results are retrieved live. Its snippets can be supplemented with Web Fetch, which retrieves page content as Markdown; Web Search also integrates with MCP clients and AI agents.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.