Skip to main content
POST
/
api
/
johnlewis
/
products
/johnlewis/products
curl --request POST \
  --url https://api.anysite.io/api/johnlewis/products \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "product": "<string>",
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "@type": "@johnlewis_product",
    "title": "<string>",
    "alias": "<string>",
    "brand": {
      "name": "<string>",
      "@type": "@johnlewis_brand",
      "logo": "<string>",
      "story": "<string>"
    },
    "description": "<string>",
    "selling_product_type": "<string>",
    "image": "<string>",
    "images": [],
    "colour": "<string>",
    "price": 123,
    "list_price": 123,
    "currency": "<string>",
    "offer_type": "<string>",
    "is_available_to_order": true,
    "unavailable_reason": "<string>",
    "is_ship_from_store": true,
    "display_code": "<string>",
    "credit_eligibility": "<string>",
    "eligible_for_trade_in": true,
    "review_summary": {
      "@type": "@johnlewis_review_summary",
      "average_rating": 123,
      "max_rating": 123,
      "average_rating_percentage": 123,
      "review_count": 123
    },
    "attributes": [],
    "breadcrumbs": [],
    "messaging": [],
    "fulfilment_options": [],
    "services": [],
    "barcodes": {
      "@type": "@johnlewis_product_barcodes",
      "ean13": [],
      "upc12": [],
      "ean8": []
    },
    "variants": [],
    "variant_count": 123,
    "canonical_url": "<string>",
    "url": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
product
string
required

John Lewis product id or a product URL containing it

Minimum string length: 1
Examples:

"113612156"

"https://www.johnlewis.com/asus-vivobook-s14-laptop/p113612156"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
@type
string
default:@johnlewis_product
title
string | null
alias
string | null
brand
JohnlewisBrand · object
description
string | null
selling_product_type
string | null
image
string | null
images
string[]
colour
string | null
price
number | null
list_price
number | null
currency
string | null
offer_type
string | null
is_available_to_order
boolean | null
unavailable_reason
string | null
is_ship_from_store
boolean | null
display_code
string | null
credit_eligibility
string | null
eligible_for_trade_in
boolean | null
review_summary
JohnlewisReviewSummary · object
attributes
JohnlewisProductAttribute · object[]
breadcrumbs
JohnlewisCategoryRef · object[]
messaging
JohnlewisProductMessage · object[]
fulfilment_options
JohnlewisFulfilmentOption · object[]
services
JohnlewisProductService · object[]
barcodes
JohnlewisProductBarcodes · object
variants
JohnlewisProductVariant · object[]
variant_count
integer | null
canonical_url
string | null
url
string | null