Yes, Google Custom Search has now replaced the old Search API, but you can still use Google Custom Search to search the entire web, although the steps are not obvious from the Custom Search setup.

To create a Google Custom Search engine that searches the entire web:

  1. From the Google Custom Search homepage ( http://www.google.com/cse/ ), click Create a Custom Search Engine.
  2. Type a name and description for your search engine.
  3. Under Define your search engine, in the Sites to Search box, enter at least one valid URL (For now, just put www.anyurl.com to get past this screen. More on this later ).
  4. Select the CSE edition you want and accept the Terms of Service, then click Next. Select the layout option you want, and then click Next.
  5. Click any of the links under the Next steps section to navigate to your Control panel.
  6. In the left-hand menu, under Control Panel, click Basics.
  7. In the Search Preferences section, select Search the entire web but emphasize included sites.
  8. Click Save Changes.
  9. In the left-hand menu, under Control Panel, click Sites.
  10. Delete the site you entered during the initial setup process.

Now your custom search engine will search the entire web.

Pricing

  • Google Custom Search gives you 100 queries per day for free.
  • After that you pay $5 per 1000 queries.
  • There is a maximum of 10,000 queries per day.

Source: https://developers.google.com/custom-search/json-api/v1/overview#Pricing


  • The search quality is much lower than normal Google search (no synonyms, "intelligence" etc.)
  • It seems that Google is even planning to shut down this service completely.
Answer from Bangkokian on Stack Overflow
🌐
Serper
serper.dev
Serper - The World's Fastest and Cheapest Google Search API
Industry-leading SERP API, delivering lightning-fast Google search results in 1-2 seconds, at an unbeatable price starting at $0.30 per 1,000 queries.
🌐
Google
developers.google.com › programmable search engine › custom search json api: introduction
Custom Search JSON API: Introduction | Programmable Search Engine | Google for Developers
Programmable Search Engine (free edition) users: Get a Key · After you have an API key, your application can append the query parameter key=yourAPIKey to all request URLs. The API key is safe for embedding in URLs, it doesn't need any encoding.
Discussions

What are the alternatives now that the Google web search API has been deprecated? - Stack Overflow
Google Web Search API has been deprecated and replaced with Custom Search API (see http://code.google.com/apis/websearch/). I wanted to search the whole web but it looks like with the new API only More on stackoverflow.com
🌐 stackoverflow.com
How do I get web search results using an api? - Google Search Community
Google Search Help · Sign in · Google Help · Help Center · Community · Google Search · Privacy Policy · Terms of Service · Submit feedback · Send feedback on... This help content & information · General Help Center experience · Next · Help Center · More on support.google.com
🌐 support.google.com
Why people are paying for API to do google searches? Why people won't use simple Python scrapy/requests script instead of paying 200 dollars for 200k searches?
Why people are paying for hairdresser? They have scissor, why pay $60 then? 1\ You need residential proxy otherwise result are not accurate - you hit random cache regarding the query and location of IP (google use city level to personalize the results) - it can depends of the needs 2\ Google block / ratelimit - so you need to rotate IP / cool - learn how it's working, what's they are doing So, engineers pay + proxy pool to rent + servers to rent + time each month to maintain and so on, from a company perspective, $200 to access data instantly or invest in one month project and still have expensive every month to maintain it - that's will be way more than $200. Also service are able to scale "on demand" company needs, whereas company have to invest more to tackle scaling issue. More on reddit.com
🌐 r/learnprogramming
10
1
February 1, 2022
Does Google provide a search API - Stack Overflow
Does Google offer an API to perform web search? From my research, I could understand that Google Custom Search API can be used to perform search within our website. But that's not what I need. I wo... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Google
developers.google.com › programmable search engine › custom search json api
Custom Search JSON API | Programmable Search Engine | Google for Developers
The Custom Search JSON API allows programmatic retrieval of web and image search results from a Programmable Search Engine.
🌐
Google Cloud
console.cloud.google.com › marketplace
Google Cloud console
Spend smart, procure faster and retire committed Google Cloud spend with Google Cloud Marketplace. Browse the catalog of over 2000 SaaS, VMs, development stacks, and Kubernetes apps optimized to run on Google Cloud.
Top answer
1 of 10
505

Yes, Google Custom Search has now replaced the old Search API, but you can still use Google Custom Search to search the entire web, although the steps are not obvious from the Custom Search setup.

To create a Google Custom Search engine that searches the entire web:

  1. From the Google Custom Search homepage ( http://www.google.com/cse/ ), click Create a Custom Search Engine.
  2. Type a name and description for your search engine.
  3. Under Define your search engine, in the Sites to Search box, enter at least one valid URL (For now, just put www.anyurl.com to get past this screen. More on this later ).
  4. Select the CSE edition you want and accept the Terms of Service, then click Next. Select the layout option you want, and then click Next.
  5. Click any of the links under the Next steps section to navigate to your Control panel.
  6. In the left-hand menu, under Control Panel, click Basics.
  7. In the Search Preferences section, select Search the entire web but emphasize included sites.
  8. Click Save Changes.
  9. In the left-hand menu, under Control Panel, click Sites.
  10. Delete the site you entered during the initial setup process.

Now your custom search engine will search the entire web.

Pricing

  • Google Custom Search gives you 100 queries per day for free.
  • After that you pay $5 per 1000 queries.
  • There is a maximum of 10,000 queries per day.

Source: https://developers.google.com/custom-search/json-api/v1/overview#Pricing


  • The search quality is much lower than normal Google search (no synonyms, "intelligence" etc.)
  • It seems that Google is even planning to shut down this service completely.
2 of 10
59

Google Custom Search (as advocated in the top rated answers) works well, but is very expensive, compared to its competitors (below) or compared to other Google API's. It has a small free tier (100 queries/day) and a very high price of $5 per 1000 query.

They offer the option to upgrade to Site Search, which has slightly better prices, but that is meant for searching one site (your own), so it is really something quite different - not an upgrade.

The main alternatives seem to be:

Bing Search API
https://datamarket.azure.com/dataset/5BA839F1-12CE-4CCE-BF57-A49D98D29A44
Which has a free tier of 5000q/month, and prices starting at 5 query per penny, and no hard limit.

UPDATE: At the end of 2016 this API was shutdown in favour of its Azure counterpart "Cognitive Services Bing Search API":
https://azure.microsoft.com/en-us/services/cognitive-services/search/

See here for a pricing chart, which starts at US$3/m for 1,000 transactions. Unless I'm missing something it is quite expensive.

Yahoo BOSS Search API
UPDATE: Was discontinued on March 31, 2016. http://developer.yahoo.com/boss/search/
With prices starting at about 12 queries/penny for whole web searches.

And some I haven't heard of before:

http://www.gigablast.com/searchfeed.html

http://www.faroo.com/hp/api/api.html

http://www.commoncrawl.org/

http://www.entireweb.com/search_api/implementation/
[discontinued - as pointed out below]

There is a bit of discussion of some of these on this SO post.
[got closed for being off-topic and is now gone]

🌐
SerpApi
serpapi.com
SerpApi: Google Search API
SerpApi is a real-time API to access Google search results. We handle proxies, solve captchas, and parse all rich structured data for you.
Find elsewhere
🌐
Google Support
support.google.com › code › answer › 55728
What is the Google AJAX Search API? - Google Developers Help
The Google AJAX Search API is designed to make it easier for webmasters and developers to do two things: Add a dynamic search box to your site that includes Google Web, Video, New
🌐
Google Cloud
cloud.google.com › apis
Cloud APIs | Google Cloud
Google-quality search and product recommendations for retailers. ... AI assistants for application development, coding, and more. ... Transform content creation and discovery, research, customer service, and developer efficiency with the power of generative AI. ... Speed up the pace of innovation without coding, using APIs, apps, and automation.
🌐
Google
developers.google.com › webmaster-tools
Search Console API | Google for Developers
The Search Console API provides programmatic access to the most popular reports and actions in your Search Console account.
🌐
Google AI Studio
aistudio.google.com › app › api-keys
API key in Google AI Studio
Sign in · Use your Google Account · Not your computer? Use Guest mode to sign in privately. Learn more about using Guest mode · Create account
🌐
Google Support
support.google.com › websearch › thread › 135474043 › how-do-i-get-web-search-results-using-an-api
How do I get web search results using an api? - Google Search Community
Google Search · false · Search · Clear search · Close search · Google apps · Main menu · 2487167249338290810 · true · Search Help Center · false · true · true · true · true · true · 100334 · false ·
🌐
Bright Data
brightdata.com › products › serp-api › google-search
Google Search API - Free Trial
December 18, 2023 - Multi-engine support Works with Google, Bing, DuckDuckGo, and Yandex. One API for all engines. Easy integration Clean, structured data available in JSON, HTML, or Markdown, ready to use. ... Get Google’s top 100 search results in a single API call, with full control over location and language
🌐
Reddit
reddit.com › r/learnprogramming › why people are paying for api to do google searches? why people won't use simple python scrapy/requests script instead of paying 200 dollars for 200k searches?
r/learnprogramming on Reddit: Why people are paying for API to do google searches? Why people won't use simple Python scrapy/requests script instead of paying 200 dollars for 200k searches?
February 1, 2022 -

Hi. I am going currently through different SaaS's things and I found business that is selling access to API to do google searches. And I don't understand who is paying for this.

First of all, I thought that google is selling access to their own search through their own API, but apparently it was deleted for some reason?

Out of curiosity, I checked out how hard it would be with Python and Scrapy and it is around 10 lines of code to get search response from google.

I am wondering what am I missing? I was thinking about 2 obvious(?) problems:

  1. How well would Scrapy/Requests with let's say FastAPI scale. How slow it would be.

  2. How much would google tolerate. I can only guess that if 1 ip will be making new search every 3 - 5 seconds non-stop. Google would ban this ip. So the more requests, the biggest IP pool would be needed?

But other than that, what am I missing? Why someone is paying 200 dollars for 200k google searches?

🌐
Medium
medium.com › @TerryFrederick › google-search-api-everything-you-need-to-know-fd1e24cfca45
Google Search API: Everything You Need To Know | Medium
October 10, 2023 - Beyond limiting the domains, the API also offers the flexibility of prioritizing or excluding specific keywords, ensuring that the search results always align with the business’s goals or the application’s purpose. It’s not just about crafting the description of a search query; it’s about defining the essence of the search itself. Google’s Programmable Search Engine serves as a testament to this ideology.
🌐
Promevo
promevo.com › blog › google-search-api
What You Need to Know About Google's Search API
December 13, 2024 - Through this article, we'll uncover how the Search API boosts data handling capabilities across industries and addresses modern challenges with cutting-edge technology. At its core, the Google Search API is a programmable interface that allows developers to tap into Google’s search engine prowess.
Top answer
1 of 2
1

Be aware that for not so popular sites, even if they have been around for years, Google will ever show only about 4% of their pages.

In 2022, I tested five SEO experts sites and out of the 1566 pages listed in their sitemap.xml files, Google only listed 402, or 26%. None of them explained why all their pages weren't listed, which makes it seem that they either don't know or they are incompetent. Either way, use of their services is rather dubious if they promote Google but coverage of their sites is so woeful.

Up until August 2023, Bing would return several times more than Google, but now returns 100%, and without Google's 200 limit for the site: filter.

Bing returns all pages for those SEO sites now as well.

For more details, see Google search is lying to you!

I expect a lot of downvotes, as I already had a lot of pushback from several people on another SO forum when I previously tried to highlight Google's egregious discriminatory practice. Perhaps too many tech people are too enamoured with Search Central tools that they blindly accept that Google has valid reasons for ignoring many if not most of their site's pages. That Bing can now list all pages highlights that Google's actions are unwarranted. Hopefully Google will now live up to their implied legal responsibility to list all valid pages.

I suggested to the Bing team that they should immediately launch a worldwide advertising campaign highlighting how Google is letting down all their users by their failure to list all valid pages.

2 of 2
0

Yes, Google Custom Search does what you want. It has multiple sub-products, including Site Search which is the one that is for your own site, but also CSE which is a general web search. It is primarily intended for searching subsets of the web, but has a feature where you can flexibly and dynamically define those subsets.

https://www.google.com/cse/
https://www.google.ca/cse/docs/

There is an API for "custom search":
https://developers.google.com/custom-search/

The service is pretty good, but rather expensive at $5 / 1000 queries once you pass the 100 queries/day free tier.

🌐
SearchApi
searchapi.io
Google Search API for real-time SERP scraping
Our Google Search API provides a wealth of data including organic search results, paid search results, knowledge graph entries, local map listings, featured snippets, and related search queries.
🌐
RapidAPI
rapidapi.com › collection › google-search-api
Google Search APIs
What are they, and what do they entail? ## What are Google Search APIs? Google search APs is a platform that offers a fast and straightforward opportunity to perform Google searches.
🌐
Google
blog.google › technology › developers › file-search-gemini-api
Introducing the File Search Tool in Gemini API
November 10, 2025 - ["How does Gemini work in Google Maps?", "What is quantum computing?", "What are the camera features on Pixel 10?"] ... The Gemini API now includes the File Search Tool. It is a fully managed RAG system that simplifies data grounding for more accurate responses.
🌐
Brave
brave.com › search › api
Brave Search API | Brave
October 16, 2025 - Importantly, the Brave Search API is not a scraper that simply uses bots to query Google or Bing and repackage their results.