Skip to main content

Search Google

Controlled node

Overview​

Search Google and return a list of results.

Search Google returns structured search results for a query. Use it to discover relevant pages, images, news or other sources before reading their contents.

Inputs​

InputTypeDescription
runEventPerforms the search.
queryTextRequired search terms.
typeChoiceSearch category. New nodes default to Web.
glTextOptional country code, such as gb, us or de.
hlTextOptional language code, such as en, es or de.
pageNumberResult page to request, starting at 1. Default 1.

Search categories​

ChoiceConnected valueResults
WebsearchWeb pages.
ImagesimagesImages and source-page information.
NewsnewsNews articles.
VideosvideosVideo results.
MapsmapsLocations and local results.
PlacesplacesPlaces and businesses.
ShoppingshoppingProduct listings.
ScholarscholarScholarly sources.
PatentspatentsPatent results.
AutocompleteautocompleteQuery suggestions.

Choose a category explicitly if supplying type through a connection; use the connected value rather than the display label.

Outputs​

OutputTypeDescription
resultsDataA list of results, or an object with an error field. An empty list means no matching result entries were returned.
doneEventContinues after the search finishes.

The result shape depends on the category. Web results commonly contain title, link, snippet and position. Image results commonly contain imageUrl, title and source information. News results can include date and source. Autocomplete entries may be text or objects.

Inspect a sample with Show before building field mappings. Fields are not guaranteed to be present in every result.

Example​

  1. Set query to your search terms, type to Web, gl to gb and hl to en.
  2. Connect Start to run.
  3. After checking for an error, connect results to For Each's object input and done to its run input.
  4. Use each result's link with Read Webpage when you need the page content.

Search snippets are not full articles. For image results, pass the relevant imageUrl to Download File before reading it as a library image.

Pagination requests one page at a time; the node does not automatically fetch every result page.