Serper

Use cases and templates: Serper integration for AI agents

Serper provides web search results for a query. Use the returned titles, snippets, and URLs as inputs to later workflow steps, and configure the search options listed below.

Use the block

Search the web.

Actions

Search Google through the Serper.dev API for web, news, places, images, videos, shopping, scholar, or patent results. Available response sections include organic results, a knowledge graph, an answer box, related questions, related searches, and top stories.

Input

ParameterTypeRequiredDescription
querystringYesThe search query (e.g., "latest AI news", "best restaurants in NYC")
numnumberNoNumber of results to return (e.g., 10, 20, 50)
glstringNoCountry code for search results (e.g., "us", "uk", "de", "fr")
hlstringNoLanguage code for search results (e.g., "en", "es", "de", "fr")
typestringNoType of search to perform. Must be one of "search", "news", "places", "images", "videos", "shopping", "scholar", "patents" — any other value is rejected.
apiKeystringYesSerper API Key

Output

ParameterTypeDescription
searchResultsarraySearch results with titles, links, snippets, and type-specific metadata (date for news, rating for places, imageUrl for images, duration/source for videos, price/source for shopping)
↳ titlestringResult title
↳ linkstringResult URL
↳ snippetstringResult description/snippet
↳ positionnumberPosition in search results
↳ datestringPublication date (news/videos)
↳ imageUrlstringImage URL (images/news/shopping)
↳ sourcestringSource name (news/videos/shopping)
↳ ratingnumberRating (places)
↳ ratingCountnumberNumber of reviews (places)
↳ addressstringAddress (places)
↳ pricestringPrice (shopping)
↳ durationstringDuration (videos)