SerpApi Official icon

SerpApi Official

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

Overview

The "Google AI Overview" operation of this node fetches an AI-generated overview summary from Google Search results using SerpApi's official API. It requires a page_token parameter, which is a short-lived token obtained from a previous Google Search API response. This token allows the node to retrieve a specific AI overview related to that search.

This operation is useful when you want to programmatically obtain concise AI-generated summaries or insights about a search query without manually parsing full search results. For example, it can be used in applications that provide quick AI-powered summaries of trending topics, product reviews, or news articles based on Google Search data.

Properties

Name Meaning
Search Query (page_token) The token to fetch the AI Overview from. Must be a valid page_token obtained from the AI Overview Results section of a prior Google Search API response. The token expires within 4 minutes and must be used immediately.
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. Defaults to false. Cannot be used together with async.
- Async (async) Boolean flag to perform the search asynchronously. If true, the search is submitted and results must be retrieved later via the Search Archive API. Defaults to false. Cannot be used with no_cache or on certain accounts.
- ZeroTrace Mode (zero_trace) Boolean flag to enable ZeroTrace mode (Enterprise only), which skips storing search parameters and metadata on SerpApi servers for privacy. Defaults to false.
- Output (output) Defines the output format: "json" (default) returns structured JSON results; "html" returns raw HTML content.
- JSON Restrictor (json_restrictor) String to restrict returned JSON fields, e.g., limiting to specific parts of the organic results.

Output

The node outputs a JSON object containing the AI overview data retrieved from SerpApi. The structure depends on the selected output format:

  • JSON (default): Structured JSON with detailed AI overview information as provided by SerpApi.
  • HTML: Raw HTML content of the AI overview page.

The exact JSON structure mirrors the SerpApi response for the Google AI Overview engine, typically including summary text, related entities, and other metadata.

No binary data output is produced by 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 prior Google Search API call within the last 4 minutes.
  • Optional parameters like async mode or ZeroTrace require corresponding SerpApi account capabilities.

Troubleshooting

  • Expired or invalid page_token: Since the page_token expires within 4 minutes, using an old token will cause errors or empty responses. Always use the token immediately after obtaining it.
  • Conflicting parameters: Setting both no_cache and async to true simultaneously is not allowed and may cause request failures.
  • API quota limits: Exceeding your SerpApi monthly search quota will result in errors. Monitor usage accordingly.
  • ZeroTrace mode debugging difficulty: Enabling ZeroTrace disables logging of search metadata, making troubleshooting harder.
  • Incorrect output format: Requesting an unsupported output format may cause errors; use only "json" or "html".

Links and References

Discussion