COS recommendations for a product

GET https://api.api.sh/cos/v1/recommendations
1 credit / call e-commerce try it in the playground →

The product page's recommendations for a COS product ("Discover similar pieces", "You may also like"), each product with price, colours, sizes and images.

Every response includes credits_used: the credits this call cost.

Part of the COS API: 13 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
url string A cos.com product link (its locale sets the market and language), the product's uri (name-colour-<10-digit article>), or a 10-digit article number. Example: https://www.cos.com/de-ch/women/womenswear/knitwear/cardigans/cashmere/product/brushed-cashmere-crew-neck-cardigan-blue-1341040003
sku string 10-digit article number (one colour of a product), instead of url, e.g. 1341040003.
market string Market: us (default), ca, gb, ie, de, at, ch, fr, es, it, nl, dk, no, se, pl, eu, eue, au, ww, or a site locale such as de-ch. Prices, currency and stock follow the market. country is accepted as the same thing.
language string Language of names and texts, one the market offers (ch: de, en, fr; de: de, en; ca: en, fr; others their own). Default: the market's first language, or the link's.

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/cos/v1/recommendations?url=https%3A%2F%2Fwww.cos.com%2Fde-ch%2Fwomen%2Fwomenswear%2Fknitwear%2Fcardigans%2Fcashmere%2Fproduct%2Fbrushed-cashmere-crew-neck-cardigan-blue-1341040003" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)

{"market": "ch","language": "de","sku": "1341040003","count": 28,"groups": [{"title": "Das könnte Ihnen auch gefallen","kind": "you may also like","products": [{"id": 25286,"sku": "1355548001","style_sku": "1355548","uri": "chunky-brushed-cashmere-funnel-neck-jumper-grey-mlange-1355548001","name": "GROBSTRICKPULLOVER AUS GEBÜRSTETEM KASCHMIR","url": "https://www.cos.com/de-ch/women/womenswear/knitwear/jumpers/cashmere/product/chunky-brushed-cashmere-funnel-neck-jumper-grey-mlange-13555480…","price": {"…": "3 fields"},"price_before_discount": {"…": "3 fields"},"lowest_price_30d": {"…": "3 fields"},"discount_percent": null,"on_sale": false,"is_new": true,"coming_soon": false,"in_stock": true,"color": "GREY MÉLANGE","color_hex": "#9A928E","colors": [{"…": "5 fields"}],"variants_count": 0,"product_type": "Jumper","gender": "Weiblich","main_category": "women/womenswear/knitwear/jumpers/cashmere","tags": ["EU Unisex Black Friday Exclusions","cashmere","… 9 more"],"launch_date": null,"image": "https://media.cos.com/assets/001/1e/ec/1eec7a39b3d1a7421d3b6893e9e06f1b16d54deb_xxl-1.jpg","images": ["https://media.cos.com/assets/001/91/54/9154c870ba19372af30186b3ef2fd272e0059e1a_xxl-1.jpg","https://media.cos.com/assets/001/c4/e4/c4e476691e629b517c6c252a9e91b076863aa979_xxl-1.jpg","… 9 more"],"position": 0},{"id": 26160,"sku": "1369734001","style_sku": "1369734","uri": "brushed-pure-cashmere-zip-up-jacket-charcoal-mlange-1369734001","name": "JACKE AUS REINEM GEBÜRSTETEM KASCHMIR","url": "https://www.cos.com/de-ch/women/womenswear/coatsjackets/jackets/product/brushed-pure-cashmere-zip-up-jacket-charcoal-mlange-1369734001","price": {"…": "3 fields"},"price_before_discount": {"…": "3 fields"},"lowest_price_30d": {"…": "3 fields"},"discount_percent": null,"on_sale": false,"is_new": true,"coming_soon": false,"in_stock": true,"color": "CHARCOAL MÉLANGE","color_hex": "#3A3339","colors": [{"…": "5 fields"}],"variants_count": 0,"product_type": "Jacket","gender": "Weiblich","main_category": "women/womenswear/coatsjackets/jackets","tags": ["EU Unisex Black Friday Exclusions","cashmere","… 5 more"],"launch_date": null,"image": "https://media.cos.com/assets/001/f7/5c/f75c98243c293a44689bd0fb13e290969eb6758a_xxl-1.jpg","images": ["https://media.cos.com/assets/001/67/d5/67d56c57ad225940e62f553a94f0780974fed9d9_xxl-1.jpg","https://media.cos.com/assets/001/77/aa/77aa8c50e01b3bf35acab8ba79db3cbe5f287284_xxl-1.jpg","… 5 more"],"position": 0},"… 26 more"]}],"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.