> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Home Depot Products API

> Get a Home Depot product's title, price, regular price, store stock and nearest store by product URL and zip code.

`POST /v1/data/homedepot/products/run`

**Pricing:** $0.01 per product ($14.50 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**url** `string` *required*

Home Depot product page URL (homedepot.com/p/.../\<itemId>).

Format e.g. `https://www.example.com`.

**zipCode** `string`

5-digit US zip code; price and stock come from the Home Depot store nearest to it (default 30339, Atlanta).

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/homedepot/products/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "url": "https://www.homedepot.com/p/DEWALT-20V-MAX-Cordless-1-2-in-Drill-Driver-2-20V-1-3Ah-Batteries-Charger-and-Bag-DCD771C2/204279858",
    "zipCode": "30339"
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/homedepot/products/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "url": "https://www.homedepot.com/p/DEWALT-20V-MAX-Cordless-1-2-in-Drill-Driver-2-20V-1-3Ah-Batteries-Charger-and-Bag-DCD771C2/204279858",
    "zipCode": "30339"
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/homedepot/products/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "url": "https://www.homedepot.com/p/DEWALT-20V-MAX-Cordless-1-2-in-Drill-Driver-2-20V-1-3Ah-Batteries-Charger-and-Bag-DCD771C2/204279858",
  "zipCode": "30339"
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one product, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `itemId` | Item ID | text |
| `title` | Title | text |
| `productUrl` | Product URL | url |
| `price` | Price | number |
| `listPrice` | List Price | number |
| `bulkPrice` | Bulk Price | number |
| `currency` | Currency | text |
| `storeQuantity` | Store Quantity | number |
| `store` | Store | object |
| `mainImage` | Main Image | url |
| `description` | Description | text |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "homedepot/products",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "bulkPrice": null,
      "store": {
        "id": "0121",
        "name": "Cumberland",
        "address": "2450 Cumberland Pkwy",
        "city": "Atlanta",
        "state": "GA",
        "zip": "30339",
        "phone": "(770)432-9930",
        "distance": 1.272093205034596,
        "hours": {
          "mon": {
            "open": "6:00",
            "close": "22:00"
          },
          "tue": {
            "open": "6:00",
            "close": "22:00"
          },
          "wed": {
            "open": "6:00",
            "close": "22:00"
          },
          "thu": {
            "open": "6:00",
            "close": "22:00"
          },
          "fri": {
            "open": "6:00",
            "close": "22:00"
          },
          "sat": {
            "open": "6:00",
            "close": "22:00"
          },
          "sun": {
            "open": "8:00",
            "close": "20:00"
          }
        }
      },
      "itemId": "204279858",
      "mainImage": "https://images.thdstatic.com/productImages/8ce58216-d57a-4e42-bd08-1981d630f6fe/svn/dewalt-power-drills-dcd771c2-64_1000.jpg",
      "storeQuantity": 0,
      "description": "Complete jobs in tight spots with the lightweight 20V MAX compact drill/driver. 20V MAX cordless drill driver kit delivers compact performance for drilling a...",
      "title": "20V MAX Cordless 1/2 in. Drill/Driver, (2) 20V 1.3Ah Batteries, Charger and Bag",
      "productUrl": "https://www.homedepot.com/p/DEWALT-20V-MAX-Cordless-1-2-in-Drill-Driver-2-20V-1-3Ah-Batteries-Charger-and-Bag-DCD771C2/204279858",
      "currency": "USD",
      "listPrice": 179.0,
      "price": 129.0
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.