To get the price of bitcoin and other cryptocurrencies into my Google Sheets spreadsheet, I use this function:
=importJSON("https://api.coingecko.com/api/v3/