GET DEMO Chat

 

 

How To Add Ecommerce Site Search by Product Keyword

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

Welcome to the wonderful world of the Indix Product API – a simple RESTful API that pulls data for 35+ billion product offers from 50,000+ brands and 1,000+ sites. Having access to the Indix Product API means you don’t need to develop your own code in order to crawl every site you want product information from. It also means you won’t be presented with a drop-everything crisis every time a site blocks your crawler (because they might if you’re not polite, you know).

Keep reading for the first post in a series that calls out the various ways you can use our API. Let’s start with implementing and performing query-based searches. We’ll follow along with fictional developers, Christy and Ted…

A Product Info Nightmare

Christy and Ted are big-company developers by day, yet they dream of escaping the nine-to-six commuter routine building someone else’s dream. So they invest their nights and weekends into “making buying products even easier than Amazon.”

That’s the mission for their new startup, Inixini Corp. (Don’t worry… they can’t pronounce it either. Their CEO Co-Founder, Alex, insisted on a palindrome.)

After hacking together reams of clunky site-crawling code for weeks, they searched all over for a better way. “How can we easily search product offers on demand?” they wondered. Enter the Indix Product API.

One of the first things they noticed is that they could integrate keyword-based search into their app. Awesome!

You can look up products up by keyword search in any of the six Indix API search endpoints. Nature of the response and parameters will vary depending on the endpoint.

For instance, say you’re looking for baby wipes. Here’s what the query would look like using the Summary endpoint.

keyword how to

Query: https://api.indix.com/v2/summary/products?countryCode=US&q=baby%20wipes&app_key=<enter_app_key>

Sample response:

{
  "message": "ok",
  "result": {
    "count": 11575,
    "products": [
      {
        "categoryNamePath": "Health & Personal Care > Baby & Child Care > Diaper Care",
        "categoryId": 25656,
        "mpid": "09b385a2aebf1c83ba24a5bc59f0a4e8",
        "categoryName": "Diaper Care",
        "upcs": [],
        "brandName": "Huggies",
        "minSalePrice": 2.99,
        "brandId": 3081,
        "categoryIdPath": "10170 > 20101 > 25656",
        "mpns": [
          "31867"
        ],
        "countryCode": "US",
        "currency": "USD",
        "title": "Huggies Soft Skin Baby Wipes",
        "lastRecordedAt": 1461789671338,
        "imageUrl": "",
        "maxSalePrice": 2.99,
        "offersCount": 1,
        "storesCount": 1
      },
      {
        "categoryNamePath": "Health & Personal Care > Baby & Child Care > Diaper Care",
        "categoryId": 25656,
        "mpid": "696c01b7890ff7e795d4701ad4ba5002",
        "categoryName": "Diaper Care",
        "upcs": [
          "00037000195108"
        ],
        "brandName": "Pampers",
        "minSalePrice": 9.97,
        "brandId": 3305,
        "categoryIdPath": "10170 > 20101 > 25656",
        "mpns": [
          "3700019510"
        ],
        "countryCode": "US",
        "currency": "USD",
        "title": "Pampers Sensitive Baby Wipes Refills, 320 sheets",
        "lastRecordedAt": 1461907363912,
        "imageUrl": "http://i5.walmartimages.com/dfw/dce07b8c-2539/k2-_eed304f8-422b-4435-9184-1a1af2a198a1.v2.jpg",
        "maxSalePrice": 29.99,
        "offersCount": 18,
        "storesCount": 7
      },
      {
        "categoryNamePath": "Health & Personal Care > Baby & Child Care > Diaper Care",
        "categoryId": 25656,
        "mpid": "7b452cc3e8e441c53208a0cebbed44a8",
        "categoryName": "Diaper Care",
        "upcs": [],
        "brandName": "Johnson & Johnson",
        "minSalePrice": 74.19,
        "brandId": 6516,
        "categoryIdPath": "10170 > 20101 > 25656",
        "mpns": [],
        "countryCode": "US",
        "currency": "USD",
        "title": "Johnson & Johnson Johnson's Baby Skincare Wipes - 768 ct - 12 pack",
        "lastRecordedAt": 1461064873139,
        "imageUrl": "http://ecx.images-amazon.com/images/I/516w9todLXL._AC_US190_.jpg",
        "maxSalePrice": 74.19,
        "offersCount": 1,
        "storesCount": 1
      },
      {
        "categoryNamePath": "Health & Personal Care > Baby & Child Care > Diaper Care",
        "categoryId": 25656,
        "mpid": "aba45e34aac1b46e2970745824af4fa9",
        "categoryName": "Diaper Care",
        "upcs": [],
        "brandName": "Pampers",
        "minSalePrice": 2.99,
        "brandId": 3305,
        "categoryIdPath": "10170 > 20101 > 25656",
        "mpns": [],
        "countryCode": "US",
        "currency": "USD",
        "title": "Pampers Sensitive Wipes - 64 Count Tub",
        "lastRecordedAt": 1461932347903,
        "imageUrl": "http://ecx.images-amazon.com/images/I/4166Whn4C-L._AA190_.jpg",
        "maxSalePrice": 9.98,
        "offersCount": 7,
        "storesCount": 2
      },
...Truncated for brevity

Keep following Ted and Christy’s adventures. Next time, check out how they powered a search suggestions box in their app.

  Download the Pervasive Commerce White Paper
KickStart Program Information

Leave a Reply

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