Skip to main content
POST
/
api
/
johnlewis
/
categories
/johnlewis/categories
curl --request POST \
  --url https://api.anysite.io/api/johnlewis/categories \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "category": "<string>",
  "timeout": 300
}
'
[
  {
    "name": "<string>",
    "@type": "@johnlewis_category",
    "id": "<string>",
    "content_id": "<string>",
    "type": "<string>",
    "url": "<string>",
    "meta_title": "<string>",
    "meta_description": "<string>",
    "included_in_menus": [],
    "children": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
category
string
required

John Lewis category content id or a category URL containing it

Minimum string length: 1
Examples:

"500001"

"https://www.johnlewis.com/electricals/c500001"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

name
string
required
@type
string
default:@johnlewis_category
id
string | null
content_id
string | null
type
string | null
url
string | null
meta_title
string | null
meta_description
string | null
included_in_menus
string[]
children
JohnlewisCategoryNode · object[]