0.0.0-alpha.4 • Published 4 years ago

amazon-paapi5 v0.0.0-alpha.4

Weekly downloads
12
License
ISC
Repository
github
Last release
4 years ago

Product Advertising API 5.0 SDK for NodeJS

NPM

Version npm

This repository contains the official Product Advertising API 5.0 NodeJS SDK called paapi5-nodejs-sdk that allows you to access the Product Advertising API from your NodeJS app.

Installation

npm install amazon-paapi5 --save
yarn add amazon-paapi5

Getting Started

1) Get Item/s Informations

import ProductAPI from 'amazon-paapi5';
    
const products = ['ASIN1', 'ASIN2']

const api = ProductAPI({
    accessKey: ##AMAZON_ACCESS_KEY##,
    secretKey: ##AMAZON_SECRET_KEY##,
    country: 'Italy',
    partnerTag: 'chebazza0c-21',
    partnerType: 'Associates',
    resources: [
        'Images.Primary.Small',
        'ItemInfo.Title',
        'Offers.Listings.Price',

    ]
});

const result = await api.getItems({ itemIds: products })