The Home Depot Sorting API
SerpApi’s The Home Depot Sorting API allows you to change the ordering of scraped data according to various product details such as price, overall rating of customer reviews, etc. via hd_sort.
API Examples
Example results for q: chair
and hd_sort:top_rated

{
"products": [
{
"thumbnail": "https://images.homedepot-static.com/catalog/productImages/400/d6/d689f81a-f4c1-4b4f-b8f7-95312ec32ce2_400.jpg",
"title": "PPF-40 Rocking Chair Red Paint",
"brand": "BEHR ULTRA",
"rating": 4.9,
"reviews": 1799,
"price": "$12.98",
"link": "https://www.homedepot.com/p/BEHR-ULTRA-1-qt-PPF-40-Rocking-Chair-Red-Eggshell-Enamel-Interior-Paint-and-Primer-in-One-275304/310907198",
"product_id": "310907198",
"serpapi_link": "https://serpapi.com/search.json?engine=home_depot_product&product_id=310907198",
"delivery": "Free delivery with $45 order"
},
{
"thumbnail": "https://images.homedepot-static.com/productImages/0a93764a-d660-409c-9f7a-7ac597a04393/svn/polywood-plastic-adirondack-chairs-ad440gy-64_400.jpg",
"variants": [
"https://images.homedepot-static.com/catalog/swatchImages/35/09/09d2404a-6f5b-4373-8e66-951c6088b8c2_35.jpg",
"https://images.homedepot-static.com/catalog/swatchImages/35/48/48878675-2f5a-4fe1-a5a9-3d3cd5d8418f_35.jpg",
"https://images.homedepot-static.com/catalog/swatchImages/35/d0/d02f6460-5542-48e9-8633-fa5e6b2a3e59_35.jpg",
"https://images.homedepot-static.com/catalog/swatchImages/35/a7/a7a566a1-c36d-4d12-b82b-ad4a28628afd_35.jpg",
"https://images.homedepot-static.com/catalog/swatchImages/35/d7/d7dc57a3-7ac2-4b7c-956b-a89ecc11b4e3_35.jpg"
],
"title": "Grant Park Traditional Curveback Gray Plastic Outdoor Patio Adirondack Chair",
"brand": "POLYWOOD",
"rating": 4.9,
"reviews": 870,
"badge": "Best Seller",
"price": "$169.00",
"link": "https://www.homedepot.com/p/POLYWOOD-Grant-Park-Traditional-Curveback-Gray-Plastic-Outdoor-Patio-Adirondack-Chair-AD440GY/303508177",
"product_id": "303508177",
"serpapi_link": "https://serpapi.com/search.json?engine=home_depot_product&product_id=303508177",
"price_was": "$189.00",
"price_saving": "Save $20.00 (11%)",
"delivery": "Free delivery"
},
{
"thumbnail": "https://images.homedepot-static.com/productImages/2bd1add2-570e-4dd0-859c-a124de6376b1/svn/white-lifetime-folding-chairs-80359-64_400.jpg",
"variants": [
"https://images.homedepot-static.com/catalog/swatchImages/35/58/581296c7-f179-43ca-b3df-40d868daacb1_35.jpg",
"https://images.homedepot-static.com/catalog/swatchImages/35/2f/2f2b31cd-a1f2-43c0-a915-1fa3509de265_35.jpg"
],
"title": "White Plastic Seat Metal Frame Outdoor Safe Folding Chair (Set of 4)",
"brand": "Lifetime",
"rating": 5.0,
"reviews": 209,
"price": "$140.97",
"link": "https://www.homedepot.com/p/Lifetime-White-Plastic-Seat-Metal-Frame-Outdoor-Safe-Folding-Chair-Set-of-4-80359/205054104",
"product_id": "205054104",
"serpapi_link": "https://serpapi.com/search.json?engine=home_depot_product&product_id=205054104",
"delivery": "Free delivery"
},
...
],
...
}
Example results for q: Comfort Grip Stainless Steel Square Notch
and hd_sort:best_match

{
"products": [
{
"position": 1,
"product_id": "310849407",
"title": "1/2 in. x 1/2 in. x 1/2 in. Cork Handle XL Stainless Steel Square-Notch Flooring Trowel",
"thumbnails": [
[
"https://images.thdstatic.com/productImages/a349192c-8d64-47ac-b40a-2494634719e6/svn/qep-tile-trowels-49952-64_65.jpg",
"https://images.thdstatic.com/productImages/a349192c-8d64-47ac-b40a-2494634719e6/svn/qep-tile-trowels-49952-64_100.jpg",
"https://images.thdstatic.com/productImages/a349192c-8d64-47ac-b40a-2494634719e6/svn/qep-tile-trowels-49952-64_145.jpg",
],
...
],
"link": "https://www.homedepot.com/p/QEP-1-2-in-x-1-2-in-x-1-2-in-Cork-Handle-XL-Stainless-Steel-Square-Notch-Flooring-Trowel-49952/310849407",
"serpapi_link": "https://serpapi.com/search.json?delivery_zip=04401&engine=home_depot_product&product_id=310849407&store_id=2414",
"model_number": "49952",
"brand": "QEP",
"collection": "https://www.homedepot.com",
"favorite": 37,
"rating": 4.6378,
"reviews": 185,
"price": 18.64,
"delivery": {
"free": true,
"free_delivery_threshold": false
},
"pickup": {
"quantity": 8,
"store_name": "Bangor",
"distance": 0
}
},
...
],
...
}
Example results for q: Fiberglass Exhaust Header
and hd_sort:top_sellers

{
"products": [
{
"position": 1,
"product_id": "307906281",
"title": "Manifold to EGR Tube Connector",
"thumbnails": [
[
"https://images.thdstatic.com/productImages/209e1d9c-1db5-4dd9-8fc4-a04b607600bc/svn/oe-solutions-fuel-systems-917-400-64_65.jpg",
"https://images.thdstatic.com/productImages/209e1d9c-1db5-4dd9-8fc4-a04b607600bc/svn/oe-solutions-fuel-systems-917-400-64_100.jpg",
"https://images.thdstatic.com/productImages/209e1d9c-1db5-4dd9-8fc4-a04b607600bc/svn/oe-solutions-fuel-systems-917-400-64_145.jpg",
...
]
],
"link": "https://www.homedepot.com/p/OE-Solutions-Manifold-to-EGR-Tube-Connector-917-400/307906281",
"serpapi_link": "https://serpapi.com/search.json?delivery_zip=04401&engine=home_depot_product&product_id=307906281&store_id=2414",
"model_number": "917-400",
"brand": "OE Solutions",
"collection": "https://www.homedepot.com",
"favorite": 1,
"rating": 0,
"reviews": 0,
"price": 12.09,
"delivery": {
"free": true,
"free_delivery_threshold": false
},
"pickup": {
"free_ship_to_store": true
}
},
...
],
...
}
Example results for q: Durable Scraping Tool
and hd_sort:price_low_to_high

{
"products": [
{
"position": 1,
"product_id": "309976495",
"title": "Plastic Putty Knife Set",
"thumbnails": [
[
"https://images.thdstatic.com/productImages/b339d5dc-9d3a-4816-a510-09c0a2a98d41/svn/anvil-putty-knife-18pt0826-64_65.jpg",
"https://images.thdstatic.com/productImages/b339d5dc-9d3a-4816-a510-09c0a2a98d41/svn/anvil-putty-knife-18pt0826-64_100.jpg",
"https://images.thdstatic.com/productImages/b339d5dc-9d3a-4816-a510-09c0a2a98d41/svn/anvil-putty-knife-18pt0826-64_145.jpg",
...
]
],
"link": "https://www.homedepot.com/p/Anvil-Plastic-Putty-Knife-Set-18PT0826/309976495",
"serpapi_link": "https://serpapi.com/search.json?delivery_zip=04401&engine=home_depot_product&product_id=309976495&store_id=2414",
"model_number": "18PT0826",
"brand": "Anvil",
"collection": "https://www.homedepot.com",
"favorite": 3159,
"rating": 4.4008,
"reviews": 262,
"price": 2.98,
"badges": [
"bestseller"
],
"delivery": {
"schedule_delivery": true
},
"pickup": {
"quantity": 109,
"store_name": "Bangor",
"distance": 0
}
},
...
],
...
}
Example results for q: Scraper Blade with Warranty
and hd_sort:price_high_to_low

{
"products": [
{
"position": 1,
"product_id": "314515910",
"title": "Manual Mini Scraper (Pack of 12)",
"thumbnails": [
[
"https://images.thdstatic.com/productImages/612ab202-74f0-4576-9149-9b7cfe1986be/svn/slice-utility-knives-10594-64_65.jpg",
"https://images.thdstatic.com/productImages/612ab202-74f0-4576-9149-9b7cfe1986be/svn/slice-utility-knives-10594-64_100.jpg",
"https://images.thdstatic.com/productImages/612ab202-74f0-4576-9149-9b7cfe1986be/svn/slice-utility-knives-10594-64_145.jpg",
...
]
],
"link": "https://www.homedepot.com/p/Slice-Manual-Mini-Scraper-Pack-of-12-10594/314515910",
"serpapi_link": "https://serpapi.com/search.json?delivery_zip=04401&engine=home_depot_product&product_id=314515910&store_id=2414",
"model_number": "10594",
"brand": "Slice",
"collection": "https://www.homedepot.com",
"rating": 0,
"price": 143.09,
"unit": "package",
"delivery": {
"free": true,
"free_delivery_threshold": false
},
"pickup": {
"free_ship_to_store": true
}
},
...
],
...
}