1.1.1 • Published 3 years ago

@woogo/stockx-api v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Stock X Api

version download contributions welcome

UnOfficial Stock X Api

Inspiration

This repo was a fork of matthew1232/stockx-api

Features

  • Get Product Details
  • Search Products

Exceptions

You can catch exception below :

  • InvalidInputException
  • InvalidLoginException
  • ForbidenException
  • ItemNotFoundException
  • UnknowException
  • ParsingException

Usage

const stockx = new StockXAPI({
  userAgent: 'MyPreferedUserAgent',
  currencyCode: 'USD',
  countryCode: 'FR',
  proxy: [
    {
      port: 3000,
      host: 'MyPreferedProxy',
    },
  ],
});

const result = await stockx.productDetails('https://stockx.com/fr-fr/reebok-question-mid-packer-shoes-for-player-use-only-lebron');

const search = await stockx.searchProducts('shoes', { limit: 2 });

Interfaces and Enums

  • PRODUCT_TYPE: SNEARKER, BOTTOM, UPPER, WATCH, HANDBAG, UNKNOW
  • Product
  • BaseProduct
  • Variant

Licence

MIT

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago