"GoogleCustomSearch" (Service Connection)
Connect to the Google Custom Search API with the Wolfram Language to search the web for sites and images.
Connecting & Authenticating
ServiceConnect["GoogleCustomSearch"] creates a connection to the Google Custom Search API. If a previously saved connection can be found, it will be used; otherwise, a new authentication request will be launched.
Requests
ServiceExecute["GoogleCustomSearch","request",params] sends a request to Google Custom Search API, using parameters params. The following give possible requests.
Search Google
"Query" | (required) | search expression | |
MaxItems | 10 | number of results to show | |
"StartIndex" | 0 | index of first search result to return | |
"SearchType" | "Web" | search type: "Image" or "Web" | |
"Site" | None | website constraints on search results | |
"FileFormat" | None | filetype constraints on search results | |
Language | None | language constraints on search results | |
"Country" | None | country or region constraints on search results | |
"ContentFiltering" | "Off" | adult content filtering level ("Off", "Medium" or "High") | |
"DateRestrict" | None | restricts results based on the specified number of past days, weeks, months or years |