Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 741 Bytes

readme.md

File metadata and controls

23 lines (16 loc) · 741 Bytes

Amazon Data Scraper API with ScraperAPI

Video Demo: (How to use) : https://youtu.be/A6u_Wg5pgcE

Learned from JavaScript Mastery: https://youtu.be/be9sHQ7xqo0

Steps

  • Initialize package.json npm init -y

  • change "test" script to "start": "node index.js" script

  • install dependencies express request request-promise nodemon

  • add "dev": "nodemon index.js" script for nodemon

  • Signup and make account on "scraperapi"

  • copy api key and paste in apiKey variable

  • setup baseUrl and pass the api key

  • create route for getting product details

  • use request to fetch details of the product by passing the productId

  • return the response

  • parse the response