APIs / John Lewis / Search

John Lewis: Search

Search from John Lewis as JSON. 1 credit per successful call.

GET /v1/john-lewis/search

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
querystringRequiredUp to 100 characters
pageintegerOptionalAny
sortstringOptionalrelevance
price_minnumberOptionalAny
price_maxnumberOptionalAny

Example request

John Lewis
GET/v1/john-lewis/search?query=kettle
{
  "success": true,
  "data": {
    "query": "kettle",
    "page": 1,
    "pagination": {
      "page": 1,
      "total": 80,
      "total_pages": 2,
      "page_count": 72,
      "has_next_page": true
    },
    "sort": "relevance",
    "products": [
      {
        "product_id": "112182670",
        "sku_id": "112049022",
        "title": "De'Longhi KBY3001 Electric Kettle, 1.7L",
        "brand": "De'Longhi",
        "url": "https://www.johnlewis.com/delonghi-kby3001-electric-kettle-1-7l/p112182670",
        "price": {
          "min": 49,
          "max": 49.99,
          "display_min": "£49.00",
          "display_max": "£49.99"
        },
        "on_sale": false,
        "rating": 4,
        "review_count": 100,
        "out_of_stock": false,
        "available_to_order": true,
        "images": [
          "https://media.johnlewiscontent.com/i/JohnLewis/112049022",
          "https://media.johnlewiscontent.com/i/JohnLewis/112049022alt1",
          "https://media.johnlewiscontent.com/i/JohnLewis/112049022alt2"
        ]
      },
      {
        "product_id": "6262450",
        "sku_id": "241219552",
        "title": "Kenwood Dawn Kettle ZJP09, 1.7L",
        "brand": "Kenwood",
        "url": "https://www.johnlewis.com/kenwood-dawn-kettle-zjp09-1-7l/p6262450",
        "price": {
          "min": 30,
          "max": 32,
          "display_min": "£30.00",
          "display_max": "£32.00"
        },
        "on_sale": false,
        "rating": 4.7,
        "review_count": 249,
        "out_of_stock": false,
        "available_to_order": true,
        "images": [
          "https://media.johnlewiscontent.com/i/JohnLewis/241219552",
          "https://media.johnlewiscontent.com/i/JohnLewis/241219552alt1",
          "https://media.johnlewiscontent.com/i/JohnLewis/241219552alt2"
        ]
      },
      {
        "product_id": "2815066",
        "sku_id": "231549140",
        "title": "De'Longhi KBOV3001BG Vintage Icona Kettle",
        "brand": "De'Longhi",
        "url": "https://www.johnlewis.com/delonghi-kbov3001bg-vintage-icona-kettle/p2815066",
        "price": {
          "min": 49,
          "max": 49,
          "display_min": "£49.00",
          "display_max": "£49.00"
        },
        "on_sale": false,
        "rating": 4.3,
        "review_count": 216,
        "out_of_stock": false,
        "available_to_order": true,
        "images": [
          "https://media.johnlewiscontent.com/i/JohnLewis/231549140",
          "https://media.johnlewiscontent.com/i/JohnLewis/231549140alt1",
          "https://media.johnlewiscontent.com/i/JohnLewis/231549140alt2"
        ]
      }
    ],
    "facets": [
      {
        "name": "Stock Availability",
        "key": "childSKUs.hideOutOfStock",
        "values": [
          {
            "name": "Show in stock items only",
            "count": 71,
            "link": "/search/show-in-stock-items-only/_/N-1z0wxdt",
            "key": "1z0wxdt"
          }
        ]
      },
      {
        "name": "New In",
        "key": "product.newIn",
        "values": [
          {
            "name": "New In",
            "count": 5,
            "link": "/search/new-in/_/N-7lhg",
            "key": "7lhg"
          }
        ]
      },
      {
        "name": "On Offer",
        "key": "sku.offerType",
        "values": [
          {
            "name": "All Offers",
            "count": 50,
            "link": "/search/all-offers/_/N-1yzvw1q",
            "key": "1yzvw1q"
          }
        ]
      }
    ],
    "breadcrumb": [
      {
        "name": "Search results ‘kettle’"
      }
    ]
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_be10c05af2fe444791574a1ae7214c52",
    "credits_charged": 1,
    "credits_remaining": 4845
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

Each item in data.products has these 12 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
product_idstring
sku_idstring
titlestring
brandstring
urlurl
priceobject
on_saleboolean
ratingnumber
review_countinteger
out_of_stockboolean
available_to_orderboolean
imagesstring[]