Ashley search suggestions
Suggestions for a partial query as the shop's search box shows them: search terms, categories and products (SKU, name, link, image, rating).
Every response includes credits_used: the credits this call cost.
Part of the Ashley API: 6 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
qrequired | string | Partial query. Example: recl |
limit | integer | Results per page (default 8, max 20). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/ashley/v1/autocomplete?q=recl" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/ashley/v1/autocomplete",
params={"q": "recl"},
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/ashley/v1/autocomplete");
url.searchParams.set("q", "recl");
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).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"query": "recl","suggestions": [{"text": "recliner","category": null,"category_id": null},{"text": "reclining sofa","category": null,"category_id": null},"… 6 more"],"categories": [],"products": [{"sku": "1030125","name": "McGann Manual Rocker Recliner","url": "https://www.ashleyfurniture.com/p/mcgann_recliner/1030125.html","image": "https://cdn.ashley.com/assets/10301-25-SW-P1-KO.jpg","rating": 4.7,"review_count": 186},{"sku": "3740625","name": "Frohn Manual Rocker Recliner","url": "https://www.ashleyfurniture.com/p/frohn_recliner/3740625.html","image": "https://cdn.ashley.com/assets/37406-25-ANGLE-CLSD-SW-P1-KO.jpg","rating": 4.8,"review_count": 35},"… 4 more"],"cached": false,"credits_used": 1}