I am making a discord bot using discord.js, and I want to add a command that allows users to see the current bitcoin price. I am using the CoinDesk API and the data I need is contained in the JSON file located at this link: https://api.coindesk.com/v1/bpi/currentprice/BTC.json
I am somewhat new to JavaScript, and I have tried tutorials on web scraping and data handling to no prevail. I know I need to pull the data from 'bpi' > 'USD' > 'rate', but I do not know how to do so. I would greatly appreciate tips on what to use, not so much the exact code I need to write. I am not looking for anyone to solve this problem for me, I just need to be pointed in the right direction.