Skip to content
Advertisement

How to Fetch Amazon Product Data By Php Without Api

I want to fetch data from the amazon search result and product details. I Found some source to get data by api . But i am searching for get product information without api . As example : https://www.amazon.com/Apple-MWP22AM-A-AirPods-Pro/dp/B07ZPC9QD4 this is an amazon product links. I want fetch this product data. I also try by cUrl/file get contents but failed. Please someone can help ?

Here Code Example i try, But Its Required Capcha

JavaScript

Advertisement

Answer

curl_setopt($curl, CURLOPT_USERAGENT, “Mozilla/5.0 (Windows; U; Windows NT 10.10; labnol;) ctrlq.org”);

why are you lying to them? you’re not a web browser, and Amazon doesn’t seem to block people who aren’t lying about it..

this:

JavaScript

prints:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement