Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bizon/amazon-ids
Collection of Amazon identifiers
https://github.com/bizon/amazon-ids
amazon javascript marketplaces sellercentral vendorcentral
Last synced: about 1 month ago
JSON representation
Collection of Amazon identifiers
- Host: GitHub
- URL: https://github.com/bizon/amazon-ids
- Owner: bizon
- Created: 2019-07-02T16:44:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T09:34:40.000Z (about 2 months ago)
- Last Synced: 2024-10-29T11:43:50.321Z (about 2 months ago)
- Topics: amazon, javascript, marketplaces, sellercentral, vendorcentral
- Language: TypeScript
- Homepage: https://www.bizon.solutions
- Size: 2.36 MB
- Stars: 12
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# amazon-ids
> Collection of Amazon identifiers
[![npm version](https://badgen.net/npm/v/@bizon/amazon-ids)](https://www.npmjs.com/package/@bizon/amazon-ids)
[![codecov](https://codecov.io/github/bizon/amazon-ids/graph/badge.svg?token=U6I6anuPfw)](https://codecov.io/github/bizon/amazon-ids)
[![XO code style](https://badgen.net/badge/code%20style/XO/cyan)](https://github.com/xojs/xo)[](https://www.bizon.solutions?utm_source=github&utm_medium=readme&utm_campaign=amazon-ids)
## CI
[![Tests](https://github.com/bizon/amazon-ids/actions/workflows/tests.yml/badge.svg)](https://github.com/bizon/amazon-ids/actions/workflows/tests.yml)
[![Release](https://github.com/bizon/amazon-ids/actions/workflows/release.yml/badge.svg)](https://github.com/bizon/amazon-ids/actions/workflows/release.yml)## Getting started
```bash
npm install --save @bizon/amazon-ids
```## API
### `marketplaces`
```js
const { marketplaces } = require("@bizon/amazon-ids");for (const marketplace of marketplaces) {
// console.log(marketplace)
}
```### `getMarketplaceById(id)`
```js
const { getMarketplaceById } = require("@bizon/amazon-ids");getMarketplaceById("ATVPDKIKX0DER");
/*
{
code: 'us',
id: 'ATVPDKIKX0DER',
name: 'United States',
region: 'na',
domain: 'amazon.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:
```js
getMarketplaceById("A2ZV50J4W1RKNI");/*
{
code: 'us-non-amazon',
id: 'A2ZV50J4W1RKNI',
name: 'United States - Non-Amazon',
region: 'na',
currencyCode: 'USD'
}
*/
```### `getMarketplaceByCode(code)`
```js
const { getMarketplaceByCode } = require("@bizon/amazon-ids");getMarketplaceByCode("DE");
/*
{
code: 'de',
id: 'A1PA6795UKMFR9',
name: 'Germany',
region: 'eu',
domain: 'amazon.de',
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)`
```js
const { getMarketplaceByDomain } = require("@bizon/amazon-ids");getMarketplaceByDomain("Amazon.com.mx");
/*
{
code: 'mx',
id: 'A1AM78C64UM0Y8',
name: 'Mexico',
region: 'na',
domain: 'amazon.com.mx',
imagesDomain: 'images-na.ssl-images-amazon.com',
vendorId: 'AVDBXBAVVSXLQ',
sellerCentralDomain: 'sellercentral.amazon.com.mx',
vendorCentralDomain: 'vendorcentral.amazon.com.mx',
currencyCode: 'MXN'
}
*/
```## License
MIT
## Miscellaneous
```
╚⊙ ⊙╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
```