SerpApi Official icon

SerpApi Official

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

Overview

This node enables users to retrieve detailed product information from Google's immersive product popup using SerpApi's official API. It is particularly useful for scenarios where you want to extract rich product data that appears in Google search results or Google Shopping, such as product details, images, pricing, and availability, without manually scraping the webpage.

Practical examples include:

  • E-commerce analytics: Automatically gather product details from Google Shopping to monitor competitors.
  • Price comparison tools: Fetch up-to-date product info to compare prices across different sellers.
  • Market research: Extract product metadata for trend analysis or inventory management.

Properties

Name Meaning
Page Token (page_token) A required token parameter used to fetch more detailed product information in the Google immersive popup. This token can be obtained via Google Search or Google Shopping APIs.
Additional Fields Optional parameters to customize the search request:
Disable Caching (no_cache): Force fetching fresh results instead of cached ones (default: false).
Async (async): Perform search asynchronously (default: false).
ZeroTrace Mode (zero_trace): Enterprise feature to avoid storing search data on servers (default: false).
Output (output): Choose output format, either JSON (default) or raw HTML.
JSON Restrictor (json_restrictor): Limit response fields, e.g., only certain parts of organic results.

Output

The node outputs a JSON object containing the structured data returned by SerpApi for the Google immersive product popup. This includes detailed product information such as title, description, images, pricing, availability, and other metadata depending on the page token provided.

If the "Output" property is set to html, the node returns the raw HTML content retrieved from the API instead of JSON.

No binary data output is produced by this node.

Dependencies

  • Requires an active SerpApi account with a valid API key credential configured in n8n.
  • The node makes HTTP requests to SerpApi's endpoint at https://serpapi.com/search.json.
  • Proper configuration of the API key credential in n8n is necessary for authentication.

Troubleshooting

  • Invalid or expired page token: If the page token is incorrect or expired, the API may return errors or empty results. Ensure the token is freshly obtained from Google Search or Shopping APIs.
  • Conflicting parameters: Using both no_cache and async options together is not allowed and may cause errors. Use one or the other.
  • API quota limits: Exceeding your SerpApi monthly search quota will result in request failures. Monitor usage accordingly.
  • Incorrect output format: Setting the output to html will return raw HTML which might require additional parsing if JSON is expected.
  • Enterprise features: Enabling ZeroTrace mode disables storage of search metadata and may complicate debugging if issues arise.

Links and References

Discussion