Package Information
Released: 2 mo ago
Downloads: 0 weeklyΒ /Β 0 monthly
Latest Version: 0.1.0
Documentation
n8n-nodes-amazon-scrapper
An n8n community node that scrapes Amazon pages and returns clean JSON:
- π Product link β full product details (title, price, rating, images, features, category, β¦)
- ποΈ Category link β that category's products, paginated
- β¨οΈ Any text β Amazon search results as products
- π·οΈ Category name (e.g. "Electronics", "Books") β finds the category and returns its products, paginated
- π― Product name β related / matching products
Quick Start
npm install
npm run build # compiles to dist/
npm run dev # (if you use @n8n/node-cli) run n8n with hot reload
npm test # offline parser smoke test
Using the node in n8n
- Build the package (
npm run build). - Copy
dist/into your n8ncustomdirectory (see the n8n docs) or install the package. - Add the Amazon Scraper node to a workflow.
Operations
| Operation | Input | Output |
|---|---|---|
| Scrape Product | an Amazon product URL or a bare ASIN | one JSON object with product details |
| Scrape Category | a category / browse / search page URL | results array (or one item per product) |
| Search | any text | results array |
| Category by Name | a category name | results array, paginated |
| Product by Name | a product name | related products as results array |
Parameters
- Marketplace β which Amazon store (
amazon.com,amazon.co.uk,amazon.de, β¦). Default Auto detects it from the URL host; text-only inputs fall back toamazon.com. - Options
Max Pagesβ how many result pages to scrape (each β 16β24 products)Max Resultsβ stop after N productsOutput Modeβsingle(one JSON with aresultsarray) ormultiple(one product per output item)Enrich Missing Product Dataβ Amazon hides prices/ratings from plain bot requests; when enabled the node searches the ASIN once and fills them inRequest Timeout,Delay Between Pages,Retries
Example output (Product)
{
"operation": "product",
"marketplace": "com",
"currency": "USD",
"url": "https://www.amazon.com/dp/B0DN45YMP6",
"product": {
"asin": "B0DN45YMP6",
"title": "JBL Vibe Beam 2 - Noise Cancelling Earbuds - Black",
"price": 36.75,
"priceText": "$36.75",
"listPrice": null,
"rating": 4.1,
"ratingCount": 2900,
"availability": "In Stock",
"features": ["...", "..."],
"images": ["https://m.media-amazon.com/images/I/...SL1500_.jpg"],
"category": ["Electronics", "Headphones", "Earbud Headphones"],
"attributes": { "Brand": "JBL", "Color": "Black" }
}
}
Example output (Search / Category)
{
"operation": "search",
"marketplace": "com",
"currency": "USD",
"query": "wireless headphones",
"category": null,
"pageCount": 1,
"count": 16,
"results": [
{
"asin": "B0DN45YMP6",
"title": "JBL Vibe Beam 2 - ...",
"url": "https://www.amazon.com/dp/B0DN45YMP6",
"price": 36.75,
"rating": 4.1,
"ratingCount": 2900,
"image": "https://m.media-amazon.com/images/I/...",
"sponsored": false,
"prime": true,
"page": 1
}
]
}
About anti-bot protection (important)
Amazon serves reduced pages (no prices / ratings) or a captcha / "robot check" wall to plain
server requests. This node:
- sends realistic browser headers and retries with different user agents,
- detects the captcha/login wall and fails with a clear message instead of returning garbage,
- enriches missing prices/ratings by searching the product's own ASIN,
- optionally routes every request through a scraping-service API.
Optional scraping-service credential
Create an Amazon Scraper API credential and choose one of:
Once configured, the node sends all requests through the service (proxies + rendering), which
bypasses the captcha and returns complete pages (including prices on the product page).
Rate limiting
Add a small Delay Between Pages (default 300 ms) and keep Max Pages low. Aggressive scraping
from a single IP quickly triggers Amazon's captcha.
Notes
- No external runtime dependencies β uses the Node.js native
fetch. - Parsers are written against Amazon's current markup with fallbacks; Amazon changes selectors
regularly, so runnode scripts/live-check.mjs "<query>"after updates to confirm extraction. - Terms of use: respect Amazon's ToS and robots policy, and check your own legal/compliance
requirements before scraping at scale.