Amazon Product Search icon

Amazon Product Search

Search for products on Amazon and get their details

Overview

This node allows users to search for products on Amazon and retrieve detailed product information using the Amazon Product Advertising API. It supports two main operations:

  • Search Products: Search for products by keywords and get a list of matching items with selected details such as title, price, images, ratings, and more.
  • Get Product Details: Retrieve detailed information about a specific product by providing its ASIN (Amazon Standard Identification Number).

Common scenarios include:

  • Building automated workflows that fetch product data for e-commerce comparison or market research.
  • Enriching datasets with up-to-date Amazon product information.
  • Creating alerts or reports based on product availability, pricing, or reviews.

Example use case:

  • A user inputs "wireless headphones" as keywords, selects fields like Title, Price, and Images, and receives a list of relevant products with those details for further processing.

Properties

Name Meaning
Search Keywords The keywords to search for products on Amazon (used in the "Search Products" operation).
Include Fields The fields to include in the response. Options include:
- Title
- Features
- Price
- Images
- Rating
- Review Count
- Brand
- Product Description

Output

The node outputs JSON data structured according to the chosen operation:

  • Search Products:

    • success: Boolean indicating if the search was successful.
    • operation: The string "searchProducts".
    • results: An array of product objects, each containing:
      • title: Product title.
      • asin: Amazon Standard Identification Number.
      • url: Direct URL to the product page on Amazon.
      • price: Display price string.
      • imageUrl: URL of the product image.
      • rating: Average customer star rating.
      • reviewCount: Number of customer reviews.
      • features: List of product features.
  • Get Product Details:

    • success: Boolean indicating if the retrieval was successful.
    • operation: The string "getProductDetails".
    • product: Object containing detailed product information:
      • title, asin, url, price, imageUrl, rating, reviewCount, features, brand, description.

The node does not output binary data.

Dependencies

  • Requires an API key credential for the Amazon Product Advertising API, including access key, secret key, partner tag, and marketplace.
  • Uses the external amazon-paapi library to interact with the Amazon API.
  • The node expects these credentials and configuration to be set up within n8n.

Troubleshooting

  • Common issues:

    • Invalid or missing API credentials will cause authentication failures.
    • Exceeding Amazon API rate limits may result in errors or throttling.
    • Providing invalid ASINs or empty keyword searches can lead to no results.
    • Selecting unsupported or incorrect fields in "Include Fields" may cause incomplete data.
  • Error messages:

    • Errors returned from the Amazon API are caught and included in the output under the error field.
    • Typical error message: "An unknown error occurred" indicates unexpected failures; check credentials and network connectivity.
    • To resolve errors, verify API credentials, ensure correct input parameters, and respect API usage limits.

Links and References

Discussion