Home Depot Scraper API
View as MarkdownGet Home Depot product data for a specific store and zip code as JSON or HTML, and look up stores by zip code or coordinates
On homedepot.com, prices, badges, stock, and pickup and delivery options depend on the store and zip code the shopper picks. The Home Depot API takes both, so the response reflects the store you name rather than a random default. A companion endpoint resolves store IDs from a zip code or a pair of coordinates.
Endpoints
| Endpoint | Returns | Purpose |
|---|---|---|
/plugin/homedepot/pdp | JSON | Product data for one item at a store and zip code: store price, badges, stock, pickup and delivery |
/plugin/homedepot/product | HTML | The raw product page HTML for a store and zip code |
/plugin/homedepot/stores | JSON | Stores near a zip code or coordinate pair |
Every endpoint costs 10 credits per successful request. Requests rejected with 400 or 404 and requests that fail with 502 are not charged.
Use /pdp when you need the store's price, stock, or pickup options. Home Depot loads some store-level pricing and inventory through client-side calls after the page renders, so a field you need can be missing from the /product HTML.
The PDP endpoint is synchronous only. The Async API rejects homedepot/pdp with unsupported plugin key, while the product and stores endpoints are available there as homedepot/product and homedepot/stores.
PDP Endpoint
Returns Home Depot's own product object for one item, as the product page loads it for the selected store and zip code.
Basic Example
curl "https://api.scrape.do/plugin/homedepot/pdp?token=YOUR_TOKEN&url=https%3A%2F%2Fwww.homedepot.com%2Fp%2FDEWALT-Atomic-20V-Drill%2F322138372&storeid=6175&zipcode=10010"Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
token | string | yes | Your Scrape.do API authentication token |
url | string | yes | Home Depot product URL, URL-encoded, in the form /p/<slug>/<itemId>, /p/-/<itemId>, or the same paths under /pep/. The item ID is the last path segment and must be numeric |
storeid | string | yes | Home Depot store number, 1 to 5 digits, for example 6175 or 0910. Price, badges, stock, and pickup are this store's. Resolve one with the stores endpoint |
zipcode | string | yes | 5-digit delivery zip code, for example 10010. Delivery options are for this zip code |
timeout | integer | no | Request timeout in milliseconds. Defaults to the system maximum |
disableretry | boolean | no | Make a single attempt with no retry. Defaults to false |
Response
The response is checked before it is returned: it is the requested item, and when the item has a pickup option, that option is anchored to storeid.
{
"itemId": "322138372",
"identifiers": {
"productLabel": "Atomic 20V Lithium-Ion Cordless Compact 1/2 in. Drill/Driver Kit with 2.0Ah Battery and Charger",
"brandName": "DEWALT",
"modelNumber": "DCD794D1",
"storeSkuNumber": "1008373177"
},
"pricing": { "value": 99.0, "original": 179.0, "unitOfMeasure": "each" },
"badges": [{ "name": "exclusive", "label": "Exclusive" }],
"fulfillment": {
"fulfillmentOptions": [
{
"type": "pickup",
"fulfillable": true,
"services": [
{
"type": "bopis",
"locations": [
{
"isAnchor": true,
"locationId": "6175",
"storeName": "Manhattan West 23rd St",
"inventory": { "quantity": 139, "isInStock": true }
}
]
}
]
},
{
"type": "delivery",
"fulfillable": true,
"services": [
{ "type": "express delivery", "locations": [{ "locationId": "6845", "inventory": { "quantity": 138, "isInStock": true } }] },
{ "type": "sth", "locations": [{ "locationId": "8119", "inventory": { "quantity": 1595, "isInStock": true } }] }
]
}
]
},
"reviews": { "ratingsReviews": { "totalReviews": "6090", "averageRating": "4.7307" } }
}The example is trimmed. The full response includes these fields:
| Field | Description |
|---|---|
itemId, identifiers | Title (productLabel), brand, model, store SKU, OMS and UPC numbers, canonical URL, product type, parent ID |
pricing | Price at storeid: value, original (was price), unitOfMeasure, promotion, alternate (bulk and per-unit), clearance, specialBuy, conditionalPromotions, mapDetail |
badges | Badges at storeid, such as Exclusive, Best Seller, and event badges |
fulfillment | Pickup at storeid (bopis, with on-hand inventory.quantity, in or out of stock, curbside) and delivery to zipcode (express delivery and ship to home, with dates and charges) |
availabilityType | Discontinued, buyable, and availability type |
media | Images, videos, 360° spins, and AR links |
details | Description, highlights, collection, and installation |
specificationGroup | Specifications by group |
keyProductFeatures | Key features |
reviews | Average rating and review count |
taxonomy | Breadcrumbs and brand link |
info, seo, seoDescription, subscription, favoriteDetail, bundleItems, bundleSpecificationDetails, sizeAndFitDetail | Page settings and flags, SEO text, Subscribe & Save, favorite count, and bundle content |
Product Endpoint
Returns the page HTML for a store and zip code. The page is returned only after it reports zipcode as its delivery zip code.
Basic Example
curl "https://api.scrape.do/plugin/homedepot/product?token=YOUR_TOKEN&url=https%3A%2F%2Fwww.homedepot.com%2Fp%2FMilwaukee-M12-FUEL-12V-Lithium-Ion-Brushless-Cordless-3-in-Cut-Off-Saw-w-M12-XC-5-0-Ah-Battery-2-Pack-Starter-Kit-and-Charger-2522-20-48-59-2450P%2F330625530&storeid=2414&zipcode=04401"Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
token | string | yes | Your Scrape.do API authentication token |
url | string | yes | Full Home Depot URL, URL-encoded. Must be on homedepot.com |
storeid | string | yes | Home Depot store number, digits only, for example 2414. Resolve one with the stores endpoint |
zipcode | string | yes | Zip code used to localize the page, digits only, for example 04401 |
timeout | integer | no | Request timeout in milliseconds. Defaults to the system maximum |
disableretry | boolean | no | Make a single attempt with no retry. Defaults to false |
Notes
- The response is the full page HTML, typically around 700 KB.
- For the store's price, stock, and pickup options, use the PDP endpoint.
Stores Endpoint
Resolves nearby stores, including the storeId values the PDP and product endpoints expect.
Basic Example
curl "https://api.scrape.do/plugin/homedepot/stores?token=YOUR_TOKEN&zipcode=04401"Request Parameters
Provide either zipcode or both lat and lng. Sending neither returns 400 zipcode (or lat+lng) is required, and lat without lng is rejected the same way.
| Parameter | Type | Required | Description |
|---|---|---|---|
token | string | yes | Your Scrape.do API authentication token |
zipcode | string | one of zipcode or lat+lng | Zip code to search around, digits only, for example 04401 |
lat | number | one of zipcode or lat+lng | Latitude, used together with lng |
lng | number | one of zipcode or lat+lng | Longitude, used together with lat |
pagesize | integer | no | Maximum number of stores to return. Defaults to 20 |
timeout | integer | no | Request timeout in milliseconds. Defaults to the system maximum |
disableretry | boolean | no | Make a single attempt with no retry. Defaults to false |
Coordinate Example
curl "https://api.scrape.do/plugin/homedepot/stores?token=YOUR_TOKEN&lat=44.8&lng=-68.75"Response
{
"data": {
"storeSearch": {
"stores": [
{
"storeId": "2414",
"name": "Bangor",
"phone": "(207)990-3133",
"distance": "2.59",
"storeTimeZone": "EST5EDT",
"address": {
"street": "650 Stillwater Avenue",
"city": "Bangor",
"state": "ME",
"country": "US",
"postalCode": "04401"
},
"coordinates": {
"lat": 44.83381,
"lng": -68.754598
}
}
]
}
}
}| Field | Description |
|---|---|
storeId | Pass this as storeid to the PDP or product endpoint |
name | Store name, usually the city or neighborhood |
phone | Store phone number |
distance | Distance in miles from the searched location |
storeTimeZone | Store time zone |
address | Street, city, state, country, and postal code |
coordinates | Store latitude and longitude |
Up to pagesize stores are returned, so a rural zip code may return only a few. A zip code with no nearby stores returns 200 with an empty stores array rather than an error.
Error Responses
| Status | Body | Endpoint | Cause |
|---|---|---|---|
400 | {"error":"token is required"} | all | token missing |
400 | {"error":"zipcode is required"} | /pdp, /product | zipcode missing |
400 | {"error":"invalid zipcode provided"} | all | zipcode is not digits, or on /pdp not exactly 5 digits |
400 | {"error":"storeid is required"} | /pdp, /product | storeid missing |
400 | {"error":"invalid storeid provided"} | /pdp, /product | storeid is not digits, or on /pdp longer than 5 digits |
400 | {"error":"url is required"} | /pdp, /product | url missing |
400 | {"error":"valid homedepot.com url expected"} | /pdp, /product | url is not on homedepot.com |
400 | {"error":"valid homedepot.com product url expected"} | /pdp | url is not a /p/ or /pep/ product URL ending in a numeric item ID |
400 | {"error":"zipcode (or lat+lng) is required"} | /stores | Neither zipcode nor both lat and lng |
400 | {"error":"invalid pagesize provided"} | /stores | pagesize is not a number |
404 | {"error":"product not found"} | /pdp | Home Depot has no item with that ID |
502 | {"error":"homedepot pdp failed","message":"…"} | /pdp | The product could not be fetched for the store within the retry budget or timeout, including when storeid is not a Home Depot store |
502 | {"error":"homedepot localization failed","message":"…"} | /product | The page could not be returned for the zip code within the retry budget or timeout |
502 | {"error":"homedepot store search failed","message":"…"} | /stores | Stores could not be resolved within the retry budget or timeout |
None of these responses are charged. A 502 is safe to retry.

