# /rebag/products/search

`POST /api/rebag/products/search`

Price: 20 credits

Search Rebag luxury resale items, in stock and sold, by free text, designer, category, condition, colour, material, bag, shoe, apparel, accessory and jewelry type, size, model, style, store, collection and price: each with price, condition, designer, materials, measurements and photos.

## How to use it

Browse or search Rebag's catalogue; sold items are included unless availability is available, which makes this the place to find past asking prices. Designer names come from rebag/designers/search. Prices and the price filter are in USD.

## 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 items to return (min: 1; max: 5000)
- `query` (string, nullable) — Free-text search (examples: "birkin", "rolex submariner")
- `availability` (string) — In-stock items, sold items or both (default: "all"; one of: "all", "available", "sold")
- `designers` (array, nullable) — Designer names, as name in rebag/designers/search (examples: ["Hermes"], ["Chanel","Christian Dior"])
- `categories` (array, nullable) — Product categories (one of: "Bags", "Accessories", "Shoes", "Apparel", "Watches", "Jewelry")
- `conditions` (array, nullable) — Item conditions (one of: "Pristine", "Excellent", "Great", "Very Good", "Good", "Fair")
- `colors` (array, nullable) — Exterior colors (one of: "Black", "Brown", "Blue", "Neutral", "Red", "Pink", "White", "Green", "Gray", "Multicolor", "Print", "Silver", "Gold", "Yellow", "Orange", "Purple", "Metallic")
- `materials` (array, nullable) — Exterior materials (examples: ["Leather"], ["Canvas Coated","Suede"])
- `genders` (array, nullable) — Women's or men's items (one of: "Women", "Men")
- `bag_types` (array, nullable) — Bag types (one of: "Shoulder Bags", "Cross Body Bags", "Totes", "Top Handle", "Hobos", "Clutches", "Satchels", "Messenger", "Bucket", "Backpacks", "Belt Bag", "Waist Bag", "Duffles", "Bowler", "Briefcases", "Small Goods", "Wallets", "Rolling Suitcase")
- `bag_sizes` (array, nullable) — Bag sizes as the item tags write them (examples: ["small"], ["30","25"])
- `shoe_types` (array, nullable) — Shoe types (one of: "Sandals", "Sneakers", "Boots", "Pumps", "Heels", "Loafers", "Flats", "Mules", "Espadrilles", "Oxfords", "Clogs")
- `shoe_sizes` (array, nullable) — US shoe sizes (examples: ["7.5"], ["9","9.5"])
- `apparel_types` (array, nullable) — Apparel types (examples: ["Jacket"], ["Dresses","Skirts"])
- `apparel_sizes` (array, nullable) — Apparel sizes (examples: ["M"], ["XS","S"])
- `accessory_types` (array, nullable) — Accessory types (one of: "Wallets", "Small Leather Goods", "Belts", "Toiletry Bags", "Bag Accessories", "Hats & Hair Accessories", "Sunglasses", "Scarves & Shawls", "Home Items", "Tech Accessories", "Gloves", "Ties")
- `jewelry_types` (array, nullable) — Jewelry types (one of: "Necklace", "Ring", "Bracelet", "Earrings", "Brooch", "Pendant & Charms", "Cufflinks")
- `ring_sizes` (array, nullable) — Ring sizes (examples: ["6"], ["6.5","7"])
- `watch_case_sizes` (array, nullable) — Watch case widths in millimetres (examples: ["40"], ["36","41"])
- `models` (array, nullable) — Model slugs as the item tags write them (examples: ["birkin-handbag"], ["neverfull-nm-tote"])
- `styles` (array, nullable) — Style slugs as the item tags write them (examples: ["epsom"], ["monogram-canvas"])
- `stores` (array, nullable) — Rebag boutique or online stock holding the item (one of: "Online", "Sunrise - Sawgrass Mills", "NYC - Westfield World Trade Center", "Miami - Brickell City Centre", "LA - The Shops at Santa Anita", "Las Vegas - North Premium Outlets", "Cabazon - Desert Hills Premium Outlets", "Bloomingdale's Boca Raton", "Bloomingdale's Fashion Valley", "Bloomingdale's Short Hills", "Bloomingdale's White Plains", "Bloomingdale's Sherman Oaks", "Bloomingdale's Orlando", "Bloomingdale's Soho NYC")
- `collections` (array, nullable) — Curated collections (examples: ["Vintage"], ["Men's Styles"])
- `discounts` (array, nullable) — Sale and clearance groups (one of: "Last Call", "Wholesale Clearance A", "Wholesale Clearance B")
- `shipped_by` (array, nullable) — Who ships the item (one of: "rebag", "partner", "ds1")
- `min_price` (number, nullable) — Minimum price in USD (min: 0)
- `max_price` (number, nullable) — Maximum price in USD (min: 0)
- `sort` (string) — Result ordering (default: "relevance"; one of: "relevance", "price_low_to_high", "price_high_to_low", "newest", "oldest")

## Response

### 200 — Successful Response

- `@type` (string) (default: "RebagProductCard")
- `id` (string, required)
- `alias` (string, nullable)
- `url` (string, nullable)
- `clean_title` (string, nullable)
- `brand` (string, nullable)
- `product_type` (string, nullable)
- `price` (number, nullable)
- `currency` (string, nullable)
- `rplus_price` (number, nullable)
- `standard_price` (number, nullable)
- `original_price` (number, nullable)
- `estimated_retail_price` (number, nullable)
- `percent_of_retail` (number, nullable)
- `is_available` (boolean, nullable)
- `condition` (string, nullable)
- `condition_details` (string, nullable)
- `item_number` (string, nullable)
- `sku` (string, nullable)
- `barcode` (string, nullable)
- `upc` (string, nullable)
- `clair_code` (string, nullable)
- `brand_code` (string, nullable)
- `image` (string, nullable)
- `images` (array) (default: [])
- `tags` (array) (default: [])
- `collections` (array) (default: [])
- `seo_title` (string, nullable)
- `seo_description` (string, nullable)
- `exterior_material` (string, nullable)
- `exterior_color` (string, nullable)
- `interior_material` (string, nullable)
- `interior_color` (string, nullable)
- `hardware_color` (string, nullable)
- `hermes_color` (string, nullable)
- `has_strap` (boolean, nullable)
- `accessories` (array) (default: [])
- `size_and_fit` (array) (default: [])
- `size_guide_image` (string, nullable)
- `guide_url` (string, nullable)
- `store_location` (string, nullable)
- `serial_number` (string, nullable)
- `reference_number` (string, nullable)
- `production_year` (integer, nullable)
- `has_papers` (boolean, nullable)
- `has_extra_links` (boolean, nullable)
- `movement` (string, nullable)
- `complications` (string, nullable)
- `case_material` (string, nullable)
- `bezel_material` (string, nullable)
- `band_material` (string, nullable)
- `band_color` (string, nullable)
- `dial_color` (string, nullable)
- `dial_material` (string, nullable)
- `crystal` (string, nullable)
- `water_resistance` (string, nullable)
- `collateral` (array) (default: [])
- `material` (string, nullable)
- `non_gem_material` (string, nullable)
- `metal_type` (string, nullable)
- `metal_finish` (string, nullable)
- `total_item_weight` (string, nullable)
- `signature` (string, nullable)
- `signature_hallmark_location` (string, nullable)
- `hallmarks_type` (string, nullable)
- `gemstones` (array) (default: [])
- `new_gemstones` (array) (default: [])
  - `@type` (string) (default: "RebagGemstone")
  - `stone_count` (integer, nullable)
  - `total_carat_weight` (string, nullable)
  - `shape` (string, nullable)
  - `color` (string, nullable)
  - `saturation` (string, nullable)
  - `clarity` (string, nullable)
  - `transparency` (string, nullable)
- `pearls` (array) (default: [])
- `new_pearls` (array) (default: [])
  - `@type` (string) (default: "RebagPearl")
  - `size` (string, nullable)
  - `shape` (string, nullable)
  - `body_color` (string, nullable)
  - `overtone` (string, nullable)
  - `luster` (string, nullable)
  - `surface` (string, nullable)
- `favorites_count` (integer, nullable)
- `views_count` (integer, nullable)
- `batch_published_at` (integer, nullable)
- `first_look_ends_at` (integer, nullable)
- `created_at` (integer, nullable)
- `updated_at` (integer, nullable)
- `published_at` (integer, nullable)
- `marketplace_clearing_price` (number, nullable)
- `google_product_category` (string, nullable)
- `gender` (string, nullable)
- `silhouette` (string, nullable)
- `main_exterior_material` (string, nullable)
- `main_exterior_color` (string, nullable)
- `height` (string, nullable)
- `width` (string, nullable)
- `depth` (string, nullable)
- `handle_drop` (string, nullable)
- `strap_drop` (string, nullable)
- `size` (string, nullable)
- `case_size` (string, nullable)
- `watch_height` (string, nullable)
- `band_width` (string, nullable)
- `wrist_circumference` (string, nullable)
- `circumference` (string, nullable)
- `pendant_length` (string, nullable)
- `pendant_width` (string, nullable)
- `scarf_length` (string, nullable)
- `scarf_width` (string, nullable)
- `length` (string, 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

The entity was not found, or a precondition failed

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.

