Skip to main content
POST
/
api
/
johnlewis
/
categories
/
products
/johnlewis/categories/products
curl --request POST \
  --url https://api.anysite.io/api/johnlewis/categories/products \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "category": "<string>",
  "count": 2,
  "timeout": 300,
  "sort": "relevance"
}
'
[
  {
    "id": "<string>",
    "@type": "@johnlewis_search_product",
    "title": "<string>",
    "brand": "<string>",
    "url": "<string>",
    "image": "<string>",
    "images": [],
    "price": 123,
    "list_price": 123,
    "currency": "<string>",
    "rating": 123,
    "review_count": 123,
    "default_sku_id": "<string>",
    "is_out_of_stock": true,
    "is_available_to_order": true,
    "color_swatches": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
category
string
required

John Lewis browse listing base id (N-...), browse/category URL, or path

Minimum string length: 1
Examples:

"N-474sZ1z140en"

"https://www.johnlewis.com/brand/vacuum-cleaners/dyson/_/N-474sZ1z140en"

"/electricals/laptops-macbooks/c60000876"

count
integer
required

Max number of results to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
sort
enum<string>
default:relevance

Result ordering

Available options:
relevance,
priceLow,
priceHigh,
new,
popularity,
discount

Response

Successful Response

id
string
required
@type
string
default:@johnlewis_search_product
title
string | null
brand
string | null
url
string | null
image
string | null
images
string[]
price
number | null
list_price
number | null
currency
string | null
rating
number | null
review_count
integer | null
default_sku_id
string | null
is_out_of_stock
boolean | null
is_available_to_order
boolean | null
color_swatches
JohnlewisSearchColorSwatch · object[]