npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-icecat

v1.1.2

Published

Icecat API - Find product description with EAN, UPC or GTIN-13.

Downloads

15

Readme

Icecat API

Version License Build Status

With this package you can read the worldwide product information data from Icecat. This product information comes from editors like participating manufacturers. You can use this package for comparison websites, online shopping directories or enterprise resource planning systems.

Getting started

1) Icecat account

To create a Icecat account, go to the Icecat registration page.

2) Installation

Install the Icecat Node.js package by running the following command within your project's root directory:

npm install icecat --save

3) Basic usage

const icecat = require('icecat');

const icecatClient = new icecat('username', 'password');

// Language: en, GTIN: 4948570114344 (GTIN: EAN, UPC or GTIN-13/JAN) 
icecatClient.openCatalog.getProduct('EN', '4948570114344').then(function (product) {
    console.log('Description: ' + product.getLongDescription());
    
    const productImages = product.getImages();

    console.log('Product images:');
    for (let i in productImages) {
        console.log(productImages[i].TumbImg);
    }
    
}).catch(function (reason) {
    console.error('Error or timeout', reason);
});

Demo: https://runkit.com/greencore/icecat-demo

openCatalog

getProduct(Language, GTIN)

Arguments:

Returns: productObject

getReturnCode

  • returnCode.FAIL (-1)
  • returnCode.SUCCESS (1)

getName returns Product Name {string} Example: X4071UHSU-B1

getTitle returns Product Title {string} Example: iiyama X4071UHSU-B1 39.5" LED 4K Ultra HD Black public display

getReleaseDate returns Product Release Date YYYY-MM-DD {string} Example: 2015-10-04

getLongDescription returns {string}

getShortDescription returns {string}

getProductInfoPDFurl returns {string} Example: http://pdfs.icecat.biz/pdf/48068167-5427.pdf

getProductManualPDFurl returns {string}

getProductUrl returns {string}

getSupplier returns {string} Example: iiyama

getCategory returns {string} Example: public displays

getEan returns {string} Example: 4948570114344

getImages returns {array} Example:

[ { IsMain: 'Y',
    HighImg: 'http://images.icecat.biz/img/gallery/29900045_1198.jpg',
    LowImg: 'http://images.icecat.biz/img/gallery_lows/29900045_1198.jpg',
    TumbImg: 'http://images.icecat.biz/img/gallery_thumbs/29900045_1198.jpg' },
  { IsMain: undefined,
    HighImg: 'http://images.icecat.biz/img/gallery/29900045_3889.jpg',
    LowImg: 'http://images.icecat.biz/img/gallery_lows/29900045_3889.jpg',
    TumbImg: 'http://images.icecat.biz/img/gallery_thumbs/29900045_3889.jpg' },
  { IsMain: undefined,
    HighImg: 'http://images.icecat.biz/img/gallery/29900045_6765.jpg',
    LowImg: 'http://images.icecat.biz/img/gallery_lows/29900045_6765.jpg',
    TumbImg: 'http://images.icecat.biz/img/gallery_thumbs/29900045_6765.jpg' }]

getSpecifications returns {array}

getMultimediaObjects returns {Array}

About Icecat

| Icecat | Url | |------------------|-------------------------------------------| | services | http://icecat.us/menu/services/index.html | | product info | http://icecat.us/ |

License

MIT License