Serper

Google Search via Serper API

Overview

This node performs a Google Search using the Serper API. It allows users to input a search query and optionally specify a location filter to tailor the search results geographically. This node is useful for automating web search tasks, gathering search result data for analysis, or integrating search capabilities into workflows without manual browsing.

Practical examples include:

  • Automatically retrieving search results for market research.
  • Gathering localized search results by specifying a location.
  • Integrating search queries into data pipelines for content aggregation or monitoring.

Properties

Name Meaning
Search Query The phrase or keywords to search for on Google. This is required.
Location Optional geographic location filter to customize search results based on region.

Output

The node outputs JSON data containing the search results returned by the Serper API. This typically includes structured information such as titles, snippets, URLs, and other metadata related to each search result. The exact structure depends on the Serper API response format.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for the Serper API.
  • The node sends requests to https://serper.dev/api with appropriate headers including the API key.
  • Users must configure the API key credential in n8n before using this node.

Troubleshooting

  • Missing or invalid API key: The node will fail if the API key is not set or incorrect. Ensure the API key credential is properly configured.
  • Empty search query: Since the search query is required, leaving it empty will likely cause errors or no results.
  • Location filter issues: Providing an invalid or unsupported location string may affect the relevance of results or cause API errors.
  • API rate limits or downtime: If the Serper API service is unavailable or rate-limited, the node will return errors. Check API status and usage limits.

Links and References

Discussion