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 Product Search via SerpApi. It is particularly useful for e-commerce analysts, marketers, and developers who want to programmatically access live product data such as pricing, offers, specifications, and reviews directly from Google Shopping results.

Typical use cases include:

  • Fetching up-to-date product details by product ID.
  • Gathering competitive pricing and offer data from multiple sellers.
  • Extracting product specifications and customer reviews for market research.
  • Integrating Google product data into custom dashboards or applications.

For example, a user can input a specific Google Shopping product ID to get comprehensive product info including offers and reviews, which can then be used to monitor competitor prices or analyze customer feedback trends.

Properties

Name Meaning
Product ID (product_id) The unique identifier of the product on Google Shopping (e.g., found in URLs like https://www.google.com/shopping/product/{product_id}). This is required to specify which product to fetch data for.
Additional Fields A collection of optional parameters to customize the search:
- Location (location) Origin location for the search query. Defines where the search should appear to originate from. See SerpApi location docs for supported values.
- Encoded Location (uule) Google encoded location string. Cannot be used together with location.
- Domain (google_domain) Google domain to use for the search (e.g., google.com, google.co.uk). Defaults to google.com.
- Country (gl) Country code to use for the search (e.g., us for United States). Defaults to us.
- Language (hl) Language code for the search results (e.g., en for English). Defaults to en.
- Result Offset (start) Offset for paginated results when fetching offers; skips the specified number of results.
- Start From Page (page) Page number for online seller results (10 results per page). Deprecated for reviews.
- Offers Results (offers) Boolean flag to include offers results in the response. Cannot be used with offer_id.
- Fetch Specs Results (specs) Boolean flag to include product specifications in the response. Cannot be used with offer_id.
- Fetch Reviews Results (reviews) Boolean flag to include product reviews in the response. Cannot be used with offer_id.
- Advanced Filter Parameter (filter) String to apply advanced filters, sorting, and pagination for reviews and offers. See SerpApi docs for syntax.
- Offer ID (offer_id) Specific offer ID to fetch multiple offers from an online seller. Cannot be used with offers, specs, or reviews.
- Disable Caching (no_cache) Boolean flag to force fetching fresh results instead of cached ones. Cached results expire after 1 hour. Cannot be used with async.
- Async (async) Boolean flag to perform the search asynchronously. If true, results must be retrieved later via Search Archive API. Cannot be used with no_cache. Not compatible with Ludicrous Speed accounts.
- ZeroTrace Mode (zero_trace) Enterprise-only boolean flag to disable storing search parameters and metadata on SerpApi servers for privacy.
- Output (output) Defines output format: json (default) for structured JSON results or html for raw HTML response.
- JSON Restrictor (json_restrictor) String to restrict returned JSON fields, e.g., limiting to certain fields or result slices.

Output

The node outputs a JSON object containing the product data retrieved from Google Product Search via SerpApi. The structure includes various sections depending on requested fields:

  • Basic product details such as title, description, price, images.
  • Offers from different sellers if offers is enabled.
  • Product specifications if specs is enabled.
  • Customer reviews if reviews is enabled.
  • Pagination and metadata about the search.

If the output format is set to html, the raw HTML content of the product page is returned instead.

No binary data output is involved in this operation.

Dependencies

  • Requires an active SerpApi account with a valid API key credential configured in n8n.
  • Internet access to call SerpApi endpoints.
  • Proper configuration of the API key credential in n8n credentials settings.

Troubleshooting

  • Missing or invalid Product ID: The product_id property is mandatory. Ensure it is correctly extracted from Google Shopping URLs.
  • Conflicting parameters: Parameters like offer_id cannot be used together with offers, specs, or reviews. Using them together will cause errors.
  • Caching conflicts: Do not use no_cache and async simultaneously as they are incompatible.
  • Async mode limitations: Async mode requires fetching results later via Search Archive API; ensure you handle this flow correctly.
  • API quota exceeded: SerpApi enforces usage limits; exceeding them will result in errors.
  • Invalid location or language codes: Use supported values as per SerpApi documentation to avoid errors.
  • Enterprise features: zero_trace mode is only available for enterprise accounts; using it without proper entitlement may cause failures.

Links and References

Discussion