Core APIs
...
Product API
Parameters
Category
3min
category parameters get get /request the category parameters are applicable when making a request with type=category to retrieve category results from home depot the category is specified in the category id parameter the parameters should be appended as querystring parameters to the home improvement product data api get http request category results are retrieved from the category results page https //www homedepot com/b/n 5yc1vzbm92 on home depot for example, to request category results for the category id of n 5yc1vzbm92 , the request would be http https //api backyardapi com/request?api key=demo\&engine=homedepot\&type=category\&category id=n 5yc1vzbm92curl l get https //api backyardapi com/request d api key="demo" d engine="homedepot" d type="category" d category id="5f9bb75e8bee926724ada8f8c0dae926912e15a2"const axios = require('axios'); // set up the request parameters const params = { api key "demo", engine "homedepot", type "category", category id "n 5yc1vzbm92" } // make the http get request to backyard api axios get('https //api backyardapi com/request', { params }) then(response => { // print the json response from backyard api console log(json stringify(response data, 0, 2)); }) catch(error => { // catch and print the error console log(error); })import requests import json \# set up the request parameters params = { 'api key' 'demo', 'engine' 'homedepot', 'type' 'category', 'category id' 'n 5yc1vzbm92' } \# make the http get request to backyard api api result = requests get('https //api backyardapi com/request', params) \# print the json response from backyard api print(json dumps(api result json())) category parameters the following parameters are available for all requests made when type=category parameter required description engine required the engine of home improvement data to retrieve, for example homedepot category id required a category id to retrieve results from you may supply any arbitary value in the category id parameter however we recommend using a category id returned from the categories api https //docs trajectdata com/backyardapi/categories api/overview as these are known good category ids from home improvement sort by optional determines how the results are sorted valid values are best seller sort results by best selling products first most popular sort results by most popular products first price high to low sort results by highest to lowest priced price low to high sort results by lowest to highest priced highest rating sort results by highest rated first min price optional determines the minimum price of results to return, expressed in dollars and cents (i e min price=2 99 for $2 99) max price optional determines the maximum price of results to return, expressed in dollars and cents (i e min price=39 99 for $39 99) page optional the current page of results to retrieve inspect the pagination results property for details on the number of pages available max page optional use the max page parameter to get multiple pages of results in one request the api will automatically paginate through pages and concatenate the results into one response see the pagination https //docs trajectdata com/backyardapi/home improvement product data api/pagination docs for more information url optional the home improvement category results page to retrieve results from note if the url parameter is supplied then all other parameters are ignored as they are overriden be those specified in the url parameter next steps category results https //docs trajectdata com/backyardapi/home improvement product data api/results/category