{"openapi":"3.0.3","info":{"title":"CeX (WeBuy) API (ReefAPI)","version":"0.1.0","description":"CeX (WeBuy) API — the second-hand games, phones, computing and electronics chain across nine countries: search a million products with all THREE prices (what you pay, what CeX pays you in cash, what CeX pays you as a trade-in voucher), read the full product, and see live per-store stock across the physical shop network. No account, no browser. Call POST /cex/v1/{action} with an x-api-key header; every response is the { ok, data, meta, error } envelope.","contact":{"name":"ReefAPI","url":"https://reefapi.com/cex-api","email":"support@reefapi.com"},"license":{"name":"ReefAPI Terms","url":"https://reefapi.com/terms"},"termsOfService":"https://reefapi.com/terms"},"externalDocs":{"description":"CeX (WeBuy) API documentation","url":"https://reefapi.com/docs/cex"},"servers":[{"url":"https://api.reefapi.com"}],"security":[{"ApiKeyAuth":[]}],"tags":[{"name":"cex","description":"CeX (WeBuy) API — the second-hand games, phones, computing and electronics chain across nine countries: search a million products with all THREE prices (what you pay, what CeX pays you in cash, what CeX pays you as a trade-in voucher), read the full product, and see live per-store stock across the physical shop network. No account, no browser."}],"paths":{"/cex/v1/search":{"post":{"operationId":"cex_search","summary":"Search the CeX catalogue of one country","description":"Search the CeX catalogue of one country. Every row carries the three prices side by side — the selling price, the cash price CeX pays you and the trade-in voucher price — plus the grade, the condition, online stock, the list of shops that hold the item and live facet counts. Filter by category, department, product line, brand, condition, grade, shop, stock and price; sort by price, name, rating or popularity. Give at least `query`, `category`, `supercategory`, `product_line`, `brand` or `store`.","tags":["cex"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","example":"ps5","description":"Free-text search, exactly as typed into the CeX search box. Leave empty to browse a category or a store with the filters below."},"country":{"type":"string","enum":["au","es","ie","in","it","mx","pl","pt","uk"],"default":"uk","example":"uk","description":"Which CeX storefront to read. Prices and stock are per country and the currency is read from that storefront's own settings."},"category":{"type":"string","example":"Playstation5 Consoles","description":"CeX category name as the site prints it (the `category` field of any search row; `taxonomy` lists them with live counts)."},"supercategory":{"type":"string","example":"Gaming","description":"Top-level department: Gaming, Phones, Computing, Electronics, Film & TV, New Accessories, Apparel."},"product_line":{"type":"string","example":"PlayStation 5","description":"CeX product line inside a department (`taxonomy` lists them)."},"brand":{"type":"string","example":"Apple","description":"Manufacturer as the catalogue spells it (Apple, Samsung, Sony…)."},"condition":{"type":"string","enum":["Boxed","Unboxed","Mint","Discounted"],"example":"Boxed","description":"CeX packaging condition. This is NOT the A/B/C grade — that is `grade`."},"grade":{"type":"string","enum":["A","B","C"],"example":"A","description":"CeX cosmetic grade. Each grade is its own product with its own three prices."},"store":{"type":"string","example":"Manchester Arndale","description":"Limit to items the catalogue lists as held by one named store (use the `name` from the `stores` action). Per-store quantity comes from `store_stock`."},"availability":{"type":"string","enum":["online","store","any"],"example":"online","description":"Restrict to items CeX currently has in stock."},"price_min":{"type":"number","minimum":0,"example":50,"description":"Lowest selling price (what you pay), in the storefront's currency."},"price_max":{"type":"number","minimum":0,"example":400,"description":"Highest selling price (what you pay), in the storefront's currency."},"sort":{"type":"string","enum":["relevance","price_asc","price_desc","name_asc","name_desc","rating","popularity"],"default":"relevance","example":"price_asc","description":"Sort order, using CeX's own sorted indexes."},"page":{"type":"integer","minimum":1,"maximum":1000,"default":1,"description":"1-based page. CeX caps paging at 1000 items per query (page x page_size <= 1000) however large `total` is."},"page_size":{"type":"integer","minimum":1,"maximum":100,"default":24,"description":"Rows per page, 1-100."}}},"example":{"query":"ps5","country":"uk"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/cex/v1/product":{"post":{"operationId":"cex_product","summary":"One CeX product in full: the three prices (selling, cash and voucher) with the previous and launch selling price and when the price last changed, whether CeX currently sells and buys it, the grade and","description":"One CeX product in full: the three prices (selling, cash and voucher) with the previous and launch selling price and when the price last changed, whether CeX currently sells and buys it, the grade and condition, the full description, every image, online and collection stock, the variant group and all of the product's own attributes.","tags":["cex"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"box_id":{"type":"string","example":"SAPPI13128GPUNLB","pattern":"[A-Za-z0-9._-]{3,40}","description":"CeX product id — the `box_id` on every search row, or a pasted product URL (…/product-detail?id=SAPPI13128GPUNLB)."},"country":{"type":"string","enum":["au","es","ie","in","it","mx","pl","pt","uk"],"default":"uk","example":"uk","description":"Which CeX storefront to read. Prices and stock are per country and the currency is read from that storefront's own settings."}},"required":["box_id"]},"example":{"box_id":"SAPPI13128GPUNLB"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/cex/v1/store_stock":{"post":{"operationId":"cex_store_stock","summary":"Live per-shop stock for one product across the whole CeX store network: every shop that holds it, how many units are on hand, the quantity reserved for click-and-collect and whether collection is avai","description":"Live per-shop stock for one product across the whole CeX store network: every shop that holds it, how many units are on hand, the quantity reserved for click-and-collect and whether collection is available there. This is the chain's physical inventory, not an online availability flag.","tags":["cex"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"box_id":{"type":"string","example":"SAPPI13128GPUNLB","pattern":"[A-Za-z0-9._-]{3,40}","description":"CeX product id — the `box_id` on every search row, or a pasted product URL (…/product-detail?id=SAPPI13128GPUNLB)."},"country":{"type":"string","enum":["au","es","ie","in","it","mx","pl","pt","uk"],"default":"uk","example":"uk","description":"Which CeX storefront to read. Prices and stock are per country and the currency is read from that storefront's own settings."}},"required":["box_id"]},"example":{"box_id":"SAPPI13128GPUNLB"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/cex/v1/stores":{"post":{"operationId":"cex_stores","summary":"The CeX shop network of one country: every shop with its id, name, region, phone number, coordinates and today's closing time","description":"The CeX shop network of one country: every shop with its id, name, region, phone number, coordinates and today's closing time. With `store_id`, one shop with its full weekly opening and break hours instead.","tags":["cex"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"country":{"type":"string","enum":["au","es","ie","in","it","mx","pl","pt","uk"],"default":"uk","example":"uk","description":"Which CeX storefront to read. Prices and stock are per country and the currency is read from that storefront's own settings."},"store_id":{"type":"integer","minimum":1,"example":1,"description":"Return one store with its weekly opening hours instead of the whole network."}}},"example":{"country":"uk"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}},"/cex/v1/taxonomy":{"post":{"operationId":"cex_taxonomy","summary":"The CeX browse tree of one country — the seven departments and their product lines — together with live category and product-line counts taken from the search index, so each name can be pasted straigh","description":"The CeX browse tree of one country — the seven departments and their product lines — together with live category and product-line counts taken from the search index, so each name can be pasted straight into `search`.","tags":["cex"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"country":{"type":"string","enum":["au","es","ie","in","it","mx","pl","pt","uk"],"default":"uk","example":"uk","description":"Which CeX storefront to read. Prices and stock are per country and the currency is read from that storefront's own settings."},"supercategory_id":{"type":"integer","minimum":1,"example":1,"description":"Limit the product lines to one department id (from the same answer)."}}},"example":{"country":"uk"}}}},"responses":{"200":{"description":"Result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Missing or invalid x-api-key"},"429":{"description":"Rate limited or quota exhausted"}},"x-reefapi-credits":1}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"Envelope":{"type":"object","required":["ok"],"properties":{"ok":{"type":"boolean"},"data":{"description":"Action result (shape varies per action)"},"meta":{"type":"object","description":"api, endpoint, mode, latency_ms, record_count, completeness_pct"},"error":{"type":"object","nullable":true,"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"}}}}}}}}