Read google custom search api python for more information.
The Google API client libraries, which are available in a number of popular programming languages, make it easy to use the Custom Search JSON API.
Google site search API (now custom search API since Google site search is shutting down) lets you develop applications to get and show results from Google custom/ site search programmatically. Google site search In this article we will discuss the components of the google site search API and where to find them. Google search for sites has many restrictions and you could sign up for expertrec site search engine using the link below.
Read more about it here.