Home Depot
Home Depot Canada Search Suggestions API
The search-box suggestions of Home Depot Canada (homedepot.ca, The Home Depot's Canadian store: 182 stores in 10 provinces) for what has been typed, as JSON: the suggested keywords in the site's order and the installation services it suggests, in English or French. Use them as search queries. 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
querystringrequiredWhat has been typed so far, 1-100 characters.
Example: christ
store_idstringOptional Home Depot Canada store number (4 digits) to suggest for.
Example: 7080
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. Suggestions returns query, language, count, suggestions (keywords, as the site gives them) and home_services [{id, name}] (installation services the site suggests, e.g. Christmas Light Install & Removal in the sample). Each keyword can be sent as the query of search with country ca.
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/suggestions",
headers={"Authorization": "Bearer sk_live_your_key"},
json={"query": "christ"},
)
data = r.json()["data"]
print(data["suggestions"])
print(data["home_services"])Response