GET DEMO Chat

 

 

How to Browse Products by Brand, Category, Store

This is the eighth in a series of “How To” posts that illustrate various ways in which you can use the Indix Product API.

We’ve been following along with fictional developers Christy and Ted as they build features into their ecommerce shopping app.

Christy fell on the couch laughing.

Right as she’d arrived, Ted turned around from the fridge wearing a ketchup-stained “ITERATE OR DIE” t-shirt, two craft beers in hand. Time to celebrate their new comparison shopping feature.

Halfway through his bottle, Ted burst out, “I was thinking… Even though we have some solid search features in the app, what if someone just wants to browse?”

“Yeah, I often like to click around until I stumble on something cool. How do we code that?”

The Indix Product API pivots data on a brand, category, and store level. Depending on the kind of user experience you want to deliver, you can drive the responses in different ways – like a faceted search.

Here’s an example of a search on KitchenAid (brand ID: 1636) electric kettles (category ID= 24701). This is how the results look in the Summary endpoint. If we were to hit the Offers Premium endpoint after this, we would get details on each offer.

To ensure freshness, you would use the lastRecordedIn filter to limit results from the last xx number of days.

bcs

Query: https://api.indix.com/v2/summary/products?countryCode=US&brandId=1636&categoryId=24701&lastRecordedIn=30&app_key=<enter_app_key>

Sample response:

{
  "message": "ok",
  "result": {
    "count": 14,
    "products": [
      {
        "categoryNamePath": "Home & Kitchen > Small Appliances > Coffee Tea & Espresso Appliances > Electric Kettles",
        "categoryId": 24701,
        "mpid": "b758d2d2575c6da5c1bf0086550c23c7",
        "categoryName": "Electric Kettles",
        "upcs": [],
        "brandName": "Kitchenaid",
        "minSalePrice": 179.99,
        "brandId": 1636,
        "categoryIdPath": "10164 > 16776 > 18976 > 24701",
        "mpns": [],
        "countryCode": "US",
        "currency": "USD",
        "title": "KitchenAid KEK1522FP Kettle White",
        "lastRecordedAt": 1465245755161,
        "imageUrl": "http://i5.walmartimages.com/dfw/dce07b8c-bbdc/k2-_8fe659ec-83d0-4005-96c4-e7e2593d071b.v1.jpg",
        "maxSalePrice": 299,
        "offersCount": 3,
        "storesCount": 2
      },
      {
        "categoryNamePath": "Home & Kitchen > Small Appliances > Coffee Tea & Espresso Appliances > Electric Kettles",
        "categoryId": 24701,
        "mpid": "2a94d7ba2484db0775e822cbd75ae716",
        "categoryName": "Electric Kettles",
        "upcs": [],
        "brandName": "Kitchenaid",
        "minSalePrice": 99.99,
        "brandId": 1636,
        "categoryIdPath": "10164 > 16776 > 18976 > 24701",
        "mpns": [],
        "countryCode": "US",
        "currency": "USD",
        "title": "KitchenAid? Electric 1.7 Liter Kettle",
        "lastRecordedAt": 1464972549283,
        "imageUrl": "http://scene7.targetimg1.com/is/image/Target/14905815?wid=138&hei=138&qlt=85&fmt=pjpeg",
        "maxSalePrice": 99.99,
        "offersCount": 4,
        "storesCount": 1
      },
      {
        "categoryNamePath": "Home & Kitchen > Small Appliances > Coffee Tea & Espresso Appliances > Electric Kettles",
        "categoryId": 24701,
        "mpid": "59c44b6477388a4924b758b8671a08a9",
        "categoryName": "Electric Kettles",
        "upcs": [],
        "brandName": "Kitchenaid",
        "minSalePrice": 79.95,
        "brandId": 1636,
        "categoryIdPath": "10164 > 16776 > 18976 > 24701",
        "mpns": [
          " KEK1222SX (silver); KEK1222ER (red); KEK1222OB (black)"
        ],
        "countryCode": "US",
        "currency": "USD",
        "title": "KitchenAid® Electric Kettle, 1.25 Liter",
        "lastRecordedAt": 1464901335483,
        "imageUrl": "",
        "maxSalePrice": 99.99,
        "offersCount": 9,
        "storesCount": 2
      },
...Truncated for brevity

Tune in next time as we tell you how to get product details for individual products.

  Download the Pervasive Commerce White Paper

Leave a Reply

Your email address will not be published. Required fields are marked *