---
title: "John Lewis API: UK product search, categories as JSON"
description: "John Lewis API for UK product search, categories, product details with variants and stock, and review texts as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/john-lewis
---

[APIs](https://perceptlayer.com/apis) / [Marketplaces](https://perceptlayer.com/verticals/marketplaces) / John Lewis

1 credit per call 4 endpoints 12 datapoints 

# 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.

[Get a free API key](https://perceptlayer.com/signup) Run it below

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 OK JSON X-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\_id string | sku\_id string | title string | brand string | url url | price object | on\_sale boolean | rating number | review\_count integer | out\_of\_stock boolean | available\_to\_order boolean | images string\[\] |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 112182670 | 112049022 | De'Longhi KBY3001 Electric Kettle, 1.7L | De'Longhi | https://www.johnlewis.com/delonghi-kby3001-electric-kettle-1-7l/p112182670 | {4 fields} | false | 4 | 100 | false | true | \[3 items\] |
| 2 | 6262450 | 241219552 | Kenwood Dawn Kettle ZJP09, 1.7L | Kenwood | https://www.johnlewis.com/kenwood-dawn-kettle-zjp09-1-7l/p6262450 | {4 fields} | false | 4.7 | 249 | false | true | \[3 items\] |
| 3 | 2815066 | 231549140 | De'Longhi KBOV3001BG Vintage Icona Kettle | De'Longhi | https://www.johnlewis.com/delonghi-kbov3001bg-vintage-icona-kettle/p2815066 | {4 fields} | false | 4.3 | 216 | false | true | \[3 items\] |

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

12 datapoints

### Identity

-   product\_id string
-   sku\_id string
-   title string
-   brand string

### Contact

-   url url

### Reputation

-   rating number
-   review\_count integer
-   images string\[\]

### Price

-   price object

### Other

-   on\_sale boolean
-   out\_of\_stock boolean
-   available\_to\_order boolean

Playground

## Run this API

cURL shell 

```
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.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/john-lewis/category`](https://perceptlayer.com/apis/john-lewis/category) | `path` +4 optional | `category` `pagination` `products` `breadcrumb` `category_paths` | 1 credit |
| [GET `/v1/john-lewis/product`](https://perceptlayer.com/apis/john-lewis/product) | `product_id` | `product_id` `pim_product_id` `title` `brand` `url` `description` +11 more | 1 credit |
| [GET `/v1/john-lewis/reviews`](https://perceptlayer.com/apis/john-lewis/reviews) | `product_id` +1 optional | `product_id` `average_rating` `rating_distribution` `subratings` `reviews` `media` | 1 credit |
| [GET `/v1/john-lewis/search`](https://perceptlayer.com/apis/john-lewis/search) | `query` +4 optional | `product_id` `sku_id` `title` `brand` `url` `price` +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.

Marketplaces JSON REST MCP

### More marketplaces APIs

[About You](https://perceptlayer.com/apis/about-you) [adidas](https://perceptlayer.com/apis/adidas) [Albert Heijn](https://perceptlayer.com/apis/albert-heijn) [ALDI SÜD](https://perceptlayer.com/apis/aldi-sued) [Alibaba](https://perceptlayer.com/apis/alibaba) [AliExpress](https://perceptlayer.com/apis/aliexpress) [Allegro](https://perceptlayer.com/apis/allegro) [ALTERNATE](https://perceptlayer.com/apis/alternate) [Alza](https://perceptlayer.com/apis/alza) [Amazon](https://perceptlayer.com/apis/amazon) [Americanas](https://perceptlayer.com/apis/americanas) [Aponeo](https://perceptlayer.com/apis/aponeo)

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.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
