Bitcoin price calculator provides a simple API to get the Bitcoin price.
Return the current Bitcoin price
Usage
https://bitcoinpricecalc.com/api?action=price¤cy=<currency>
Replace <currency> with the desired currency.
Available currencies:
Example
https://bitcoinpricecalc.com/api?action=price¤cy=USD
Response
{"price":"19131","date":"2022-10-16 14:10:00"}
Return the Bitcoin price from a specific date.
Usage
https://bitcoinpricecalc.com/api?action=price¤cy=<currency>&date=<date>
Replace <currency> with the desired currency.
Available currencies:
Replace <date> with the desired date.
Example
https://bitcoinpricecalc.com/api?action=price¤cy=USD&date=2021-01-01
Response
{"price":"29346","date":"2021-01-01 00:00:00"}