# /endclothing/products/search

`POST /api/endclothing/products/search`

Price: 20 credits

List END. Clothing products from keyword search, a category, a brand, the sale or launches, filtered by brand, department, footwear style, colour, clothing and footwear size, label and price

## How to use it

Pick scope: search takes query, category takes a path from the END. Clothing categories endpoint, brand takes an alias from the END. Clothing brands endpoint, sale and launches take neither. Filter values are the ones returned in the product fields of the same names; brands is matched against the live brand facet case- and punctuation-insensitively, so the END. Clothing brands endpoint's name works even where it differs from the catalogue's own brand spelling. Prices follow country; the price sorts order by the UK store price.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `count` (integer, required) — Max number of products to return (min: 1)
- `scope` (string, required) — Which END. Clothing listing to read (one of: "search", "category", "brand", "sale", "launches")
- `query` (string, nullable) — Search keywords, for scope search (examples: "salomon", "gore-tex jacket"; minLength: 1)
- `category` (string, nullable) — Category path or URL, for scope category (examples: "footwear/sneakers", "women/footwear", "https://www.endclothing.com/us/clothing/jackets")
- `brand` (string, nullable) — Brand alias, path or URL, for scope brand (examples: "nike", "women/brands/nike", "https://www.endclothing.com/us/brands/stone-island")
- `gender` (string, nullable) — Store section; search covers both when omitted, brand, sale and launches default to men (one of: "men", "women")
- `country` (string) — Shipping country; it sets the storefront, availability, prices and currency (default: "US"; one of: "AL", "AM", "AR", "AT", "AU", "AZ", "BE", "BG", "BR", "CA", "CH", "CL", "CN", "CO", "CR", "CY", "CZ", "DE", "DK", "EC", "EE", "ES", "FI", "FR", "GB", "GE", "GG", "GR", "GY", "HK", "HR", "HU", "IE", "IN", "IS", "IT", "JE", "JM", "JP", "KR", "KY", "LC", "LI", "LT", "LU", "LV", "MC", "MD", "ME", "MO", "MT", "MX", "MY", "MZ", "NL", "NO", "NP", "NZ", "PE", "PH", "PL", "PR", "PT", "PY", "RO", "RW", "SE", "SG", "SI", "SK", "SZ", "TC", "TH", "TR", "TW", "US", "UY", "ZA")
- `sort` (string) — Result ordering; scope search supports featured only (default: "featured"; one of: "featured", "price_asc", "price_desc", "newest")
- `brands` (array, nullable) — Brand names (examples: ["Nike","Salomon"])
- `departments` (array, nullable) — Departments (examples: ["Sneakers"], ["Jackets > Bomber Jackets"])
- `footwear_styles` (array, nullable) — Footwear styles (examples: ["Air Jordan 4"])
- `colours` (array, nullable) — Colours (one of: "Black", "Blue", "Brown", "Burgundy", "Gold", "Green", "Grey", "Multi", "N/A", "Neutrals", "Orange", "Pink", "Purple", "Red", "Silver", "White", "Yellow")
- `clothing_sizes` (array, nullable) — Clothing sizes as shown on the store (examples: ["Medium","Large"], ["32\""])
- `footwear_sizes` (array, nullable) — Footwear sizes as shown on the store (examples: ["UK 9","US 10"])
- `labels` (array, nullable) — Product labels (one of: "Latest", "END. Exclusive", "END. Label", "END. Collaborations", "New Brand")
- `min_price` (number, nullable) — Minimum price in the country's store currency (min: 0)
- `max_price` (number, nullable) — Maximum price in the country's store currency (min: 0)

## Response

### 200 — Successful Response

- `@type` (string) (default: "EndclothingProduct")
- `id` (string, required)
- `sku` (string, nullable)
- `alias` (string, nullable)
- `url` (string, nullable)
- `name` (string, nullable)
- `brand` (string, nullable)
- `secondary_brand` (string, nullable)
- `description` (string, nullable)
- `description_markdown` (string, nullable)
- `pull_quote` (string, nullable)
- `features` (array) (default: [])
- `colour` (string, nullable)
- `colours` (array) (default: [])
- `gender` (string, nullable)
- `is_menswear` (boolean, nullable)
- `is_womenswear` (boolean, nullable)
- `category` (string, nullable)
- `department` (string, nullable)
- `departments` (array) (default: [])
- `categories` (array) (default: [])
- `season` (string, nullable)
- `activity` (string, nullable)
- `footwear_style` (string, nullable)
- `footwear_size_table` (string, nullable)
- `label` (string, nullable)
- `sale_type` (string, nullable)
- `discount_percent` (number, nullable)
- `special_from_at` (integer, nullable)
- `special_to_at` (integer, nullable)
- `currency` (string, nullable)
- `price` (number, nullable)
- `full_price` (number, nullable)
- `is_on_sale` (boolean, nullable)
- `is_available` (boolean, nullable)
- `regional_prices` (array) (default: [])
  - `@type` (string) (default: "EndclothingRegionalPrice")
  - `website_id` (string, required)
  - `currency` (string, nullable)
  - `price` (number, nullable)
  - `full_price` (number, nullable)
- `stock_count` (integer, nullable)
- `sizes` (array) (default: [])
- `clothing_sizes` (array) (default: [])
- `footwear_sizes` (array) (default: [])
- `size_stock` (array) (default: [])
  - `@type` (string) (default: "EndclothingSizeStock")
  - `sku` (string, required)
  - `quantity` (integer, nullable)
- `is_enabled` (boolean, nullable)
- `is_for_sale_online` (boolean, nullable)
- `is_restock` (boolean, nullable)
- `image` (string, nullable)
- `images` (array) (default: [])
- `model_image` (string, nullable)
- `model_crop_image` (string, nullable)
- `launch_mode` (string, nullable)
- `release_at` (integer, nullable)
- `new_from_at` (integer, nullable)
- `created_at` (integer, nullable)

## Errors

### 422 — Validation Error

The request body did not validate

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

No END. Clothing category or brand has this path

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

