Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bizon/amazon-ids

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bizon/amazon-ids

Collection of Amazon identifiers

  • 2.11.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
143
decreased by-74.51%
Maintainers
1
Weekly downloads
 
Created
Source

amazon-ids

Collection of Amazon identifiers

npm version XO code style

Getting started

npm install --save @bizon/amazon-ids

API

marketplaces

const {marketplaces} = require('@bizon/amazon-ids')

for (const marketplace of marketplaces) {
  // console.log(marketplace)
}

getMarketplaceById(id)

const {getMarketplaceById} = require('@bizon/amazon-ids')

getMarketplaceById('ATVPDKIKX0DER')

/*
{
  code: 'us',
  id: 'ATVPDKIKX0DER',
  name: 'United States',
  region: 'na',
  domain: 'amazon.com',
  mwsDomain: 'mws.amazonservices.com',
  advertisingApiDomain: 'advertising-api.amazon.com',
  imagesDomain: 'images-na.ssl-images-amazon.com',
  vendorId: 'ATVPDKIKX0DER',
  sellerCentralDomain: 'sellercentral.amazon.com',
  vendorCentralDomain: 'vendorcentral.amazon.com',
  currencyCode: 'USD'
}
*/

It’s also possible to find multi-channel marketplaces:

getMarketplaceById('A2ZV50J4W1RKNI')

/*
{
  code: 'us-non-amazon',
  id: 'A2ZV50J4W1RKNI',
  name: 'United States - Non-Amazon',
  region: 'na',
  currencyCode: 'USD'
}
*/

getMarketplaceByCode(code)

const {getMarketplaceByCode} = require('@bizon/amazon-ids')

getMarketplaceByCode('DE')

/*
{
  code: 'de',
  id: 'A1PA6795UKMFR9',
  name: 'Germany',
  region: 'eu',
  domain: 'amazon.de',
  mwsDomain: 'mws-eu.amazonservices.com',
  advertisingApiDomain: 'advertising-api-eu.amazon.com',
  imagesDomain: 'images-eu.ssl-images-amazon.com',
  vendorId: 'A3JWKAKR8XB7XF',
  sellerCentralDomain: 'sellercentral-europe.amazon.com',
  vendorCentralDomain: 'vendorcentral.amazon.de',
  currencyCode: 'EUR'
}
*/

getMarketplaceByDomain(domain)

const {getMarketplaceByDomain} = require('@bizon/amazon-ids')

getMarketplaceByDomain('Amazon.com.mx')

/*
{
  code: 'mx',
  id: 'A1AM78C64UM0Y8',
  name: 'Mexico',
  region: 'na',
  domain: 'amazon.com.mx',
  mwsDomain: 'mws.amazonservices.com.mx',
  imagesDomain: 'images-na.ssl-images-amazon.com',
  vendorId: 'AVDBXBAVVSXLQ',
  sellerCentralDomain: 'sellercentral.amazon.com.mx',
  vendorCentralDomain: 'vendorcentral.amazon.com.mx',
  currencyCode: 'MXN'
}
*/

getMarketplacesByMwsDomain(domain)

const {getMarketplacesByMwsDomain} = require('@bizon/amazon-ids')

getMarketplacesByMwsDomain('mws.amazonservices.com')

/*
[
  {
    code: 'us',
    id: 'ATVPDKIKX0DER',
    name: 'United States',
    region: 'na',
    domain: 'amazon.com',
    …
  },
  {
    code: 'br',
    id: 'A2Q3Y263D00KWC',
    name: 'Brazil',
    region: 'na',
    domain: 'amazon.com.br',
    …
  }
]
*/

getMarketplacesByMwsRegion(mwsRegion)

MWS Regions is a concept introduced in @bizon/mws-sdk – see its readme to learn more about it.

const {getMarketplacesByMwsRegion} = require('@bizon/amazon-ids')

getMarketplacesByMwsRegion('na')

/*
[
  {
    code: 'us',
    id: 'ATVPDKIKX0DER',
    name: 'United States',
    region: 'na',
    domain: 'amazon.com',
    …
  },
  {
    code: 'br',
    id: 'A2Q3Y263D00KWC',
    name: 'Brazil',
    region: 'na',
    domain: 'amazon.com.br',
    …
  }
]
*/

License

MIT

Miscellaneous

    ╚⊙ ⊙╝
  ╚═(███)═╝
 ╚═(███)═╝
╚═(███)═╝
 ╚═(███)═╝
  ╚═(███)═╝
   ╚═(███)═╝

Keywords

FAQs

Package last updated on 13 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc