Google Search Pack

Hey ya’ll!

So surprised this hasn’t been made yet… A Google Seach pack!

For now, as a first release, this pack just has a single formula - search(). It allows you to:

  • Search the entire web or specific websites
  • Choose between different search types (web, image, news, video, blog)
  • Control safe search settings
  • Limit the number of returned results
  • Display search results with titles, snippets, links, and thumbnails

The response is in JSON, which can then be parsed using .parseJSON().

Prerequisites

Before using this Pack, you need to set up a Google Cloud project and enable the Custom Search API

Create a Google Cloud Project and API Key:

  • Go to the Google Cloud Console (https://console.cloud.google.com/)
  • Create or select a project
  • Navigate to “APIs & Services” > “Credentials”
  • Click “Create credentials” > “API key”
  • Copy your API key for use with this Pack

Enable the Custom Search API:

  • In the Google Cloud Console, select your project
  • Navigate to “APIs & Services” > “Library”
  • Search for “Custom Search API”
  • Click on “Custom Search API” and then click “Enable”
  • Wait a few minutes for the changes to propagate

Note: The free tier of Google Custom Search API allows up to 100 search queries per day. For higher volume needs, you may need to enable billing in your Google Cloud project.

Let me know if you’d like any more features!

10 Likes