Home Depot
Home Depot Canada Store Stock API
The exact units of one item at every store of Home Depot Canada (homedepot.ca, The Home Depot's Canadian store: 182 stores in 10 provinces) near a Canadian postal code or city, in one call, as JSON: store number, name, address, distance in km, services, units and stock status per store, plus the online units. No prices (read a store price with availability or product and store_id). 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
item_idstringrequiredA Home Depot Canada item id (10 digits, products[].item_id from search) or a homedepot.ca/product/... link. A package id (6 digits, product_type "package" in search) is a 400: packages have no product page of their own.
Example: 1001769719
locationstringrequiredA Canadian postal code (e.g. M5V 2T6) or a city (e.g. Calgary): the stores near it.
Example: H3B 1A1
limitintegerdefault:20Stores per page, 1-50.
Example: 20
pageintegerPage of stores, 1-based (total_pages and has_more say how many).
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. Stock returns item_id, title, brand, url, location, location_text, online_units, online_stock_status, page, page_size, total_results, total_pages, has_more, count and stores [{store_id, name, address, phone, latitude, longitude, distance_km, time_zone, services, units, stock_status}], plus a note. distance_km is from the point Home Depot Canada resolved the location to. Units are exact counts per store; there are no prices here. In the sample, 15 stores near H3B 1A1 (Montreal) were listed for the DEWALT drill, 16 units at store 7128. Store gap: Home Depot Canada's store record for an item is sometimes missing while the item exists. Then availability and stock answer an unbilled 502 that says so, and product with store_id returns the online price with store_price_returned false and a note.
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/stock",
headers={"Authorization": "Bearer sk_live_your_key"},
json={"item_id": "1001769719", "location": "H3B 1A1"},
)
data = r.json()["data"]
print(data["title"], "online units:", data["online_units"])
for store in data["stores"]:
print(store["store_id"], store["name"], store["address"]["province"], store["distance_km"], "km", store["units"])Response