logo

Home Depot Scraper API

View as Markdown

Get 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

EndpointReturnsPurpose
/plugin/homedepot/pdpJSONProduct data for one item at a store and zip code: store price, badges, stock, pickup and delivery
/plugin/homedepot/productHTMLThe raw product page HTML for a store and zip code
/plugin/homedepot/storesJSONStores 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

ParameterTypeRequiredDescription
tokenstringyesYour Scrape.do API authentication token
urlstringyesHome 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
storeidstringyesHome 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
zipcodestringyes5-digit delivery zip code, for example 10010. Delivery options are for this zip code
timeoutintegernoRequest timeout in milliseconds. Defaults to the system maximum
disableretrybooleannoMake 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:

FieldDescription
itemId, identifiersTitle (productLabel), brand, model, store SKU, OMS and UPC numbers, canonical URL, product type, parent ID
pricingPrice at storeid: value, original (was price), unitOfMeasure, promotion, alternate (bulk and per-unit), clearance, specialBuy, conditionalPromotions, mapDetail
badgesBadges at storeid, such as Exclusive, Best Seller, and event badges
fulfillmentPickup 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)
availabilityTypeDiscontinued, buyable, and availability type
mediaImages, videos, 360° spins, and AR links
detailsDescription, highlights, collection, and installation
specificationGroupSpecifications by group
keyProductFeaturesKey features
reviewsAverage rating and review count
taxonomyBreadcrumbs and brand link
info, seo, seoDescription, subscription, favoriteDetail, bundleItems, bundleSpecificationDetails, sizeAndFitDetailPage 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

ParameterTypeRequiredDescription
tokenstringyesYour Scrape.do API authentication token
urlstringyesFull Home Depot URL, URL-encoded. Must be on homedepot.com
storeidstringyesHome Depot store number, digits only, for example 2414. Resolve one with the stores endpoint
zipcodestringyesZip code used to localize the page, digits only, for example 04401
timeoutintegernoRequest timeout in milliseconds. Defaults to the system maximum
disableretrybooleannoMake 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.

ParameterTypeRequiredDescription
tokenstringyesYour Scrape.do API authentication token
zipcodestringone of zipcode or lat+lngZip code to search around, digits only, for example 04401
latnumberone of zipcode or lat+lngLatitude, used together with lng
lngnumberone of zipcode or lat+lngLongitude, used together with lat
pagesizeintegernoMaximum number of stores to return. Defaults to 20
timeoutintegernoRequest timeout in milliseconds. Defaults to the system maximum
disableretrybooleannoMake 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
          }
        }
      ]
    }
  }
}
FieldDescription
storeIdPass this as storeid to the PDP or product endpoint
nameStore name, usually the city or neighborhood
phoneStore phone number
distanceDistance in miles from the searched location
storeTimeZoneStore time zone
addressStreet, city, state, country, and postal code
coordinatesStore 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

StatusBodyEndpointCause
400{"error":"token is required"}alltoken missing
400{"error":"zipcode is required"}/pdp, /productzipcode missing
400{"error":"invalid zipcode provided"}allzipcode is not digits, or on /pdp not exactly 5 digits
400{"error":"storeid is required"}/pdp, /productstoreid missing
400{"error":"invalid storeid provided"}/pdp, /productstoreid is not digits, or on /pdp longer than 5 digits
400{"error":"url is required"}/pdp, /producturl missing
400{"error":"valid homedepot.com url expected"}/pdp, /producturl is not on homedepot.com
400{"error":"valid homedepot.com product url expected"}/pdpurl is not a /p/ or /pep/ product URL ending in a numeric item ID
400{"error":"zipcode (or lat+lng) is required"}/storesNeither zipcode nor both lat and lng
400{"error":"invalid pagesize provided"}/storespagesize is not a number
404{"error":"product not found"}/pdpHome Depot has no item with that ID
502{"error":"homedepot pdp failed","message":"…"}/pdpThe 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":"…"}/productThe page could not be returned for the zip code within the retry budget or timeout
502{"error":"homedepot store search failed","message":"…"}/storesStores could not be resolved within the retry budget or timeout

None of these responses are charged. A 502 is safe to retry.

On this page