





API:Scraper
API Endpoint Path
required
Homedepot SERP product data Scraper API
https://www.buyfromlo.com/api/1/homedepot
Call Method
Required
GET
Type of Data Return
JSON
JSON output structured data for Homedepot SERP product data
Token
required
BUYFROMLO API token. Subscription API is available on www.buyfromlo.com/apis, and accessible to on-site APP on www.buyfromlo.com/app 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 SERP product data Scraper API
https://www.buyfromlo.com/api/1/homedepot
Python Code Sample
import requests
apiendpoint = "https://www.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"
## Call the api ##
response = requests.get(apiendpoint + ""?token="" + token + ""&keyword="" + keyword + "&page=" + page + "&sortby=" + sortby)
print(response.status)
print(response.json())
JSON Response Sample
{
"SERP Position": "",
"Product ID": "",
"Product Title": "",
"Product Image": "",
"Product Link": "",
"Product Brand": "",
"Product Rating": "",
"Product Review": "",
"Product Price": "",
"Product Delivery": ""
}