SerpApi Official icon

SerpApi Official

Get live Google Search data and more from SerpApi's official node

Overview

This node integrates with SerpApi's official API to fetch live Google Search data and related search engine results. Specifically, the "Google AI Overview" operation retrieves an AI-generated overview of a Google search result page using a page_token parameter obtained from a prior Google Search API response.

Typical use cases include:

  • Fetching AI summaries or insights about specific Google search results.
  • Automating retrieval of AI-enhanced search overviews for SEO analysis or content research.
  • Integrating AI-powered search result summaries into workflows without manual browsing.

For example, after performing a Google Search via SerpApi and obtaining a page_token, this node can be used immediately to get an AI overview of that search page, which might include summarized content, key points, or other AI-generated metadata.

Properties

Name Meaning
Search Query (page_token) The token required to fetch the AI Overview. This token must come from the ai_overview.page_token field in the Google Search API response. It expires within 4 minutes and must be used immediately after retrieval.
Additional Fields A collection of optional parameters to customize the request:
- Disable Caching (no_cache) Boolean flag to force fetching fresh results instead of cached ones. Cached results expire after 1 hour and are free. Cannot be used together with async. Defaults to false.
- Async (async) Boolean flag to perform the search asynchronously. If true, the search is submitted and results retrieved later via the Search Archive API. Cannot be used with no_cache or on accounts with Ludicrous Speed enabled. Defaults to false.
- ZeroTrace Mode (zero_trace) Boolean flag to enable ZeroTrace mode (Enterprise only), which skips storing search parameters and metadata on SerpApi servers, enhancing privacy but making debugging harder. Defaults to false.
- Output (output) Defines the output format: "json" for structured JSON results (default) or "html" for raw HTML content.
- JSON Restrictor (json_restrictor) String to restrict returned JSON fields, e.g., limiting to certain fields or array slices like organic_results[0:3].{title,snippet}.

Output

The node outputs the search AI overview data in the json field of its output items. By default, this is a structured JSON object containing the AI-generated summary and related metadata from the Google AI Overview endpoint.

If the output property is set to "html", the node returns the raw HTML content of the AI overview page instead.

No binary data output is indicated for this operation.

Dependencies

  • Requires an active SerpApi account with a valid API key credential configured in n8n.
  • The node makes HTTP requests to https://serpapi.com/search.json with appropriate query parameters.
  • The page_token must be obtained from a previous Google Search API call through SerpApi.
  • Optional parameters like no_cache, async, and zero_trace require understanding of SerpApi's caching and asynchronous search features.
  • Network connectivity to SerpApi endpoints is necessary.

Troubleshooting

  • Expired or Missing page_token: The page_token expires within 4 minutes. Using an expired token will likely cause errors or empty responses. Always use the token immediately after receiving it.
  • Conflicting Parameters: Setting both no_cache and async to true simultaneously is not allowed and may cause request failures.
  • Async Usage Restrictions: Using async on accounts with special speed settings (e.g., Ludicrous Speed) is disallowed.
  • API Key Issues: Invalid or missing API keys will result in authentication errors. Ensure the API key credential is correctly configured.
  • ZeroTrace Mode Debugging: Enabling ZeroTrace mode disables storage of search metadata, which can complicate troubleshooting if issues arise.
  • Rate Limits and Quotas: Exceeding SerpApi usage limits may cause errors or throttling.

Links and References

Discussion