Skip to main content
This notebook goes over how to use the google search component. First, you need to set up the proper API keys and environment variables. To set it up, create the GOOGLE_API_KEY in the Google Cloud credential console (console.cloud.google.com/apis/credentials) and a GOOGLE_CSE_ID using the Programmable Search Engine (programmablesearchengine.google.com/controlpanel/create). Next, it is good to follow the instructions for programmatic Google Search. Then we will need to set some environment variables.

Number of results

You can use the k parameter to set the number of results
‘The official home of the Python Programming Language.‘

Metadata results

Run query through GoogleSearch and return snippet, title, and link metadata.
  • Snippet: The description of the result.
  • Title: The title of the result.
  • Link: The link to the result.