Best Buy Remix Forums

API Forum

RSS Feed

Matching details' fiels

  1. Hi,
    When doing a query for computers, with the parameter show=all, I get the details, that are for example, like this:
    "details": [
    {
    "name": "Processor Brand",
    "value": "Intel®"
    },
    {
    "name": "Processor",
    "value": "Intel® Pentium® Dual-Core"
    },
    {
    "name": "Processor Speed",
    "value": "2.2GHz"
    },
    {
    "name": "Display Type",
    "value": "WXGA TFT-LCD high-definition with Acer CrystalBrite technology"
    },
    and so on...

    How can I do a query to get only the computers that have the Processor Speed = 2.2GHz? I am able to do this, using:
    http://api.remix.bestbuy.com/v1/products(categoryPath.name=Computers&details.value=2.2GHz)?show=all&format=json&apiKey=

    This, however, doesn't guarantee that the 2.2GHz is related to the attribute Processor Speed and this means that if a product has any value field in the details that is equal to 2.2GHz, this product will be returned for me. How can I link the 2.2GHz to Processor Speed?

    Thanks
    Eduardo

  2. Bryan Brandau - Remix Team1 month ago

    You can do something to the following:
    http://api.remix.bestbuy.com/v1/products%28categoryPath.name=Computers&details.detail.name=Processor%20Speed&details.detail.value=%222.2GHz%22%29?show=sku,name,details&apiKey=

  3. EduardoK lein1 month ago

    Thanks for your answer Bryan.
    Maybe I wasn't clear and my example was a bad one. Let's say I only want computers that have TV Tuner, so according to your reply, if I understood correctly, I should do:
    http://api.remix.bestbuy.com/v1/products(categoryPath.name=Computers&details.name=TV Tuner&details.value=yes)?format=json&show=sku,name,details&apiKey=
    This doesn't work, as I tried to explain in the first post.
    This query will take every computer that has a detail field called "TV Tuner", which will be probably every computer, and every computer that has one detail.value equals to yes, even if it's not the TV Tuner.
    And effectively, the first result I get is the the following details:
    {
    "name": "TV Tuner",
    "value": "No"
    },
    {
    "name": "Compatibility",
    "value": "PC and Mac"
    },
    {
    "name": "VGA Input",
    "value": "Yes"
    },
    As you can see, it doesn't have a TV Tuner, buy it does have a VGA Input, so it comes back as part of the result of my query.
    How can I get only the computers that have a TV Tuner?
    Thanks
    Eduardo

  4. Joe Zwack - Remix Team1 month ago

    So, we have the feature on our list to add so you can query by multiple attributes. However it's not going to happen quickly.

    You could consume the data on your end (through the archive, possibly) and filter it out that way.