Skip to main content
POST
/
api
/
johnlewis
/
products
/
search
/johnlewis/products/search
curl --request POST \
  --url https://api.anysite.io/api/johnlewis/products/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "keyword": "<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
keyword
string
required

Search keyword

Minimum string length: 1
Examples:

"laptop"

"dyson vacuum"

"running shoes"

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[]