Unofficial Bunnings Stock Checker - Chrome Extension

In light of all of the great Bunnings deals posted to OzBargain, I've created a Chrome Extension that shows you stock quantity and status for your nearest stores!

This was roughly pulled together, so keen for your thoughts!

Bunnings Unofficial Stock Checker

Thanks to awesomewilly for the API info and DRAGONPHONEIX for testing!

Related Stores

Bunnings Warehouse
Bunnings Warehouse
Marketplace

Comments

  • Very nice, tested it on a few random items and it appears to be working however the product name doesn't appear in the header of your extension for some reason.
    Not bad for the first public release:)

    • Strange! I'll look into that, thanks!

      • Hey! Can;t seem to get it working. Any way to get it loaded in excel so it's more offline?

  • +1

    Nice work, that's quicker than looking at XHR or using Postman. Cheers MiCCAS.

  • +1

    Gave it a quick go on a couple of products, no issues here that I could see (and product name was visible in the extension). Thanks for making this available.

  • +4

    plague69 also created a website last week.

    Obviously it's important to remember their stock API is not live or completely accurate. You will find stores that report stock and have no stock.

  • Hey @MiCCAS, @awesomewilly, @DRAGONPHONEIX and @Plague69,

    The app and website seem to be broken at the moment, sadly both for me are not displaying all the stores. Only a few Bunnings in VIC!
    This could be just my PC - but mind checking it out? :)

    Very handy when working - love it!

    • Thanks for letting us know! I've fixed the Chrome Extension and published the update to the store, will let you know once it's approved.

  • +1

    Seems broken again. Last used it a week or two ago I'd say and it was ok.

    Search just shows the item and the extension just says "undefined"

    • Yeah looks like Bunnings have broken the lookup checkers :( These were so handy

    • I did a very small amount of digging. The URL used is still likely to be correct. It would seem they are actively blocking/preventing it when not coming from their web page or something. A bit out of my league. Maybe needs a cookie?

      e.g. I can see URLs like this returning some JSON about nearby stores, but when run manually in Postman or a browser, it returns "An error has occurred" which I presume is the issue.
      https://www.bunnings.com.au/api/v1/store/8161/nearest/5/0035…

    • +2

      Thanks for letting me know! I'll take a look at this :)

      • Could this error be something to do with it?

        A cookie associated with a resource at http://www.bunnings.com.au/ was set with SameSite=None but without Secure. A future release of Chrome will only deliver cookies marked SameSite=None if they are also marked Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5633521622188032

      • Seems to need cookie and requestverificationtoken. Good luck

      • Hey dude - any news?

        • +2

          Sorry about the delay in looking into this! It does appear that they're forcing a referrer check which is blocking access.

          I have a couple of ideas of things to try and will do my best to get this live again!

          Really appreciate your patience :)

          • @MiCCAS: I've needed this 3 times SINCE it has stopped working, and about twice prior… Murphys law at work!

            Anyway, i'm going to throw any resources i have at the matter too (thankyou for posting the source on GitHub!)

          • @MiCCAS: Any luck as of yet, just checked still not working for me

  • Is it possible to make this work for Bunnings Warehouse in NZ? Here is an example API link:
    https://www.bunnings.co.nz/api/v1/stores/9510

    • Bunnings changed their website to make it more difficult for extensions like these. It won't work for either AU or NZ sites at the moment.

  • this is kindof useless when the product is missing from the bunnings website.

    I just want to know stock levels for I/N 0197881

  • Hi MiCCAS, I think this Chrome Extension doesn't work any more

  • Can you please, please, please make one of these for the Repco site but as may stores as you can at one time?

Login or Join to leave a comment