APIs / Marketplaces / John Lewis

1 credit per call4 endpoints12 datapointsChecked working 6 Dec 2026

John Lewis API

John Lewis API for UK product search, categories, product details with variants and stock, and review texts as JSON. 1 credit per successful call.

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.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#product_idstringsku_idstringtitlestringbrandstringurlurlpriceobjecton_salebooleanratingnumberreview_countintegerout_of_stockbooleanavailable_to_orderbooleanimagesstring[]
1112182670112049022De'Longhi KBY3001 Electric Kettle, 1.7LDe'Longhihttps://www.johnlewis.com/delonghi-kby3001-electric-kettle-1-7l/p112182670{4 fields}false4100falsetrue[3 items]
26262450241219552Kenwood Dawn Kettle ZJP09, 1.7LKenwoodhttps://www.johnlewis.com/kenwood-dawn-kettle-zjp09-1-7l/p6262450{4 fields}false4.7249falsetrue[3 items]
32815066231549140De'Longhi KBOV3001BG Vintage Icona KettleDe'Longhihttps://www.johnlewis.com/delonghi-kbov3001bg-vintage-icona-kettle/p2815066{4 fields}false4.3216falsetrue[3 items]

Recorded from our API · 3 items shown · 12 datapoints per itemGET /v1/john-lewis/search?query=kettle

12 datapoints

Identity

  • product_idstring
  • sku_idstring
  • titlestring
  • brandstring

Contact

  • urlurl

Reputation

  • ratingnumber
  • review_countinteger
  • imagesstring[]

Price

  • priceobject

Other

  • on_saleboolean
  • out_of_stockboolean
  • available_to_orderboolean

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/john-lewis/search?query=kettle" \
  -H "X-API-Key: $API_KEY"

John Lewis · 4 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/john-lewis/category
path+4 optional
categorypaginationproductsbreadcrumbcategory_paths
1 credit
GET/v1/john-lewis/product
product_id
product_idpim_product_idtitlebrandurldescription+11 more
1 credit
GET/v1/john-lewis/reviews
product_id+1 optional
product_idaverage_ratingrating_distributionsubratingsreviewsmedia
1 credit
GET/v1/john-lewis/search
query+4 optional
product_idsku_idtitlebrandurlprice+6 more
1 credit

Overview

About the John Lewis API

What you can get

The John Lewis API returns John Lewis product data from the UK as JSON through 4 endpoints. Prices are in GBP.

  • Search: search takes a query, with page, sort (relevance), price_min and price_max.
  • Categories: category takes a category path, for example browse/electricals/kettles/_/N-aht, with the same page, sort and price filters.
  • Products: product takes a product_id.
  • Reviews: reviews takes a product_id, with page.

The recorded search for "kettle" returns products, each with product_id, sku_id, title, brand, url, price (min and max), on_sale, rating, review_count, out_of_stock, available_to_order and images. Its pagination reports a total of 80 over 2 pages, with has_next_page, and the response adds facets and a breadcrumb.

How a call works

Search, then look up: GET /v1/john-lewis/search?query=kettle with your key in the X-API-Key header returns each product's product_id. Pass it to product or reviews, for example GET /v1/john-lewis/product?product_id=6262450. product returns category_paths, whose path goes into category to list the whole range. Page with page while has_next_page is true. Every successful call costs 1 credit; failed calls cost nothing.

MarketplacesJSONRESTMCP

More marketplaces APIs

Use cases

Track John Lewis prices and sale flags for a product list

Use the John Lewis API to track John Lewis prices and sale flags for a product list

Check stock for each colour or size variant of a product

Use the John Lewis API to check stock for each colour or size variant of a product

List every product in a category within a price band

Use the John Lewis API to list every product in a category within a price band

Collect review texts with quality and value subratings

Use the John Lewis API to collect review texts with quality and value subratings

FAQ

Questions

How much does the John Lewis API cost?

Each successful call costs one credit, whichever endpoint you call, and each page of results or reviews is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.

Are review texts returned?

Yes. Each review has `id`, `title`, `body`, `date`, `rating`, `author` and `subratings`. The call also returns `average_rating`, `rating_distribution` and averages for Quality and Value. The recorded Kenwood Dawn kettle had 249 reviews over 13 pages of 20.

What does a product return?

`product` returns `title`, `brand`, `description`, `price`, `price_range`, `rating`, `review_count`, `category_paths`, `variants` (each with `colour`, `available` and `price`), `images`, `fulfilment` and `stock` (`variant_count`, `available_variants` and `in_stock`).

Do I need a John Lewis account?

No. You call this John Lewis API with your Perceptlayer key in the `X-API-Key` header, with no John Lewis login.

Is this the official John Lewis API?

No. Perceptlayer is an independent service and is not affiliated with John Lewis. It returns John Lewis data as JSON with a Perceptlayer key, so there is no John Lewis developer account, app review or partner approval to get first. It only reads data: if John Lewis has an official API and you need to act on your own John Lewis account, such as posting, managing orders or reading private data, use that one.

Should I build a John Lewis scraper instead?

You can, but a John Lewis scraper is code you maintain: page changes break it, requests get blocked, and John Lewis's terms govern how you collect data. The John Lewis API gives you 4 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the John Lewis API with 100 free credits

No credit card. Failed calls are never billed.