Question Detail

Blockchain API for Bitcoin

1 years ago Views 215 Visit Post Reply

I want to use Implement Bitcoins all state, I want Bitcoin's Current Value for USD Doller and INR through APIs. Is there any Free API provide who is almost near to Bitcoin's Real Current Value?


Thread Reply

Bili Greed

- 1 years ago

Some API calls are available with CORS headers if you add a &cors=true paramter to the GET request

URL: https://blockchain.info/ticker

No Parameters

Returns a JSON object with the currency codes as keys. "15m" is the 15 minutes delayed market price, "last" is the most recent market price, "symbol" is the currency symbol.

Hemant Sharma

- 1 years ago

Convert x value in the provided currency to btc.

ex: https://blockchain.info/tobtc?currency=USD&value=500

Parameters

  • currency - A currency code. See list above.
  • value - Value to convert.

Returns the value in BTC.

Hemant Sharma

- 1 years ago

Convert x value in the provided currency to btc.

ex: https://blockchain.info/tobtc?currency=USD&value=500

Parameters

  • currency - A currency code. See list above.
  • value - Value to convert.

Returns the value in BTC.