"GoogleCustomSearch" (Service Connection)
-
See Also
- ServiceExecute
- ServiceConnect
- WikipediaData
- WikipediaSearch
-
- Service Connections
- BingSearch
-
-
See Also
- ServiceExecute
- ServiceConnect
- WikipediaData
- WikipediaSearch
-
- Service Connections
- BingSearch
-
See Also
"GoogleCustomSearch" (Service Connection)
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 |
Examples
open all close allBasic Examples (1)
Scope (2)
ServiceExecute["GoogleCustomSearch", "Search", <|"Query" -> "Orion spacecraft", MaxItems -> 5, "SearchType" -> "Image"|>]Search the web for specific file formats:
ServiceExecute["GoogleCustomSearch", "Search", <|"Query" -> "machine learning", "FileFormat" -> Entity["FileFormat", "PDF-1"]|>]See Also
ServiceExecute ▪ ServiceConnect ▪ WikipediaData ▪ WikipediaSearch
Service Connections: BingSearch