/get-product-data

Primary LanguageJavaScriptMIT LicenseMIT

get-product-data

NPM Stats

const getProductData = require('get-product-name');

const url = 'http://a.co/d/0oMSrUW ';

async function main() {
  const productData = await getProductData(url);
  console.log(productData);
  // {
  //   name: 'Fire TV Stick with Alexa Voice Remote, streaming media player - Previous Generation',
  //   price: 'Currently unavailable.',
  //   image: 'https://images-na.ssl-images-amazon.com/images/I/61T9QpYb6ZL._AC_SX679_.jpg'
  // }
}

main();

Supported Sites

  • AliExpress
  • Amazon
  • Apple
  • Banggood
  • Bergdorf Goodman
  • Best Buy
  • Bing - Shopping
  • bol.com
  • Christmas Tree Shops & That!
  • eBay
  • Etsy
  • GameStop
  • GOAT
  • Google Shopping
  • The Home Depot
  • IKEA
  • Kitchen & Company
  • Kohl's
  • Lowes
  • Macy's
  • Neiman Marcus
  • Newegg
  • PCPartPicker
  • Steam
  • Target
  • Teespring
  • Walmart
  • Wish
  • Zappos
  • Zazzle

Not Supported Sites

These sites have been considered, but not implemented.

Site Reason
K-Mart, Sears (Same site) Requires complicated series of requests to extract data
Nordstrom Couldn't extract data, please open a PR if you can make it work
ebgames.com.au Couldn't extract data without a twitter proxy. Decided to not implement this to keep complexity in check.

Contributors

Thanks to @NicolaiVdS for adding support for Banggood and bol.com!