Google Search

Use Google Search's Custom Search API to retrieve search results with titles, snippets, and URLs for a query.

Usage Instructions

Integrate Google Search into the workflow. Can search the web.

Actions

Search the web with the Custom Search API

Input

ParameterTypeRequiredDescription
querystringYesThe search query to execute
searchEngineIdstringYesCustom Search Engine ID
numstringNoNumber of results to return (1-10, default 10)
startnumberNoIndex of the first result (1-based, for pagination; start + num must be <= 100)
dateRestrictstringNoRestrict results by recency: d[n] days, w[n] weeks, m[n] months, y[n] years
fileTypestringNoRestrict to a file extension (e.g., pdf, doc)
safestringNoSafeSearch level: "active" or "off" (default off)
searchTypestringNoSet to "image" to perform an image search
siteSearchstringNoA site to include or exclude from results
siteSearchFilterstringNoWhether to include ("i") or exclude ("e") the siteSearch site
lrstringNoRestrict to a language, e.g. "lang_en"
glstringNoTwo-letter country code to boost geographically relevant results
sortstringNoSort expression, e.g. "date"
apiKeystringYesGoogle API key

Output

ParameterTypeDescription
itemsarrayArray of search results from Google
↳ titlestringTitle of the search result
↳ htmlTitlestringTitle of the search result with HTML markup
↳ linkstringURL of the search result
↳ displayLinkstringDisplay URL (abbreviated form)
↳ snippetstringSnippet or description of the search result
↳ htmlSnippetstringSnippet of the search result with HTML markup
↳ formattedUrlstringDisplay URL shown beneath the result
↳ mimestringMIME type of the result
↳ fileFormatstringFile format of the result
↳ cacheIdstringID of Google's cached version
↳ pagemapobjectPageMap information for the result (structured data)
↳ imageobjectImage metadata (present when searchType is image)
↳ contextLinkstringURL of the page hosting the image
↳ heightnumberImage height in pixels
↳ widthnumberImage width in pixels
↳ byteSizenumberImage file size in bytes
↳ thumbnailLinkstringThumbnail image URL
↳ thumbnailHeightnumberThumbnail height in pixels
↳ thumbnailWidthnumberThumbnail width in pixels
searchInformationobjectInformation about the search query and results
↳ totalResultsstringTotal number of search results available
↳ searchTimenumberTime taken to perform the search in seconds
↳ formattedSearchTimestringFormatted search time for display
↳ formattedTotalResultsstringFormatted total results count for display
nextPageStartIndexnumberStart index for the next page of results (null if no further results)