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_ask":65398,"price_bid":65390,"date":"2024-10-15 06:45: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=2024-10-15
Response
{"price_ask":66070,"price_bid":66069,"date":"2024-10-15 00:00:00"}