COS product reviews
Customer reviews of one COS product in one market, as the product page shows them: the average rating, review count and fit, length and sizing averages, then the reviews (rating, title, text, date, reviewer name as shown, colour and size bought, fit answers, height/usual size/body type). Reviews belong to the style, so every colour shares them; each market keeps its own.
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
| name | type | description |
|---|---|---|
url | string | A cos.com product link (its locale sets the market and language), the product's uri (name-colour-<10-digit article>), a 10-digit article number or a 13-digit size SKU. Example: https://www.cos.com/en-gb/women/womenswear/jeans/straightleg/product/facade-straight-leg-jeans-faded-black-1205065021 |
sku | string | 10-digit article number or 13-digit size SKU, instead of url. |
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. country is accepted as the same thing. |
language | string | Language of the market (e.g. de, en or fr for ch); default the market's first language. |
sort | newest | oldest | rating_desc | rating_asc | Order of the reviews (default newest). |
page | integer | Page number (default 1). |
limit | integer | Reviews per page, 1-50 (default 10). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/cos/v1/reviews?url=https%3A%2F%2Fwww.cos.com%2Fen-gb%2Fwomen%2Fwomenswear%2Fjeans%2Fstraightleg%2Fproduct%2Ffacade-straight-leg-jeans-faded-black-1205065021" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/cos/v1/reviews",
params={"url": "https://www.cos.com/en-gb/women/womenswear/jeans/straightleg/product/facade-straight-leg-jeans-faded-black-1205065021"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/cos/v1/reviews");
url.searchParams.set("url", "https://www.cos.com/en-gb/women/womenswear/jeans/straightleg/product/facade-straight-leg-jeans-faded-black-1205065021");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); 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).