HomeDepot Product Scraper API

API Endpoint Specifications

  • Endpoint Path: /api/1/homedepot
  • Type of Data: JSON & 20/minute
  • Data Source: Homedepot
  • Request Limit: 500 request/month
  • Script & Integration: Code to integrate with cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript
HomeDepot Product Scraper API Endpoint Basic Info

API Endpoint Path

required

Homedepot Search Result Information Scraper API

api/1/homedepot


Call Method

Required

GET

Type of Data Return

JSON

Output structured JSON data on Homedepot SERP product


Available API Arguments & Parameters

token

required

BUYFROMLO API token. Paid subscription API is available: /api/1/homedepot, and accessible to on-site APP on /app/1/homedepotserp as well

keyword

required

Input a keyword in English

sortby

required

Sort out the SERP product data by two paramaters. TopSeller, BestReviews


page

Optional

Total amount of product SERP page scraping. Max. amount of pages are 5. The default value is 1st page, which is 1.


Homedepot Search Result Information Scraper API

api/1/homedepot


Code Integration and Response

Python Code Sample


import requests

apiendpoint = "https://api.buyfromlo.com/api/1/homedepot?"

## Required Arguments & Parameters ##

token = ""your buyfromlo token""
keyword = ""Input a query""
sortby = "sort by two options: TopSeller or BestReviews"

## Optional Argument ##
page="page number. The default number is 1"

data="keyword=" + keyword + "&page=" + page + "&sortby=" + sortby
headers={"Authorization": "Bearer " + token}

## Call the api ##
response = requests.get(apiendpoint + data, headers=headers)
print(response.status_code)
print(response.json())
                        

JSON Response Sample


{
    "SERP Position": " " (string),
    "Product ID": " " (string),
    "Product Title": " " (string),
    "Product Image": " " (string),
    "Product Link": " " (string),
    "Product Brand": " " (string),
    "Product Rating": " " (float),
    "Product Review": " " (integer),
    "Product Price": " " (float),
    "Product Delivery": " " (float),
}