Web Scraping Amazon with PHP

There are two ways to get the price of any product listed on the Amazon website. You can either use the official Amazon API or you can perform web scraping.

If you need one-on-one support with our Google Scripts and Google add-ons, please book a support request.

Scraping essentially means that your script will download the web page from Amazon, parse the HTML and extract the price. This method is preferred when the Product Advertising API doesn’t have the prices for a particular product or when the price offered by the API is different from what is available on the Amazon website.

All you have to do is specify the 10 digital Amazon ISIN code for a product and the PHP script will get the price for you.