Best Buy API Features: Facets

Julie Muraski
Best Buy Developers
1 min readMar 16, 2015

--

Facets allows Best Buy API users to aggregate product information by any attribute — color, size, manufacturer and so on. Users can also limit the number of results returned, in case you’re looking for only the top five or ten items within a facet.

Example

If you’re looking for the number of iPhone models Best Buy carries in black, query by name iPhone, category of cell phones with plans categoryPath.id=pcmcat209400050001 and facet of color. As of the time of this writing, we carry 11 different types of black iPhones.

Anatomy of a Request baseURL : http://api.remix.bestbuy.com/v1/ productQuery : products((name=iphone*)&(categoryPath.id=pcmcat209400050001)) APIKey : ?apiKey=YourAPIKey showOptions : &show=name,sku,color facet : &facet=color,15 responseFormat : &format=json

Full URL

fullURL : http://api.remix.bestbuy.com/v1/products((name=iphone*)&(categoryPath.id=pcmcat209400050001))?apiKey=YourAPIKey&format=json&pageSize=100&page=2&show=name,sku,color&facet=color,15

--

--