API Usage

Bitcoin price calculator provides a simple API to get the Bitcoin price.

Return the current Bitcoin price

Usage

https://bitcoinpricecalc.com/api?action=price&currency=<currency>

Replace <currency> with the desired currency.

Available currencies:

  • EUR
  • USD

Example

https://bitcoinpricecalc.com/api?action=price&currency=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&currency=<currency>&date=<date>

Replace <currency> with the desired currency.

Available currencies:

  • EUR
  • USD

Replace <date> with the desired date.

Example

https://bitcoinpricecalc.com/api?action=price&currency=USD&date=2024-10-15

Response

{"price_ask":66070,"price_bid":66069,"date":"2024-10-15 00:00:00"}