ASOS product search
Products on ASOS for keywords or a category, in one of 11 country stores (prices in the store's currency), with every filter the site offers: sort, brand, color, size, Sale/New Season, gender, discount band, new-in date and the product attributes listed in facets (pass a facet's id as the parameter name and value ids comma-separated, e.g. attribute_1046=8310 for Straight Leg). Each product: id, name, brand, current/previous/RRP prices and the lowest price of the last 30 days, colour, product code, link, images and video. total is the site's count; 72 per page. Pass next_page back as page; null on the last page. price_min and price_max limit the current price.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
q | string | Keywords, e.g. jeans. Required unless category is given. Example: jeans |
category | string | Category id (the cid in an asos.com /cat/?cid= link), e.g. 3630 for women's jeans. |
country | US | GB | DE | FR | ES | IT | NL | AU | SE | DK | PL | Store: US (default), GB, DE, FR, ES, IT, NL, AU, SE, DK, PL. Example: US |
sort | relevance | price_asc | price_desc | newest | relevance (default), price_asc, price_desc, newest. |
brand | string | Brand ids from facets (brand), comma-separated, e.g. 53 for ASOS DESIGN. |
base_colour | string | Color ids from facets, comma-separated. |
size | string | Size ids from facets, comma-separated. |
range | string | sale and/or new_season. |
floor | string | Gender ids: 1000 women, 1001 men, 2001 unisex. |
discount_band | string | Discount band ids from facets. |
freshness_band | string | New-in ids from facets (1 today, 2 yesterday, 3 last 7 days...). |
price_min | number | Lowest current price, in the store's currency. |
price_max | number | Highest current price, in the store's currency. |
limit | integer | Results per page (max 72). |
page | integer | Page number. Pass next_page from the previous response. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/asos/v1/search?q=jeans" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/asos/v1/search",
params={"q": "jeans"},
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/asos/v1/search");
url.searchParams.set("q", "jeans");
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).