Open ben-yeung opened 3 years ago
If a solution is found this would allow support for FLX footsites such as Champs, Footlocker, Footaction, etc as they all run on similar structures for product pages.
One interesting find so far is that FLX product IDs for Nikes and Jordans are missing the first character but the rest is identical. Most common instances are 'A' and 'C' needed to match style codes returned by StockX
Adidas product IDs seem to be consistent with the 6 character style code.
Going off of this find one approach would be searching via shoe title then iterating through the first few results seeing if the style ids contain the id found on site. For Nike and Jordan identical models rely on the last 3 digits to determine colorway which could be useful in detecting the correct colorway.
The main problem is that these sites do not provide the style ids of specific shoe colorways consistently. These sites have their own product ids likely used for their own inventory sorting. The issue is that these ids do not always align with the style ids found on StockX
Current workaround strategy would be calling the api request with the query being Shoe Model + Colorway Name. This approach yields inconsistent results as shoes may have similar colorways (Black/Black/Black versus Black/White/Black sometimes swapped first few shoe results when returned by StockX api call or nothing is returned at all)