Amazon PA API icon

Amazon PA API

Interact with Amazon Product Advertising API

Overview

This node integrates with the Amazon Product Advertising API to perform various operations such as searching for items, retrieving item details by ASIN, and getting browse node information. The "Search Items" operation allows users to find products on Amazon based on keyword queries. This is useful for affiliate marketers, e-commerce analysts, or developers who want to programmatically access Amazon product data for building catalogs, price comparison tools, or recommendation engines.

For example, a user can input keywords like "wireless headphones" to retrieve a list of relevant Amazon products matching that search term.

Properties

Name Meaning
Partner Tag Amazon Partner Tag used for affiliate tracking; overrides the default tag if provided.
Keywords Search terms used to find items on Amazon when performing the "Search Items" operation.

Output

The node outputs an array containing one object per input item. Each output object has a json field holding the raw response from the Amazon Product Advertising API corresponding to the requested operation.

For the "Search Items" operation, the json output contains the search results returned by Amazon, including product details such as titles, prices, images, and other metadata.

The node does not output binary data.

Dependencies

  • Requires an active Amazon Product Advertising API account.
  • Needs credentials including Access Key, Secret Key, Marketplace, and a Partner Tag (affiliate tag).
  • The node uses the external amazon-paapi library to interact with the Amazon API.
  • Proper configuration of these credentials in n8n is necessary for successful API calls.

Troubleshooting

  • Missing Partner Tag: If neither the node parameter nor credentials provide a Partner Tag, the node will throw an error stating it is required.
  • Missing Required Parameters: For "Search Items", the keywords property must be set; otherwise, the API call may fail or return no results.
  • API Request Errors: Network issues, invalid credentials, or exceeding API rate limits can cause errors. The node logs detailed error messages and wraps them in a descriptive error indicating failure to execute the Amazon PA API operation.
  • Invalid Input Format: Comma-separated strings are split into arrays where applicable; incorrect formatting might lead to unexpected behavior.

Links and References

Discussion