Skip to content

I am trying to find the lowest price on items like wood and sometimes they fluctuate a lot

Notifications You must be signed in to change notification settings

joeygallegos/Home-Depot-API-Adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Home Depot API Adapter

This is a POC to query data from Home Depot's GraphQL isntance to get item and pricing data. I am trying to monitor for the lowest price on items like lumber, and sometimes they fluctuate a lot. All you need to run the check is the store ID and zipcode. With the API response you could theoretically monitor for lowest price.

Behind the scenes

To pull the item data from the hydration API, you need to POST data to the endpoint requesting details for an item at a particular store and zipcode. Below is a sample JSON POST request to the endpoint.

{
    "operationName": "productClientOnlyProduct",
    "variables": {
        "skipSpecificationGroup": false,
        "skipSubscribeAndSave": false,
        "skipKPF": false,
        "itemId": "305418731",
        "storeId": "534",
        "zipCode": "77449"
    },
    "query": "query productClientOnlyProduct(.....)"
}

We pull the graphql query from the file query.dat file, since we're not changing that data on the fly and it's a large amount of data.

About

I am trying to find the lowest price on items like wood and sometimes they fluctuate a lot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages