Node Inputs

The following are the inputs for the Web search node:

  • query: The search query to be used. This is a text input where users enter what they wish to search on the web.
  • results count: Number of search results to retrieve, with a default value of 5 if not specified (Optional). This is numerical input, where users specify how many search results they would like to receive, up to a maximum of 10.

Node Output

The Web search node provides two primary outputs:

  • urls: A list of URLs, which correspond to the addresses of the webpages that match the search query.
  • snippets: Brief descriptions of the search results that provide an overview of what each webpage contains.

Node Functionality

The Web search node is designed to perform searches on the internet by utilizing the Google Custom Search API.

When a user inputs a search query and specifies the number of results, the node sends the request to Google’s search engine. The information returned includes URLs and snippets related to the search term. The URLs are the direct links to the webpages that contain the relevant content, while the snippets are summary previews that help users understand what each page is about before clicking on the link.

If a user doesn’t specify the number of results, the node will default to retrieving 5 results. However, users have the option of retrieving up to 10 results per search.

When To Use

The Web search node should be used when you need to automate the process of web searching and collecting information. For example, you can use this node in scenarios such as:

  • Gathering research data on a specific topic across different websites.
  • Monitoring web presence or mentions of a brand, product, or individual.
  • Compiling results for market analysis or competitive research based on specific queries.

This node is beneficial when the objective is to quickly gather and summarize relevant information from the web without manually searching and summarizing the information. It saves time and automates the repetitive task of web searching.