GET DEMO Chat

 

 

Add Ecommerce Product Comparison Shopping Features

This is the seventh 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. With both code-based and URL-based search now baked into their app, Christy and Ted rounded up a bigger test group.

Right after, Christy skimmed through the feedback while sipping her favorite mint tea. She read this comment to Ted without looking up: “Why can’t I comparison shop for a product between certain stores? Say Amazon, Walmart and Target. I wouldn’t bother with this app without that.”

“Geez, Christy, these users are rough. But if we can return results for a single store, there must be some way to do that for a handful of stores….”

As seen in this blog post, you first need to find the Store IDs. For instance, this is what you would do to power a search for L’Oreal mascaras sold at both Target and Walgreens. (Target’s and Walgreens’ Store IDs are 22 and 95 respectively. L’Oreal’s Brand ID is 3104.)

By the way, looking for Brand IDs through the Brand Lookup is just as easy as looking for Store IDs.

loreal

Here’s what the input for the above instance looks like in the Summary endpoint.

compshop1

Then in the selectOffersFrom parameter, you would specify that you want to expose offers of products common to both stores.

compshop2

Query: https://api.indix.com/v2/summary/products?countryCode=US&q=mascara&storeId=22&alsoSoldAt=95&brandId=3104&selectOffersFrom=storeIdAndAlsoSoldAt&app_key=<enter_app_key>

Sample response:

message: "ok",
result: {
count: 69,
products: [
{
categoryNamePath: "Health & Personal Care > Makeup > Eyes > Mascara",
categoryId: 21156,
mpid: "15a3167cdea6f8bfcc810f858c4bd3f0",
categoryName: "Mascara",
upcs: [
"00071249187722"
],
brandName: "L'Oreal",
minSalePrice: 0.79,
brandId: 3104,
categoryIdPath: "10170 > 16142 > 17047 > 21156",
mpns: [
"2315193",
"null",
"boi-opp-klo-uyi6260",
"071249187722"
],
countryCode: "US",
currency: "USD",
title: "L'Oreal Paris Voluminous Mascara oz 0.3 fl oz, 1, Black",
lastRecordedAt: 1466535127004,
imageUrl: "http://pics.drugstore.com/prodimg/328860/450.jpg",
maxSalePrice: 29.48,
offersCount: 90,
storesCount: 16
},
{
categoryNamePath: "Health & Personal Care > Makeup > Eyes > Mascara",
categoryId: 21156,
mpid: "e09e447c61216dbabbddfcca2e25e1d2",
categoryName: "Mascara",
upcs: [
"00071249006412"
],
brandName: "L'Oreal",
minSalePrice: 0.1,
brandId: 3104,
categoryIdPath: "10170 > 16142 > 17047 > 21156",
mpns: [
"null",
"L17901"
],
countryCode: "US",
currency: "USD",
title: "L'Oreal Paris Voluminous Bold Volume Building Mascara Waterproof   ea 5x, 1.0, Black",
lastRecordedAt: 1466531521523,
imageUrl: "http://pics.drugstore.com/prodimg/35531/450.jpg",
maxSalePrice: 89.02,
offersCount: 126,
storesCount: 13
},
{
categoryNamePath: "Health & Personal Care > Makeup > Eyes > Mascara",
categoryId: 21156,
mpid: "50297ce30c4ed21a169930f42fe865b9",
categoryName: "Mascara",
upcs: [
"00071249256701"
],
brandName: "L'Oreal",
minSalePrice: 0.01,
brandId: 3104,
categoryIdPath: "10170 > 16142 > 17047 > 21156",
mpns: [
"null",
"K1478900"
],
countryCode: "US",
currency: "USD",
title: "L'Oreal Paris Voluminous Butterfly Washable Mascara oz 6x, 0.22 fl oz, 1, Black",
lastRecordedAt: 1466456885283,
imageUrl: "http://pics.drugstore.com/prodimg/501803/450.jpg",
maxSalePrice: 19.9,
offersCount: 88,
storesCount: 14
},
...Truncated for brevity

Stay tuned as next time we’ll talk about how to power a browsing feature in your shopping app.

  Download the Pervasive Commerce White Paper
Get Facial Care Report

2 thoughts on “Add Ecommerce Product Comparison Shopping Features”

  1. Wow! You have shared amazing tips. It will be very helpful for e-commerce developers. I am also helped

    1. Anu Hastings says:

      Glad you found it helpful!

Leave a Reply

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