Google Search

The Google Search component is an application component that allows users to leverage the Google Search engine. It can carry out the following tasks:

#Release Stage

Alpha

#Configuration

The component definition and tasks are defined in the definition.json and tasks.json files respectively.

#Setup

In order to communicate with Google, the following connection details need to be provided. You may specify them directly in a pipeline recipe as key-value pairs within the component's setup block, or you can create a Connection from the Integration Settings page and reference the whole setup as setup: ${connection.<my-connection-id>}.

FieldField IDTypeNote
API Key (required)api-keystringAPI Key for the Google Custom Search API. You can create one here
Search Engine ID (required)cse-idstringID of the Search Engine to use. Before using the Custom Search JSON API you will first need to create and configure your Programmable Search Engine. If you have not already created a Programmable Search Engine, you can start by visiting the Programmable Search Engine control panel.
You can find this in the URL of your Search Engine. For example, if the URL of your search engine is https://cse.google.com/cse.js?cx=012345678910, the ID value is: 012345678910

#Supported Tasks

Search data via Google Search Engine.

InputIDTypeDescription
Task ID (required)taskstringTASK_SEARCH
Query (required)querystringThe search query for Google
Top Ktop-kintegerThe number of results to return for each query
Include Link Textinclude-link-textbooleanIndicate whether to scrape the link and include the text of the link associated with this search result in the 'link-text' field
Include Link HTMLinclude-link-htmlbooleanIndicate whether to scrape the link and include the raw HTML of the link associated with this search result in the 'link-html' field
OutputIDTypeDescription
Resultsresultsarray[object]The returned search results from Google
Output Objects in Search

Results

FieldField IDTypeNote
LinklinkstringThe full URL to which the search result is pointing, e.g., http://www.example.com/foo/bar.
Link HTMLlink-htmlstringThe scraped raw html of the link associated with this search result
Link Textlink-textstringThe scraped text of the link associated with this search result, in plain text
SnippetsnippetstringThe snippet from the page associated with this search result, in plain text
TitletitlestringThe title of a search result, in plain text