Ace Hardware category products
The first 30 products of an Ace Hardware department page (the shop's default order) with the total and facet counts, in the same shape as search. Later pages are not available (next_page is always null).
Every response includes credits_used: the credits this call cost.
Part of the Ace Hardware API: 3 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
categoryrequired | string | Department path after /departments/ (e.g. tools/power-tools/cordless-drills) or the department link. Example: tools/power-tools/cordless-drills |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/acehardware/v1/category?category=tools%2Fpower-tools%2Fcordless-drills" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/acehardware/v1/category",
params={"category": "tools/power-tools/cordless-drills"},
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/acehardware/v1/category");
url.searchParams.set("category", "tools/power-tools/cordless-drills");
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)
{"category": "/departments/tools/power-tools/cordless-drills","corrected_query": null,"total": 175,"count": 30,"next_page": null,"items": [{"code": "2385458","name": "DeWalt 20V MAX 1/2 in. Brushed Cordless Compact Drill Kit (Battery & Charger)","url": "https://www.acehardware.com/dewalt-20v-max-1-2-in-brushed-cordless-compact-drill-kit-battery--charger/p/2385458","brand": "DeWalt","price": 159,"regular_price": 179,"max_price": null,"on_sale": true,"price_type": "List","image": "https://cdn-tp6.mozu.com/24645-37138/cms/37138/files/f7b42b30-cf5a-4829-be02-76bf93727867","in_stock_online": true,"online_stock": 1,"manage_stock": true,"fulfillment": ["DirectShip","InStorePickup","… 1 more"],"store_pickup": true,"delivery": null,"purchasable": true,"upc": "885911325905","manufacturer_part_number": "DCD771C2","added": "2018-04-07T17:41:02.216Z","summary": "20V CMPT DRILL 1/2 2BAT","categories": [{"id": 3002,"name": "Cordless Drills"},{"id": 3143,"name": "Exclusions-Global Categories"},"… 42 more"]},{"code": "2489540","name": "DEWALT 20V MAX Cordless Brushed 2 Tool Compact Drill and Impact Driver Kit","url": "https://www.acehardware.com/dewalt-20v-max-cordless-brushed-2-tool-compact-drill-and-impact-driver-kit/p/2489540","brand": "DeWalt","price": 179,"regular_price": 229,"max_price": null,"on_sale": true,"price_type": "List","image": "https://cdn-tp6.mozu.com/24645-37138/cms/37138/files/b28178f5-ac4a-432e-9398-a103aa9d99b4","in_stock_online": true,"online_stock": 1,"manage_stock": true,"fulfillment": ["DirectShip","InStorePickup","… 1 more"],"store_pickup": true,"delivery": null,"purchasable": true,"upc": "885911489171","manufacturer_part_number": "DCK241C2","added": "2018-04-07T17:47:18.762Z","summary": "20V DRILL/IMPCT DRIVR DW","categories": [{"id": 2988,"name": "Combo Power Tool Sets"},{"id": 2996,"name": "Impact Drivers"},"… 49 more"]},"… 28 more"],"facets": [{"name": "Brand Name","options": [{"label": "apollo tools","count": 1},{"label": "black+decker","count": 4},"… 10 more"]},{"name": "Price","options": [{"label": "25 to 50","count": 5},{"label": "50 to 100","count": 8},"… 3 more"]},"… 18 more"],"cached": false,"credits_used": 1}