Overview
This node integrates with the Amazon Product Advertising API, enabling users to perform operations such as searching for items, retrieving detailed item information by ASIN (Amazon Standard Identification Number), and obtaining browse node details. It is useful for scenarios where you want to programmatically access Amazon product data for affiliate marketing, price comparison, inventory management, or content enrichment.
Practical examples include:
- Searching for products based on keywords to display relevant Amazon items in an application.
- Fetching detailed information about specific products using their ASINs.
- Retrieving category or browse node information to organize products hierarchically.
Properties
| Name | Meaning |
|---|---|
| Partner Tag | Amazon Partner Tag used for affiliate tracking; overrides the default tag if provided. |
Note: Although only "Partner Tag" is listed here per your input, the node supports additional properties depending on the operation selected (e.g., "Item IDs" for Get Items, "Keywords" for Search Items, "Browse Node IDs" for Get Browse Nodes). These are not included here since the focus was on the Default resource and operation.
Output
The node outputs an array containing one object per input item processed. Each output object has a json field that contains the raw response from the Amazon Product Advertising API corresponding to the requested operation.
- For Get Items, the JSON includes detailed item information such as title and pricing.
- For Search Items, the JSON contains search results matching the keywords.
- For Get Browse Nodes, the JSON provides browse node metadata.
No binary data output is produced by this node.
Dependencies
- Requires an active Amazon Product Advertising API account with valid credentials including Access Key, Secret Key, Partner Tag, and Marketplace.
- The node depends on the external
amazon-paapilibrary to interact with the Amazon API. - Credentials must be configured in n8n with the necessary API keys and partner tag.
- Network connectivity to Amazon's API endpoints is required.
Troubleshooting
- Missing Partner Tag: If neither the node parameter nor credentials provide a Partner Tag, the node throws an error stating it is required. Ensure the Partner Tag is set either in the node or credentials.
- Missing Required Parameters: For operations like Get Items and Get Browse Nodes, missing required parameters (e.g., Item IDs or Browse Node IDs) will cause errors. Provide these as comma-separated strings.
- API Request Errors: Errors during API calls are caught and rethrown with descriptive messages. Common causes include invalid credentials, exceeding API rate limits, or malformed requests.
- Empty or Invalid Responses: If the API returns unexpected data, verify the input parameters and credentials.
Links and References
- Amazon Product Advertising API Documentation
- Amazon Associates Program
- npm package amazon-paapi (used internally by the node)