Home Depot
Home Depot Canada Categories API
The department tree of Home Depot Canada (homedepot.ca, The Home Depot's Canadian store: 182 stores in 10 provinces) as JSON: departments with id, name, link, level and children, up to 4 levels deep (about 1,750 nodes), plus the current event and collection pages such as Black Friday. Every id is a category_id for the Home Depot Canada Category and Search endpoints. Home Depot Canada only, 1 credit per call.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsoncountryenum<string>default:caHome Depot Canada only. ca is the default and the only value; any other value is a 400, not charged.
Example: ca
depthintegerdefault:4Levels of the tree to return, 1-4 (4 is all of it).
Example: 2
languageenum<string>default:enHome Depot Canada only: en or fr. Item ids, store numbers and CAD prices are the same in both; names, links (/product/ or /produit/), facets and the unit of measure come back in that language.
Example: fr
en— English (default).fr— French.
Notes
Home Depot Canada only. This endpoint reads Home Depot Canada (homedepot.ca, The Home Depot's Canadian store: 182 stores in 10 provinces); homedepot.com has no equivalent, so country defaults to ca and accepts only ca. 1 credit per call. Categories returns language, depth, count (departments), total (nodes), departments [{id, name, url, level, children}], events [{id, name, url}] (the current event and collection pages, e.g. Black Friday) and a note. A node without an id is a content page (for example a promotions page), not a category you can list. The tree is read on each call. In the sample, depth 2 returned 26 departments and 388 nodes.
Not available for Home Depot Canada: UPC / GTIN (Home Depot Canada does not show them), structured sale end dates (a sale is a price badge such as New Lower Price or Special Buy, plus Home Depot Canada's promotion text), reviews past the first 8 per language, delivery quotes (shipping with ca is a 400), the flyer, cart or checkout, and price history (poll and store your own).
| Endpoint | US (homedepot.com) | Canada (homedepot.ca) |
|---|---|---|
search | 2 | 1 |
product | 2 | 1 (with or without store_id) |
reviews | 2 | 1 (first 8 reviews per language) |
stores | 2 | 1 |
availability | 2 | 1 (store_id required) |
shipping | 4 | Not available (400, not charged) |
category | Not available | 1 |
categories | Not available | 1 |
stock | Not available | 1 |
store | Not available | 1 |
suggestions | Not available | 1 |
Request
import requests
r = requests.post(
"https://api.scavio.dev/api/v1/homedepot/categories",
headers={"Authorization": "Bearer sk_live_your_key"},
json={"depth": 2},
)
data = r.json()["data"]
print(data["count"], "departments,", data["total"], "nodes")
for dep in data["departments"]:
print(dep["id"], dep["name"], len(dep["children"]))
for event in data["events"]:
print("event:", event["id"], event["name"])Response