A NodeJS API for supremenewyork.com
This Supreme API is a rewritten version of the original Supreme API made by dzt, available here. The original API has not been updated for 5 years now so I thought I would maintain it on my own.
npm install supreme-api-rewritten --save
Check out the docs!
const supreme = require('supreme-api-rewritten');
supreme.getItems('all', (items, err) => {
if (err) {
console.log(err);
return err;
}
console.log(items);
});
supreme.getItem('http://www.supremenewyork.com/shop/jackets/fman5r0xy/aw5dopam2', (item, err) => {
if (err) {
console.log(err);
return err;
}
console.log(item);
});
// check every 5 seconds
supreme.watchAllItems(5, 'shoes', (items, err) => {
if (err) {
console.log(err);
return err;
}
console.log(items);
});
// Cancel Item watch
supreme.stopWatchingAllItems((status, err) => {
if (err) {
console.log(err);
return err;
}
console.log(status);
});
// Look for a new item every 5 seconds
supreme.onNewItem(5, (product, err) => {
if (err) {
console.log(err);
return err;
}
console.log('New Release: ' + item.name);
});
// Find items based on specific keywords
const category = 'jackets';
const keywords = "UNDERCOVER";
const style = 'Burgundy';
supreme.seek(category, keywords, style, (product, err) => {
if (err) {
console.log(err);
return err;
}
console.log(product);
console.log(product.title); // example => Supremeยฎ/UNDERCOVER Wool Overcoat
});
- Check for items under desired category
- Check for item under desired url
- Seek for items on desired category page with specific keywords.
- Seek for a new item every x seconds.
- Seek for changes in items on desired category page every x seconds.
- Cancel seek for changes in items
- Watch and seek for changes on individual items.
- more coming soon!
Can be found here
Want to make a contribution? Fork the repo, add your changes, and submit a pull request. Any type of contributions (ideas, bug fixes, fixing typos, etc.) will be appreciated!
supreme-api-rewritten is licensed under MIT License.