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
| Input | Type | Description |
|---|---|---|
| run | Event | Performs the search. |
| query | Text | Required search terms. |
| type | Choice | Search category. New nodes default to Web. |
| gl | Text | Optional country code, such as gb, us or de. |
| hl | Text | Optional language code, such as en, es or de. |
| page | Number | Result page to request, starting at 1. Default 1. |
Search categories
| Choice | Connected value | Results |
|---|---|---|
| Web | search | Web pages. |
| Images | images | Images and source-page information. |
| News | news | News articles. |
| Videos | videos | Video results. |
| Maps | maps | Locations and local results. |
| Places | places | Places and businesses. |
| Shopping | shopping | Product listings. |
| Scholar | scholar | Scholarly sources. |
| Patents | patents | Patent results. |
| Autocomplete | autocomplete | Query suggestions. |
Choose a category explicitly if supplying type through a connection; use the connected value rather than the display label.
Outputs
| Output | Type | Description |
|---|---|---|
| results | Data | A list of results, or an object with an error field. An empty list means no matching result entries were returned. |
| done | Event | Continues 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
- Set query to your search terms, type to Web, gl to
gband hl toen. - Connect Start to run.
- After checking for an error, connect results to For Each's object input and done to its run input.
- 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.