druv5319 / Sneaks-API

A StockX, FlightClub, Goat, and Stadium Goods API all in one. This sneaker API allows users to search sneakers and track and compare prices while providing additional info such as product links and images
451 stars 119 forks source link

Air Force 1 has different SKU StockX than on Goat #31

Open aryan-chakrabarti opened 2 years ago

aryan-chakrabarti commented 2 years ago

I am trying to use the API to retrieve sizes for "Nike Air Force 1 Low '07 White" on both Goat and StockX. The SKU on StockX is 315122-111/CW2288-111, but the SKU on Goat is only CW2288-111. Therefore, when I run the getProductPrices method I need to use the StockX SKU and as a result the Goat information does not show up. How can I fix this? Here is my output:

{ lowestResellPrice: { stockX: 96 }, resellPrices: { stockX: { '5': 146, '6': 101, '7': 105, '8': 109, '9': 114, '10': 113, '11': 113, '12': 116, '13': 116, '14': 96, '15': 102, '16': 135, '17': 102, '18': 101, '3.5': 999999, '6.5': 108, '7.5': 112, '8.5': 113, '9.5': 113, '10.5': 112, '11.5': 116, '12.5': 118 } }, imageLinks: [], _id: 62312d74e1337662c057a166, shoeName: "Nike Air Force 1 Low '07 White", brand: 'Nike', silhoutte: "Nike Air Force 1 Low '07", styleID: '315122-111/CW2288-111', make: "Nike Air Force 1 Low '07", colorway: 'White/White', retailPrice: 90, thumbnail: 'https://images.stockx.com/images/Nike-Air-Force-1-Low-White-07_V2-Product.jpg?fit=fill&bg=FFFFFF&w=700&h=500&fm=webp&auto=compress&trim=color&q=90&dpr=2&updated_at=1631122839', releaseDate: '2007-11-24', description: 'The Nike Air Force 1 Low White ‘07 features an all-white leather upper with a perforated toe box and Swoosh overlays. A Nike heel embroidery and white sole completes the design.\n' + '
\n' + '
\n' + 'The Nike Air Force 1 Low White ‘07 originally released in 2007, but since it is an essential colorway to the brand, it consistently restocks.', urlKey: 'nike-air-force-1-low-white-07', resellLinks: { stockX: 'https://stockx.com/nike-air-force-1-low-white-07' } }