@skuareinc/stockx-api
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Stock X Api

version download contributions welcome

UnOfficial Stock X Api

Inspiration

This repo was a fork of matthew1232/stockx-api

Features

  • [x] Get Product Details
  • [x] 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: SNEAKER, BOTTOM, UPPER, WATCH, HANDBAG, UNKNOW
  • Product
  • BaseProduct
  • Variant

Licence

MIT

Package Sidebar

Install

npm i @skuareinc/stockx-api

Weekly Downloads

2

Version

1.2.0

License

MIT

Unpacked Size

50 kB

Total Files

41

Last publish

Collaborators

  • valentingauthey