For the complete documentation index, see llms.txt. This page is also available as Markdown.

Home Depot Product API (Async)

The Home Depot Product API endpoint returns the details of a single Home Depot product.

Single Product Request

curl -X POST \
	-H "Content-Type: application/json" \
	-d '{
			"apiKey": "API_KEY",
			"item_id": "ITEM_ID",
			"callback": {
				"type": "webhook",
				"url": "YYYYY"
			}
		}' \
"https://async.scraperapi.com/structured/homedepot/product"
import requests

url = "https://async.scraperapi.com/structured/homedepot/product"
headers = {
    "Content-Type": "application/json"
}
data = {
    "apiKey": "API_KEY",
    "item_id": "ITEM_ID",
    "callback": {
        "type": "webhook",
        "url": "YYYYY"
    }
}

response = requests.post(url, json=data, headers=headers)
print(response.text)

Multiple Products Request

curl -X POST \
	-H "Content-Type: application/json" \
	-d '{
			"apiKey": "API_KEY",
			"item_ids": ["ITEM_ID1", "ITEM_ID2"],
			"callback": {
				"type": "webhook",
				"url": "YYYYY"
			}
		}' \
"https://async.scraperapi.com/structured/homedepot/product"
import requests

url = "https://async.scraperapi.com/structured/homedepot/product"
headers = {
    "Content-Type": "application/json"
}
data = {
    "apiKey": "API_KEY",
    "item_ids": ["ITEM_ID1", "ITEM_ID2"],
    "callback": {
        "type": "webhook",
        "url": "YYYYY"
    }
}

response = requests.post(url, json=data, headers=headers)
print(response.text)

Supported Parameters

Parameters
Details

API_KEY (required)

Your API Key.

ITEM_ID (required)

Home Depot Internet number, the number at the end of the product URL. Required unless GTIN or URL is provided. Example: 320326855

To submit several products in one request, send them as an array in item_ids instead. Each item ID creates its own job.

GTIN

Product barcode (UPC, EAN or GTIN), used instead of ITEM_ID. Example: 045242637720

Note: The barcode must match exactly one Home Depot product. If it matches none or several, the response is "Product not found."

URL

A Home Depot product page URL, used instead of ITEM_ID. Example: https://www.homedepot.com/p/320326855

OUTPUT_FORMAT

This endpoint returns JSON output only. CSV is not supported.

Options:

  • json (default)

Only one product identifier is used per request. If you send more than one, URL takes priority, then GTIN, then ITEM_ID.

Sample Response

Single Product Request

Multiple Products Request

After the job(s) finish, you will find the result under the response key in the response JSON object. The structure is the same as in the corresponding SYNC data endpoint.