Overview
This node performs product searches on Amazon for a specified region. It allows users to query Amazon's product catalog with filters such as price range, sorting order, and result limits. The node is useful for affiliate marketers, e-commerce analysts, or developers who want to programmatically retrieve Amazon product data based on search criteria.
Practical examples include:
- Finding the top 50 featured products related to "iPhone 13" in the US Amazon store.
- Searching for products under a certain price range sorted by customer reviews in the UK.
- Retrieving newest arrivals of a product category in India with an affiliate tag for commission tracking.
Properties
| Name | Meaning |
|---|---|
| Query | The search query string to find products (e.g., "iPhone 13"). |
| Region | The Amazon regional marketplace to search in. Options: Canada, France, Germany, India, Italy, Spain, United Kingdom, United States. |
| Affiliate Tag | Optional Amazon affiliate tag for the selected region to track referrals (e.g., "myamazon-20"). |
| Minimum Price | Minimum price filter for the product search (number). |
| Maximum Price | Maximum price filter for the product search (number). |
| Results Limit | Maximum number of product results to return (minimum 1, default 50). |
| Sort By | How to sort the search results. Options: Average Customer Review, Featured, Newest Arrivals, Price High to Low, Price Low to High. |
Output
The node outputs a JSON object containing the search results from Amazon. The structure includes:
success: Boolean indicating if the search was successful.error: Error message if the search failed.- Product data fields returned by the underlying scraper function, which typically include product titles, prices, ratings, URLs, and other relevant metadata.
No binary data output is produced by this node.
Dependencies
- This node depends on an internal scraping module (
./scraper) that handles querying Amazon and parsing product data. - No external API keys or credentials are strictly required, but providing an Amazon affiliate tag is optional to enable affiliate tracking.
- The node requires internet access to perform live searches on Amazon regional websites.
Troubleshooting
- Invalid region error: If the selected region is not one of the supported Amazon marketplaces, the node will throw an error. Ensure the region parameter matches one of the predefined options.
- Search failure: If the underlying scraper fails (due to network issues, changes in Amazon's site structure, or rate limiting), the node returns an error message. Retrying later or verifying network connectivity may help.
- Empty results: If no products match the query and filters, the output will indicate success but contain no product entries.
- Affiliate tag format: Incorrectly formatted affiliate tags may not cause errors but will not track referrals properly.
Links and References
- Amazon Associates Program
- Amazon Regional Marketplaces
- n8n Documentation on Creating Custom Nodes