# Amazon Scraper

Extract product titles, prices, ratings, reviews, ASINs, images, and more in minutes. Save hours of manual copying and get clean, ready-to-use data in Excel/CSV/JSON instantly.

- Template page: [https://www.octoparse.com/template/amazon-product-scraper-by-keywords](https://www.octoparse.com/template/amazon-product-scraper-by-keywords)
- Categories: E-Commerce
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from review pages.

## Output

The current workflow extracts 25 fields, including `ASIN`, `Current_price`, `Current_progress`, `Current_time`, `Delivery`, `Delivery_raw`, `Image_link`, `In_stock`, `Is_sponsored`, `Keyword`, `Organic_rank`, `Original_price`, `Page_URL`, `Product_URL`, `Product_URL_clean`, `Product_name`, `Rating_count`, `Recent_purchase`, `Result_index`, `Result_position`, `Review_page`, `Shipping_free`, `Shipping_price`, `Site`, `Stars`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete Site, Confirm your site, Keywords (up to 100,000) and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Site

Required. Select an Amazon site. Constraints: minLength=1; maxLength=5000. Callable values are the `const` keys in JSON `oneOf`, not the option titles.

### Confirm your site

Required. Confirm the site you selected. Constraints: minItems=1; maxItems=1; items.minLength=1; items.maxLength=5000; uniqueItems=true. Callable values are the `const` keys in JSON `oneOf`, not the option titles.

### Keywords (up to 100,000)

Required. Enter the keywords you want to search for. Up to 100,000 keywords per run. For better performance, split large keyword lists into multiple batches. Constraints: minItems=1; maxItems=100000; items.minLength=1; items.maxLength=5000.

### Number of Pages to Scrape

Optional. Limit how many search result pages to extract. Each page contains 50 results - enter 1 for 50 products, 2 for 100 products, 3 for 150 products, etc. Constraints: minimum=1, maximum=1000.

## How to Use

# Amazon Keyword Scraper – Usage Guide

Scrape product listings from Amazon search results by keyword. Supports 22 Amazon marketplaces.

## Supported Marketplaces

Select the target site in the **Site** field:

1. United States – Amazon.com  
2. United Kingdom – Amazon.co.uk  
3. Canada – Amazon.ca  
4. India – Amazon.in  
5. Australia – Amazon.com.au  
6. Singapore – Amazon.sg  
7. Japan – Amazon.co.jp  
8. Germany – Amazon.de  
9. France – Amazon.fr  
10. Italy – Amazon.it  
11. Spain – Amazon.es  
12. Mexico – Amazon.com.mx  
13. Brazil – Amazon.com.br  
14. Netherlands – Amazon.nl  
15. Belgium – Amazon.com.be  
16. Sweden – Amazon.se  
17. Poland – Amazon.pl  
18. Turkey – Amazon.com.tr  
19. United Arab Emirates – Amazon.ae  
20. Saudi Arabia – Amazon.sa  
21. Egypt – Amazon.eg  
22. China – Amazon.cn  

## Input Parameters

| Parameter | Required | Description | Example |
|-----------|----------|-------------|---------|
| Site | Yes | Select the Amazon marketplace | Amazon.com (US), Amazon.co.uk (UK) |
| Confirm your site | Yes | Reconfirm the selected site | Same as above |
| Keywords | Yes | Search keywords (up to 100,000 per run). Split large lists into multiple batches for better performance. | `iPhone case`, `office chair` |
| Number of Pages to Scrape | No | Limit pages (50 results per page). Enter 1 for 50 products, 2 for 100, etc. | `1`, `2`, `3` |

## How to Use

1. **Start the template** – Click **Try it!** to open the Amazon Keyword Scraper in Octoparse.

2. **Enter parameters** – Fill in the input fields above.

3. **Run the scraper** – Click **Start** and choose a supported run mode. Octoparse automatically browses Amazon, loads search results, and extracts matching products.

4. **Handle interruptions** – If a CAPTCHA appears, pause the task, solve it manually, then resume.

5. **Export data** – After scraping completes, go to the output section. Export results as CSV, Excel, or JSON for analysis.

## Important Notes

- Use responsibly and follow Amazon's Terms of Service.
- Amazon may show slightly different results based on location and browsing history.
- Ensure personal data is handled ethically.
- **This template extracts only search result metadata** (titles, prices, ratings, etc.). It does **not** open individual product detail pages. To get detailed product info (bullet points, descriptions, specifications, variants, best seller ranks), first collect ASINs with this keyword scraper, then run the appropriate product details template for your marketplace.

## Tips

- Use broad keywords for more results; use filters for precision.
- For large projects, break keywords into multiple tasks (e.g., `"office chair ergonomic"`, `"office chair mesh"`).

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Amazon Japan Product Scraper](https://www.octoparse.com/template/amazon-japan-product-scraper)
- [Amazon Reviews Scraper Lite (UK)](https://www.octoparse.com/template/amazon-reviews-scraper)
- [Amazon Product Scraper (for US)](https://www.octoparse.com/template/amazon-product-details-scraper)

## Input Schema

```json
{
  "title": "Amazon Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "site": {
      "title": "Site",
      "description": "Select an Amazon site.",
      "type": "string",
      "minLength": 1,
      "maxLength": 5000,
      "oneOf": [
        {
          "title": "United Kingdom",
          "const": "United Kingdom"
        },
        {
          "title": "Australia",
          "const": "Australia"
        },
        {
          "title": "India",
          "const": "India"
        },
        {
          "title": "Turkey (Türkiye)",
          "const": "Turkey (Türkiye)"
        },
        {
          "title": "Italy (Italia)",
          "const": "Italy (Italia)"
        },
        {
          "title": "Netherlands (Nederland)",
          "const": "Netherlands (Nederland)"
        },
        {
          "title": "United States",
          "const": "United States"
        },
        {
          "title": "Belgium (Belgique)",
          "const": "Belgium (Belgique)"
        },
        {
          "title": "Egypt (مصر)",
          "const": "Egypt (مصر)"
        },
        {
          "title": "France",
          "const": "France"
        },
        {
          "title": "Mexico (México)",
          "const": "Mexico (México)"
        },
        {
          "title": "Poland (Polska)",
          "const": "Poland (Polska)"
        },
        {
          "title": "United Arab Emirates",
          "const": "United Arab Emirates"
        },
        {
          "title": "Canada",
          "const": "Canada"
        },
        {
          "title": "Japan (日本)",
          "const": "Japan (日本)"
        },
        {
          "title": "Germany (Deutschland)",
          "const": "Germany (Deutschland)"
        },
        {
          "title": "Sweden (Sverige)",
          "const": "Sweden (Sverige)"
        },
        {
          "title": "Saudi Arabia (المملكة العربية السعودية)",
          "const": "Saudi Arabia (المملكة العربية السعودية)"
        },
        {
          "title": "Singapore",
          "const": "Singapore"
        },
        {
          "title": "Brazil (Brasil)",
          "const": "Brazil (Brasil)"
        },
        {
          "title": "Spain (España)",
          "const": "Spain (España)"
        }
      ],
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "confirm_your_site": {
      "title": "Confirm your site",
      "description": "Confirm the site you selected.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5000,
        "oneOf": [
          {
            "title": "United Kingdom",
            "const": "https://www.amazon.co.uk/"
          },
          {
            "title": "Australia",
            "const": "https://www.amazon.com.au/"
          },
          {
            "title": "India",
            "const": "https://www.amazon.in/"
          },
          {
            "title": "Turkey (Türkiye)",
            "const": "https://www.amazon.com.tr/"
          },
          {
            "title": "Italy (Italia)",
            "const": "https://www.amazon.it/"
          },
          {
            "title": "Netherlands (Nederland)",
            "const": "https://www.amazon.nl/"
          },
          {
            "title": "United States",
            "const": "https://www.amazon.com/"
          },
          {
            "title": "Belgium (Belgique)",
            "const": "https://www.amazon.com.be/"
          },
          {
            "title": "Egypt (مصر)",
            "const": "https://www.amazon.eg/"
          },
          {
            "title": "France",
            "const": "https://www.amazon.fr/"
          },
          {
            "title": "Mexico (México)",
            "const": "https://www.amazon.com.mx/"
          },
          {
            "title": "Poland (Polska)",
            "const": "https://www.amazon.pl/"
          },
          {
            "title": "United Arab Emirates",
            "const": "https://www.amazon.ae/"
          },
          {
            "title": "Canada",
            "const": "https://www.amazon.ca/"
          },
          {
            "title": "Japan (日本)",
            "const": "https://www.amazon.co.jp/"
          },
          {
            "title": "Germany (Deutschland)",
            "const": "https://www.amazon.de/"
          },
          {
            "title": "Sweden (Sverige)",
            "const": "https://www.amazon.se/"
          },
          {
            "title": "Saudi Arabia (المملكة العربية السعودية)",
            "const": "https://www.amazon.sa/"
          },
          {
            "title": "Singapore",
            "const": "https://www.amazon.sg/"
          },
          {
            "title": "Brazil (Brasil)",
            "const": "https://www.amazon.com.br/"
          },
          {
            "title": "Spain (España)",
            "const": "https://www.amazon.es/"
          }
        ]
      },
      "minItems": 1,
      "maxItems": 1,
      "uniqueItems": true,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "keywords": {
      "title": "Keywords (up to 100,000)",
      "description": "Enter the keywords you want to search for. Up to 100,000 keywords per run. For better performance, split large keyword lists into multiple batches.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5000
      },
      "minItems": 1,
      "maxItems": 100000,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "number_of_Pages_to_Scrape": {
      "title": "Number of Pages to Scrape",
      "description": "Limit how many search result pages to extract. Each page contains 50 results - enter 1 for 50 products, 2 for 100 products, 3 for 150 products, etc.",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "site",
    "confirm_your_site",
    "keywords"
  ],
  "allOf": [
    {
      "if": {
        "properties": {
          "site": {
            "const": "United Kingdom"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "United Kingdom",
                  "const": "https://www.amazon.co.uk/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Australia"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Australia",
                  "const": "https://www.amazon.com.au/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "India"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "India",
                  "const": "https://www.amazon.in/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Turkey (Türkiye)"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Turkey (Türkiye)",
                  "const": "https://www.amazon.com.tr/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Italy (Italia)"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Italy (Italia)",
                  "const": "https://www.amazon.it/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Netherlands (Nederland)"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Netherlands (Nederland)",
                  "const": "https://www.amazon.nl/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "United States"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "United States",
                  "const": "https://www.amazon.com/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Belgium (Belgique)"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Belgium (Belgique)",
                  "const": "https://www.amazon.com.be/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Egypt (مصر)"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Egypt (مصر)",
                  "const": "https://www.amazon.eg/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "France"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "France",
                  "const": "https://www.amazon.fr/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Mexico (México)"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Mexico (México)",
                  "const": "https://www.amazon.com.mx/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Poland (Polska)"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Poland (Polska)",
                  "const": "https://www.amazon.pl/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "United Arab Emirates"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "United Arab Emirates",
                  "const": "https://www.amazon.ae/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Canada"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Canada",
                  "const": "https://www.amazon.ca/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Japan (日本)"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Japan (日本)",
                  "const": "https://www.amazon.co.jp/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Germany (Deutschland)"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Germany (Deutschland)",
                  "const": "https://www.amazon.de/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Sweden (Sverige)"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Sweden (Sverige)",
                  "const": "https://www.amazon.se/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Saudi Arabia (المملكة العربية السعودية)"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Saudi Arabia (المملكة العربية السعودية)",
                  "const": "https://www.amazon.sa/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Singapore"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Singapore",
                  "const": "https://www.amazon.sg/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Brazil (Brasil)"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Brazil (Brasil)",
                  "const": "https://www.amazon.com.br/"
                }
              ]
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "site": {
            "const": "Spain (España)"
          }
        },
        "required": [
          "site"
        ]
      },
      "then": {
        "properties": {
          "confirm_your_site": {
            "items": {
              "type": "string",
              "oneOf": [
                {
                  "title": "Spain (España)",
                  "const": "https://www.amazon.es/"
                }
              ]
            }
          }
        }
      }
    }
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "confirm_your_site": [
    "https://www.amazon.com/"
  ],
  "keywords": [
    "Samsung Galaxy A16",
    "iPhone 16 128GB unlocked",
    "Samsung Galaxy Watch8 40mm",
    "PlayStation 5 Slim Digital Edition",
    "Nintendo Switch 2"
  ],
  "number_of_Pages_to_Scrape": 1,
  "site": "United States"
}
```

Example 2

```json
{
  "confirm_your_site": [
    "https://www.amazon.com/"
  ],
  "keywords": [
    "iPhone 17 256GB unlocked",
    "iPhone 16 128GB unlocked",
    "Samsung Galaxy A36 5G",
    "Samsung Galaxy A16",
    "Apple Watch SE 3 GPS 44mm"
  ],
  "number_of_Pages_to_Scrape": 1,
  "site": "United States"
}
```

Example 3

```json
{
  "confirm_your_site": [
    "https://www.amazon.com.au/"
  ],
  "keywords": [
    "iPhone",
    "case"
  ],
  "number_of_Pages_to_Scrape": 5.0,
  "site": "Australia"
}
```

Example 4

```json
{
  "confirm_your_site": [
    "https://www.amazon.com/"
  ],
  "keywords": [
    "iPhone Duo"
  ],
  "number_of_Pages_to_Scrape": 1,
  "site": "United States"
}
```

Example 5

```json
{
  "confirm_your_site": [
    "https://www.amazon.com/"
  ],
  "keywords": [
    "iPhone Duo"
  ],
  "number_of_Pages_to_Scrape": 1,
  "site": "United States"
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "ASIN": {
      "type": "string",
      "description": ""
    },
    "Current_price": {
      "type": "string",
      "description": ""
    },
    "Current_progress": {
      "type": "string",
      "description": ""
    },
    "Current_time": {
      "type": "string",
      "description": ""
    },
    "Delivery": {
      "type": "string",
      "description": ""
    },
    "Delivery_raw": {
      "type": "string",
      "description": ""
    },
    "Image_link": {
      "type": "string",
      "description": ""
    },
    "In_stock": {
      "type": "string",
      "description": ""
    },
    "Is_sponsored": {
      "type": "string",
      "description": ""
    },
    "Keyword": {
      "type": "string",
      "description": ""
    },
    "Organic_rank": {
      "type": "string",
      "description": ""
    },
    "Original_price": {
      "type": "string",
      "description": ""
    },
    "Page_URL": {
      "type": "string",
      "description": ""
    },
    "Product_URL": {
      "type": "string",
      "description": ""
    },
    "Product_URL_clean": {
      "type": "string",
      "description": ""
    },
    "Product_name": {
      "type": "string",
      "description": ""
    },
    "Rating_count": {
      "type": "string",
      "description": ""
    },
    "Recent_purchase": {
      "type": "string",
      "description": ""
    },
    "Result_index": {
      "type": "string",
      "description": ""
    },
    "Result_position": {
      "type": "string",
      "description": ""
    },
    "Review_page": {
      "type": "string",
      "description": ""
    },
    "Shipping_free": {
      "type": "string",
      "description": ""
    },
    "Shipping_price": {
      "type": "string",
      "description": ""
    },
    "Site": {
      "type": "string",
      "description": ""
    },
    "Stars": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Amazon Scraper output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "ASIN": "B0FCJMPV9X",
  "Current_price": "$139.99",
  "Current_progress": "\n            \n                1-16 of over 6,000 results for \"Samsung Galaxy A16\"\n            \n        ",
  "Current_time": "2026-11-18 20:01:08.019",
  "Delivery": "Fri, Nov 20",
  "Delivery_raw": ".prime-brand-color {color: #0064f9; }Join Prime(function(f){var _np=(window.P._namespace(\"udm-kata-sfx-prime-signup-ingress-script\"));if(_np.guardFatal){_np.guardFatal(f)(_np);}else{f(_np);}}(function(P){if(window.udmSfxPrimeSignupInitialized)return;P.when('ready').execute(\"udm-sfx-prime-signup-ingress-handler\",()=>{P.load.js(\"https://d2lbyuknrhysf9.cloudfront.net/SFXInjectableScript.js\");P.when(\"sfx-injectable\").execute(\"udm-sfx-prime-signup-ingress-flow\",async(api)=>{const clientId=\"UdmDeliveryBlockMedium\";const ingressId=\"pdm_prime_upsell\";const linkClass=\"udm-sfx-prime-signup-trigger\";const experienceUUID=api.initiate({clientId,ingressId,planOptimizationId:\"default\",redirectURL:window.location.pathname},{});document.addEventListener('click',function(event){const ingressButton=event.target.closest('.'+linkClass);if(ingressButton){event.preventDefault();event.stopImmediatePropagation();api.show(experienceUUID);}},true);const queryString=window.location.search;const urlParams=new URLSearchParams(queryString);const loadInjectableValue=urlParams.get('loadInjectable');if(loadInjectableValue){const[currClientId,currIngressId]=loadInjectableValue.split(\"_\");if(currClientId===clientId&&currIngressId===ingressId){api.show(experienceUUID);}}window.udmSfxPrimeSignupInitialized=true;});});})); to get FREE delivery Fri, Nov 20Or Non-members get FREE delivery Mon, Nov 23Only 3 left in stock - order soon.",
  "Image_link": "https://m.media-amazon.com/images/I/71KGkQ+KOKL._AC_UY218_.jpg",
  "In_stock": "Only 3 left in stock - order soon.",
  "Is_sponsored": "",
  "Keyword": "Samsung Galaxy A16",
  "Organic_rank": "3",
  "Original_price": "",
  "Page_URL": "https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=Samsung+Galaxy+A16",
  "Product_URL": "https://www.amazon.com/Samsung-A16-Unlocked-Smartphone-Expandable/dp/B0FCJMPV9X/ref=sr_1_3?dib=eyJ2IjoiMSJ9.IZthQETfgZ_94BMyZ4wxCSm1kYYMTyn_qvVaa-HQ8raXmwHL6LKTw_jPTJhva2P6lTUUP_kT2vVUEYStiSYpJfmPyTMCiFLP7OAdHCT32geBA2NlJnMiOpgeHCC2Qq5ImQ9uoAl-vqLR5gHZsX84RK7GHndK9Ln8kVB9qU8yXNLOdTX78MN7b0zWZiR5qdPRsXWDwzOIDSvmBnHbHp4ANzMrVWWTKfbAJGjmgtck9v8.89uK-6EFQ79Ct6k5PVPMmi4EvwdOx6cYca141o4hQHE&dib_tag=se&keywords=Samsung+Galaxy+A16&qid=1795032044&sbo=GW1QB%2BmqAsHTPf1jTZRSDA%3D%3D&sr=8-3",
  "Product_URL_clean": "https://www.amazon.com/dp/B0FCJMPV9X",
  "Product_name": "Galaxy A16 5G 128GB Cell Phone, Unlocked Android Smartphone, Large AMOLED Display, Durable Design, Super Fast Charging, Expandable Storage, US Version, 2025, Blue Black (Renewed)",
  "Rating_count": "(1K) ",
  "Recent_purchase": "2K+ bought in past month",
  "Result_index": "5",
  "Result_position": "4",
  "Review_page": "https://www.amazon.com/Samsung-A16-Unlocked-Smartphone-Expandable/dp/B0FCJMPV9X/ref=sr_1_3?dib=eyJ2IjoiMSJ9.IZthQETfgZ_94BMyZ4wxCSm1kYYMTyn_qvVaa-HQ8raXmwHL6LKTw_jPTJhva2P6lTUUP_kT2vVUEYStiSYpJfmPyTMCiFLP7OAdHCT32geBA2NlJnMiOpgeHCC2Qq5ImQ9uoAl-vqLR5gHZsX84RK7GHndK9Ln8kVB9qU8yXNLOdTX78MN7b0zWZiR5qdPRsXWDwzOIDSvmBnHbHp4ANzMrVWWTKfbAJGjmgtck9v8.89uK-6EFQ79Ct6k5PVPMmi4EvwdOx6cYca141o4hQHE&dib_tag=se&keywords=Samsung+Galaxy+A16&qid=1795032044&sbo=GW1QB%2BmqAsHTPf1jTZRSDA%3D%3D&sr=8-3#customerReviews",
  "Shipping_free": "",
  "Shipping_price": " to get FREE delivery ",
  "Site": "Amazon",
  "Stars": "3.7 out of 5 stars"
}
```

Example 2

```json
{
  "ASIN": "B0H82XM1S2",
  "Current_price": "$1,035.00",
  "Current_progress": "\n            \n                1-16 of 152 results for \"iPhone 17 256GB unlocked\"\n            \n        ",
  "Current_time": "2026-11-18 16:38:12.499",
  "Delivery": "Nov 20 - 24",
  "Delivery_raw": "FREE delivery Nov 20 - 24\nOr fastest delivery Fri, Nov 20\nOnly 3 left in stock - order soon.",
  "Image_link": "https://m.media-amazon.com/images/I/714ml-6grWL._AC_UY218_.jpg",
  "In_stock": "Only 3 left in stock - order soon.",
  "Is_sponsored": "",
  "Keyword": "iPhone 17 256GB unlocked",
  "Organic_rank": "15",
  "Original_price": "$1,099.00",
  "Page_URL": "https://www.amazon.com/s?k=iPhone+17+256GB+unlocked&ref=nb_sb_noss",
  "Product_URL": "https://www.amazon.com/Google-Pixel-Pro-Smartphone-Intelligence/dp/B0H82XM1S2/ref=sr_1_15?dib=eyJ2IjoiMSJ9.B2IBL7p1GMgpf4b2wquOhiPsDJMBnTUgY0Jqz_b4tzLVMKVlZhZyf83OBKtim59yBJdKzZTchJxPWz8BJXu7QVM76M4qaAbY1w7m-PH2kYNig9gVZptnZsPAJjcENIC2gHiu9w_1176RY0BLyVDj-yyVk3zDOMnVDiXhcUAjTxfNnKhGxhYaaN6z0USckVq1y2lcm8sLtXlTUroG5DftuSpcPIywZLPL1zh0Va8LpkY.sRPa9GMEoKkMEZUlL315p1mxbfygV6FKcnjxxNP9wZA&dib_tag=se&keywords=iPhone+17+256GB+unlocked&qid=1795019861&sr=8-15",
  "Product_URL_clean": "https://www.amazon.com/dp/B0H82XM1S2",
  "Product_name": "Pixel 11 Pro - Unlocked Smartphone, Gemini - 256 GB - Olive",
  "Rating_count": "(187) ",
  "Recent_purchase": "300+ bought in past month",
  "Result_index": "21",
  "Result_position": "19",
  "Review_page": "https://www.amazon.com/Google-Pixel-Pro-Smartphone-Intelligence/dp/B0H82XM1S2/ref=sr_1_15?dib=eyJ2IjoiMSJ9.B2IBL7p1GMgpf4b2wquOhiPsDJMBnTUgY0Jqz_b4tzLVMKVlZhZyf83OBKtim59yBJdKzZTchJxPWz8BJXu7QVM76M4qaAbY1w7m-PH2kYNig9gVZptnZsPAJjcENIC2gHiu9w_1176RY0BLyVDj-yyVk3zDOMnVDiXhcUAjTxfNnKhGxhYaaN6z0USckVq1y2lcm8sLtXlTUroG5DftuSpcPIywZLPL1zh0Va8LpkY.sRPa9GMEoKkMEZUlL315p1mxbfygV6FKcnjxxNP9wZA&dib_tag=se&keywords=iPhone+17+256GB+unlocked&qid=1795019861&sr=8-15#customerReviews",
  "Shipping_free": "",
  "Shipping_price": "FREE delivery ",
  "Site": "Amazon",
  "Stars": "4.4 out of 5 stars"
}
```

Example 3

```json
{
  "ASIN": "B09RG5RZ9Z",
  "Current_price": "$409.00",
  "Current_progress": "\n            \n                \n                    \n                        \n                            \n\n\n\n\n\n\n    \n        \n            \n                \n                \n                \n                \n            \n        \n    \n\n\n                        \n                        \n                            \n                                1-48 of over 10,000 results for \"iPhone\"\n                            \n                        \n                    \n                \n                \n            \n        ",
  "Current_time": "2026-11-18 10:23:24.171",
  "Delivery": "",
  "Delivery_raw": "",
  "Image_link": "https://m.media-amazon.com/images/I/41FOFc3ik5L._AC_UL320_.jpg",
  "In_stock": "",
  "Is_sponsored": "",
  "Keyword": "iPhone",
  "Organic_rank": "4",
  "Original_price": "",
  "Page_URL": "https://www.amazon.com.au/s?k=iPhone&ref=nb_sb_noss",
  "Product_URL": "https://www.amazon.com.au/Apple-iPhone-13-128GB-Midnight/dp/B09RG5RZ9Z/ref=sr_1_4?dib=eyJ2IjoiMSJ9.QQXy-80BXZchZ_MZfG2aCzxd_OWFIkAYxyjA4PZ7RTxWINBhElcUPMxsgiANgdytej3hTCGJG8HfnA_hV-WPC2KxzV1W_OaxvGYle5ysoWC-1HwbycFwwmcRCRydy1sKiVQW220GvhapOmczVtipbKJcZAw2-kYJKh69OQNj4Lonpl3OcLFlYMgco5eJ3mkca8mBkcMGFU2jPNwyIGbJ4Lwqm62n6A9bbBbcPhf2IHMwWV_wyA-4pqMNawV3HDsX-TH9RGPYCbve3H-9u5k2xB7d_Jodx-mP4QTGqh49IsY.7EbICm8OMib1-Toj2STZiz3lXSxD633hApUgIgnIMLE&dib_tag=se&keywords=iPhone&qid=1794997393&sbo=yd%2B4FtmUXjiCsaJboYig%2BA%3D%3D&sr=8-4",
  "Product_URL_clean": "https://www.amazon.com.au/dp/B09RG5RZ9Z",
  "Product_name": "iPhone 13 128GB (Renewed)",
  "Rating_count": "(154) ",
  "Recent_purchase": "50+ bought in past month",
  "Result_index": "6",
  "Result_position": "4",
  "Review_page": "https://www.amazon.com.au/Apple-iPhone-13-128GB-Midnight/dp/B09RG5RZ9Z/ref=sr_1_4?dib=eyJ2IjoiMSJ9.QQXy-80BXZchZ_MZfG2aCzxd_OWFIkAYxyjA4PZ7RTxWINBhElcUPMxsgiANgdytej3hTCGJG8HfnA_hV-WPC2KxzV1W_OaxvGYle5ysoWC-1HwbycFwwmcRCRydy1sKiVQW220GvhapOmczVtipbKJcZAw2-kYJKh69OQNj4Lonpl3OcLFlYMgco5eJ3mkca8mBkcMGFU2jPNwyIGbJ4Lwqm62n6A9bbBbcPhf2IHMwWV_wyA-4pqMNawV3HDsX-TH9RGPYCbve3H-9u5k2xB7d_Jodx-mP4QTGqh49IsY.7EbICm8OMib1-Toj2STZiz3lXSxD633hApUgIgnIMLE&dib_tag=se&keywords=iPhone&qid=1794997393&sbo=yd%2B4FtmUXjiCsaJboYig%2BA%3D%3D&sr=8-4#customerReviews",
  "Shipping_free": "",
  "Shipping_price": "",
  "Site": "Amazon.com.au",
  "Stars": "3.8 out of 5 stars"
}
```

Example 4

```json
{
  "ASIN": "B0HKNCWVB5",
  "Current_price": "$89.99",
  "Current_progress": "\n            \n                1-16 of over 7,000 results for \"iPhone Duo\"\n            \n        ",
  "Current_time": "2026-11-18 08:23:34.735",
  "Delivery": "Mon, Nov 23",
  "Delivery_raw": "FREE delivery Mon, Nov 23",
  "Image_link": "https://m.media-amazon.com/images/I/71wBO3LQj5L._AC_UY218_.jpg",
  "In_stock": "",
  "Is_sponsored": "",
  "Keyword": "iPhone Duo",
  "Organic_rank": "5",
  "Original_price": "$99.99",
  "Page_URL": "https://www.amazon.com/s?k=iPhone+Duo&ref=nb_sb_noss",
  "Product_URL": "https://www.amazon.com/SUPCASE-Full-Body-Mil-Grade-Protection-Anti-Slip/dp/B0HKNCWVB5/ref=sr_1_5?dib=eyJ2IjoiMSJ9.lAMRLxWo4ojj4qjZqXb51Phen-YowLted4t-n_a3-BKn28SgQdd6-6DSiBT56U3W-YKG4-xlsY_6UzEzAyIs7O-xjKs3SXtp6GkfPcADkhNyw0_X2zM2OlcHg8dtdBBoOLQjq7m2iQ9emKmlXUT3ozJ0KBAHgMi7dFupVZMp7kY-NT7k1svCZZpDe-mDJGmbYo0pCPWzETJbalqHBsLTcUTe6XPKJ0FT5h5aYdBWgf0.LjBB7hv-J7F3VBBeIP2kSSGgQMRlXy9gpjui4qdnJZI&dib_tag=se&keywords=iPhone+Duo&qid=1794990204&sr=8-5",
  "Product_URL_clean": "https://www.amazon.com/dp/B0HKNCWVB5",
  "Product_name": "for iPhone Duo Case with 360 Magnetic Stand, Frost Black, Full-Body",
  "Rating_count": "(406) ",
  "Recent_purchase": "3K+ bought in past month",
  "Result_index": "8",
  "Result_position": "6",
  "Review_page": "https://www.amazon.com/SUPCASE-Full-Body-Mil-Grade-Protection-Anti-Slip/dp/B0HKNCWVB5/ref=sr_1_5?dib=eyJ2IjoiMSJ9.lAMRLxWo4ojj4qjZqXb51Phen-YowLted4t-n_a3-BKn28SgQdd6-6DSiBT56U3W-YKG4-xlsY_6UzEzAyIs7O-xjKs3SXtp6GkfPcADkhNyw0_X2zM2OlcHg8dtdBBoOLQjq7m2iQ9emKmlXUT3ozJ0KBAHgMi7dFupVZMp7kY-NT7k1svCZZpDe-mDJGmbYo0pCPWzETJbalqHBsLTcUTe6XPKJ0FT5h5aYdBWgf0.LjBB7hv-J7F3VBBeIP2kSSGgQMRlXy9gpjui4qdnJZI&dib_tag=se&keywords=iPhone+Duo&qid=1794990204&sr=8-5#customerReviews",
  "Shipping_free": "",
  "Shipping_price": "FREE delivery ",
  "Site": "Amazon",
  "Stars": "4.4 out of 5 stars"
}
```

Example 5

```json
{
  "ASIN": "B0H1265SZQ",
  "Current_price": "$1,749.99",
  "Current_progress": "\n            \n                1-16 of over 7,000 results for \"iPhone Duo\"\n            \n        ",
  "Current_time": "2026-11-18 08:08:57.050",
  "Delivery": "Mon, Nov 23",
  "Delivery_raw": "FREE delivery Mon, Nov 23",
  "Image_link": "https://m.media-amazon.com/images/I/51PFW8uARvL._AC_UY218_.jpg",
  "In_stock": "",
  "Is_sponsored": "",
  "Keyword": "iPhone Duo",
  "Organic_rank": "2",
  "Original_price": "$2,099.99",
  "Page_URL": "https://www.amazon.com/s?k=iPhone+Duo&ref=nb_sb_noss",
  "Product_URL": "https://www.amazon.com/Samsung-Smartphone-Content-Native-Customized-Processor/dp/B0H1265SZQ/ref=sr_1_2?dib=eyJ2IjoiMSJ9.zc1NRRQnk4yvEfiPvl8FBbK4nTDBOXv4iaR-Irtbq-_ocXkI5DN_7rkywhv0MhtAxtoMFOFKjtz94WempOTq9kDvnrsTBI1u20Q6lNP4PB3cbS-ZENEhEZcVH7MYdJ7seR5fmXeOPO_pS3XMNE4E-Hxb05fHug9nlfgmR911agnVyXTR2thKoRFbi8uvMySVzVVaEiVhFECvxwL2QtJNWxcVbQ3XzCjG7HL3qrwT1JE.8g8bJ6Toxpcew1CEyiwBEzy4ZfX0B7GO-kSPBFxMNpY&dib_tag=se&keywords=iPhone+Duo&qid=1794989326&sr=8-2",
  "Product_URL_clean": "https://www.amazon.com/dp/B0H1265SZQ",
  "Product_name": "Galaxy Z Fold8 Unlocked Android Smartphone, 512GB Graphite",
  "Rating_count": "(114) ",
  "Recent_purchase": "300+ bought in past month",
  "Result_index": "4",
  "Result_position": "3",
  "Review_page": "https://www.amazon.com/Samsung-Smartphone-Content-Native-Customized-Processor/dp/B0H1265SZQ/ref=sr_1_2?dib=eyJ2IjoiMSJ9.zc1NRRQnk4yvEfiPvl8FBbK4nTDBOXv4iaR-Irtbq-_ocXkI5DN_7rkywhv0MhtAxtoMFOFKjtz94WempOTq9kDvnrsTBI1u20Q6lNP4PB3cbS-ZENEhEZcVH7MYdJ7seR5fmXeOPO_pS3XMNE4E-Hxb05fHug9nlfgmR911agnVyXTR2thKoRFbi8uvMySVzVVaEiVhFECvxwL2QtJNWxcVbQ3XzCjG7HL3qrwT1JE.8g8bJ6Toxpcew1CEyiwBEzy4ZfX0B7GO-kSPBFxMNpY&dib_tag=se&keywords=iPhone+Duo&qid=1794989326&sr=8-2#customerReviews",
  "Shipping_free": "",
  "Shipping_price": "FREE delivery ",
  "Site": "Amazon",
  "Stars": "4.6 out of 5 stars"
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "amazon-product-scraper-by-keywords",
  "taskName": "Amazon Scraper",
  "parameters": "{\"confirm_your_site\":[\"https://www.amazon.com/\"],\"keywords\":[\"Samsung Galaxy A16\",\"iPhone 16 128GB unlocked\",\"Samsung Galaxy Watch8 40mm\",\"PlayStation 5 Slim Digital Edition\",\"Nintendo Switch 2\"],\"number_of_Pages_to_Scrape\":1,\"site\":\"United States\"}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"confirm_your_site\":[\"https://www.amazon.com/\"],\"keywords\":[\"Samsung Galaxy A16\",\"iPhone 16 128GB unlocked\",\"Samsung Galaxy Watch8 40mm\",\"PlayStation 5 Slim Digital Edition\",\"Nintendo Switch 2\"],\"number_of_Pages_to_Scrape\":1,\"site\":\"United States\"}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "amazon-product-scraper-by-keywords",
        "taskName": "Amazon Scraper",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "amazon-product-scraper-by-keywords",
  "taskName": "Amazon Scraper",
  "parameters": "{\"confirm_your_site\":[\"https://www.amazon.com/\"],\"keywords\":[\"Samsung Galaxy A16\",\"iPhone 16 128GB unlocked\",\"Samsung Galaxy Watch8 40mm\",\"PlayStation 5 Slim Digital Edition\",\"Nintendo Switch 2\"],\"number_of_Pages_to_Scrape\":1,\"site\":\"United States\"}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `amazon-product-scraper-by-keywords`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/amazon-product-scraper-by-keywords.json)
- [Manifest](https://www.octoparse.com/templates/amazon-product-scraper-by-keywords-manifest.json)
