The easiest way to fetch cryptocurrency prices into Google Sheets and Excel.
Unlike Google Sheets, Microsoft Excel does not provide a simple way to fetch live cryptocurrency prices. Fortunately, you can use the Price2Sheet API to get real-time data with built-in Excel functions.
The simplest way to fetch crypto prices in Excel is using WEBSERVICE
:
=WEBSERVICE("https://api.price2sheet.com/raw/btc/usd")
This will return the price as plain text.
If you need to fetch prices in XML format and extract the value, use:
=FILTERXML(WEBSERVICE("https://api.price2sheet.com/xml/eth/usd"), "//price")
Since Excel does not support JSON natively, you can use Power Query:
https://api.price2sheet.com/json/sol/usd
If your Excel settings use a comma (,
) instead of a period (.
) for decimals, use:
=NUMBERVALUE(WEBSERVICE("https://api.price2sheet.com/raw/btc/eur"), ".")