Member-only story
Amazon Scraping with Python: Using the Product Advertising API
Amazon is among the biggest eCommerce platforms in the world, thereby making it a goldmine for data on products. However, its website can’t be scrapped directly due to possible legal issues;
This is against the Amazon Terms of Service. Therefore, in this article we will be discussing how to perform legal Amazon product data scraping using the official Amazon Product Advertising API.
Scraping Amazon with the Product Advertising API
Amazon provides an official API, the Amazon Product Advertising API, to fetch information about products, pricing, reviews, and much more programmatically. This would be a legal and guaranteed way of extracting data from Amazon while abiding by its Terms of Service.
Getting Started with Amazon Product Advertising API
Before we dive into the code, make sure you have the following:
- Amazon Associate Account: Sign up at .
- AWS Access Key & Secret Key: Generate these from the .
- Amazon Associate Tag: This is required for generating affiliate links.