@skuareinc/stockx-api
v1.2.0
Published
Stock X Scrapper
Downloads
4
Maintainers
Readme
Stock X Api
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, UNKNOWProduct
BaseProduct
Variant
Licence
MIT