# John Lewis Product Details API Documentation

<p><strong>John Lewis Product Details API Documentation</strong> Get one product by its public id. Returns the current GBP price as a number, the original price, discount as an amount and discount_percent, ratings, variants with sizes and stock, fulfilment and absolute full-size image URLs. category_paths holds public browse paths that replay into category. rating and review_count are omitted when the product has no reviews; has_reviews marks the difference from zero reviews. The id is the product_id returned by search or category. 1 credit per successful request; failed requests are free.</p>

- **Documentation:** [https://scrappa.co/docs/johnlewis-api/johnlewis_product](https://scrappa.co/docs/johnlewis-api/johnlewis_product)
- **API group:** John Lewis API
- **Endpoint:** `GET https://scrappa.co/api/johnlewis/product`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `product_id` | string | Yes | Public product id, 4 to 12 digits. Example: 109711094. |

## Example response

```json
{
    "data": {
        "price": {
            "amount": 66.99,
            "display": "\u00a366.99",
            "currency": "GBP"
        },
        "stock": {
            "in_stock": true,
            "variant_count": 1,
            "available_variants": 1
        },
        "title": "John Lewis Cordless Kettle",
        "images": [
            "https://media.johnlewiscontent.com/is/image/JohnLewis/109711094"
        ],
        "rating": 4.5,
        "currency": "GBP",
        "discount": 13,
        "variants": [
            {
                "id": "85557902",
                "size": null,
                "price": 66.99,
                "colour": "Steel",
                "available": true
            }
        ],
        "product_id": "109711094",
        "has_reviews": true,
        "review_count": 1897,
        "category_paths": [
            {
                "id": "600001506",
                "name": "Women's Dresses",
                "path": "browse/women/womens-dresses/_/N-flw"
            }
        ],
        "original_price": 79.99,
        "discount_percent": 16.3
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "product"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter is invalid, or the requested data is unavailable. Failed requests are never billed. |
| 503 | Upstream Unavailable | John Lewis could not be reached. Retry shortly. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
