SerpApi Official icon

SerpApi Official

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

Overview

This node enables users to perform live Amazon product searches using SerpApi's official API. It is designed to retrieve detailed search results from various Amazon domains, supporting a wide range of parameters to customize the search query, filtering, sorting, and output format.

Common scenarios where this node is beneficial include:

  • E-commerce analytics: Gathering product data for market research or price comparison.
  • Content creation: Fetching product details to enrich blogs or reviews.
  • Automation workflows: Integrating Amazon search results into larger automation pipelines.

For example, a user can search for "Coffee" products on amazon.com, filter by category, sort by best sellers, and receive structured JSON data with product information.

Properties

Name Meaning
Search Query (k) The search term or phrase to query on Amazon, e.g., "Coffee".
Domain (amazon_domain) The Amazon domain to use for the search, e.g., amazon.com, amazon.co.uk, amazon.de, etc. Defaults to amazon.com.
Additional Fields A collection of optional parameters to further customize the search:
- Language (language) Language and locale for the search results, e.g., "amazon.com
- ZIP Code (delivery_zip) Postal code to filter shipping availability by area.
- Shipping Location Country code to filter shipping products by country, e.g., US, CA, DE, etc. Default is US.
- Sort By (s) Sorting criteria for results: Avg. Customer Review, Best Sellers, Featured (default), Newest Arrivals, Price High to Low, Price Low to High.
- Category (node) Amazon category node ID to restrict search results to a specific category. This ID is usually found in Amazon URLs when browsing categories.
- Filters (rh) Attribute-based filters to narrow down items, specified as a string.
- Exclude Auto-corrected Results (dc) Boolean to enable or disable spelling correction in search queries. True includes spelling fix (default), false disables it.
- Page Number (page) Pagination parameter specifying which page of results to retrieve. Default is "1" (first page).
- Device (device) Device type to simulate for the search: desktop (default), tablet, or mobile.
- Disable Caching (no_cache) Boolean to force fetching fresh results instead of cached ones. Default false allows cached results; true disables cache.
- Async (async) Boolean to perform asynchronous search submission. False waits for immediate results (default); true submits search and requires separate retrieval later. Not compatible with no_cache=true.
- ZeroTrace Mode (zero_trace) Enterprise-only boolean to disable storing search metadata on servers for privacy. Default false.
- Output (output) Format of the final output: "json" (default) for structured JSON, or "html" for raw HTML response.
- JSON Restrictor (json_restrictor) String to restrict returned JSON fields, e.g., limiting organic results to first 3 items with only title and snippet fields.

Output

The node outputs a JSON object containing the search results returned by SerpApi for the Amazon search engine. The structure typically includes:

  • organic_results: Array of product listings matching the search query.
  • Metadata about the search such as pagination info, query parameters, and status.
  • Other relevant sections depending on the query parameters and Amazon's response.

If the output is set to "html", the node returns the raw HTML content retrieved from Amazon.

No binary data output is indicated for this operation.

Dependencies

  • Requires an active SerpApi account with a valid API key credential configured in n8n.
  • Internet access to call SerpApi endpoints.
  • No additional external dependencies beyond the SerpApi service.

Troubleshooting

  • Invalid API Key or Authentication Errors: Ensure the API key credential is correctly set up and has sufficient permissions.
  • Empty or Unexpected Results: Check that the search query and parameters are valid and supported by the selected Amazon domain.
  • Pagination Issues: Verify the Page Number property is within the available range of pages.
  • Conflicting Parameters: Avoid using async and no_cache together as they are incompatible.
  • Language or Domain Mismatch: Make sure the language setting corresponds to the chosen Amazon domain to avoid inconsistent results.
  • Rate Limits or Quotas: Monitor usage to avoid exceeding SerpApi limits which may cause errors or throttling.

Links and References

Discussion