Socket
Socket
Sign inDemoInstall

@scaleleap/amazon-marketplaces

Package Overview
Dependencies
0
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @scaleleap/amazon-marketplaces

A collection of Amazon Marketplace data objects.


Version published
Weekly downloads
5.6K
increased by35.59%
Maintainers
1
Install size
55.9 kB
Created
Weekly downloads
 

Changelog

Source

1.1.1 (2019-12-09)

Bug Fixes

  • removes windows from tests (250b6bd)

Readme

Source

Amazon Marketplace Logo

@scaleleap/amazon-marketplaces

A collection of Amazon Marketplace data objects.

This package is written in TypeScript and is fully typed.


This package combines data about Amazon Marketplace (the consumer side of Amazon) into a structured class.

Available Marketplace Data

  • ID (e.g. A2EUQ1WTGCTBG2)
  • Country code (ISO 3166-1) (e.g. CA)
  • Currency code (ISO 4217) (e.g. CAD)
  • Name (country name) (e.g. Canada)
  • URI (e.g. https://www.amazon.ca/)
  • Amazon Marketplace Web Service (Amazon MWS) endpoint URI
  • Amazon Advertising
    • API endpoint URI
    • Sponsored products
      • Minimum bid
      • Maximum bid
    • Sponsored Brands
      • Minimum bid
      • Maximum bid

Code Demo

import { amazonMarketplaces } from '@scaleleap/amazon-marketplaces'

console.log(
  'Amazon Marketplace %s has currency %s.',
  amazonMarketplaces.CA.name,
  amazonMarketplaces.CA.currency
)

Full Data Object Example

{
  "countryCode": "CA",
  "currency": "CAD",
  "id": "A2EUQ1WTGCTBG2",
  "name": "Canada",
  "uri": "https://www.amazon.ca",
  "webServiceUri": "https://mws.amazonservices.ca",
  "advertising": {
    "uri": "https://advertising-api.amazon.com",
    "bids": {
      "sponsoredBrands": {
        "min": 10,
        "max": 4900
      },
      "sponsoredProducts": {
        "min": 2,
        "max": 100000
      }
    }
  }
}

Download & Installation

$ npm i -s @scaleleap/amazon-marketplaces

Contributing

If you find any other data that can be added, please open an issue and let us know.

Note that this repository uses Conventional Commit style commit messages.

If a new marketplace is added, this should be marked as breaking change and increase the major version, because others may rely on iterating over the available marketplaces.

Original Data Sources

Authors or Acknowledgments

License

This project is licensed under the MIT License.

Keywords

FAQs

Last updated on 09 Dec 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc