<p>See <a href="https://github.com/miohtama/bitcoin-prices" rel="nofollow">bitcoin-prices.js</a> library for JavaScript (front end, no server-side components needed) that uses free <a href="https://bitcoinaverage.com/" rel="nofollow">bitcoinaverage.com API</a>.</p>

CC BY-SA 3.0
2015-12-05T03:49:49.613Z
2015-12-05T03:49:49.613Z
Mikko Ohtamaa
<p>Check this API <a href="https://bitaps.com/api/#Market_API" rel="nofollow noreferrer">https://bitaps.com/api/#Market_API</a></p>

<p>ticker  for current exchange rates
history  for market history</p>

CC BY-SA 3.0
2016-11-30T23:34:21.950Z
2016-11-30T23:34:21.950Z
bitaps.com
<p>You can get multiple currencies in a single request with Blockchain.info (<code>https://blockchain.info/ticker</code>)</p>

CC BY-SA 3.0
2017-12-27T14:32:49.330Z
2017-12-27T14:32:49.330Z
user2298995
<p><a href="http://www.xe.com/xecurrencydata/" rel="nofollow">http://www.xe.com/xecurrencydata/</a> but it will cost you, or some of the free services like: <a href="http://www.coindesk.com/api/" rel="nofollow">http://www.coindesk.com/api/</a> (but you'll have far less functions)</p>

CC BY-SA 3.0
2015-03-04T04:21:59.983Z
2015-03-04T04:21:59.983Z
ElRey777
<p>All the API's you've mentioned are reliable in the sense that they have very good uptime availability and have excellently calculated rates <em>for their domains.</em> You have to know why you need a particular rate. The data comes from independent exchanges and various algorithmic meshes of exchange data. But if you need to make the trade yourself, you want to know the likelihood you'll be able to buy or sell at any given price at the time of the rate quote. For this reason, you should pick an API that is relevant directly to where you exchange your funds.</p>

<p>This may seem nitpicky, but Bitcoin is a relatively small market, so a market price is a lot more difficult to determine with accuracy. Even the international foreign exchange market cannot guarantee a magic price you will settle at because fees and delivery mechanisms vary infinitely.</p>

CC BY-SA 3.0
2015-09-05T23:29:06.027Z
2015-09-05T23:29:06.027Z
Kamuela Franco
<p>All of the other answers, containing proper API solutions, look good. If you're after a really lo-tech, no-fuss solution, submit an http request to google with the query "1 BTC in USD" (or whatever currency you want to convert to) and then scrape the answer given.</p>

<p>A complete hack compared to a proper API, but that may be easier if you want something quick and dirty.</p>

CC BY-SA 3.0
2017-12-27T13:54:05.620Z
2017-12-27T13:54:05.620Z
Phil Whittington
<p>Basically what I'm looking for is a reliable API that allows for the conversion of an imputed currency amount such as USD/Euro amount and a conversion would be made that would  convert the amount to BTC.</p>

<p>I want to also point out that I am not looking to convert hard cash for actual bitcoin. I am only looking to determine the current value conversion of a particular USD/Euro at that particular time period. </p>

<p>I am hoping to use this feature on a current website (HTML/PHP/ETC..) that I am working on.</p>

<p>If anyone can point me to a reliable API that can perform such a task please let me know. Also if you happen to have any guides in regards to implementing/using the API that would also be greatly appreciated.</p>

<hr>

<p>EDIT:</p>

<p>I want to also point out that I have gathered a few API URLs from numerous websites which can be viewed at the comment section. Now my question is how do I go about choosing the most efficient API and is their any step to step guides, that guides someone in implementing a particular API?</p>

CC BY-SA 3.0
2014-05-07T00:09:52.367Z
Which exchange APIs have you looked at so far?
Greg Hewgill
CC BY-SA 3.0
2014-05-07T00:51:41.617Z
I have looked at the following: https://coinbase.com/api/doc/1.0/prices.html
https://coinbase.com/api/v1/prices/spot_rate
http://bitcoincharts.com/about/markets-api/
https://blockchain.info/api/exchange_rates_api
https://btc-e.com/api/documentation
https://bitpay.com/ and https://coinbase.com/api/doc/1.0/currencies/exchange_rates.html But I'm guessing that the last one my serve me better?
Green
CC BY-SA 3.0
2014-05-07T01:04:24.100Z
Well that's a pretty comprehensive list, I don't think there's anything to add really. Perhaps you could update your question to state what you would like to know, since finding an API doesn't seem to be the hard part.
Greg Hewgill
CC BY-SA 3.0
2014-05-07T01:15:23.747Z
Ok ill be updating my question. But my question for you is which link do you feel is more reliable in terms of conversions? And any resources that you are aware of that helps and guides first time API users?
Green
<exchanges><api><php>
API for converting currency such as Euro/USD to BTC
Green
# API for converting currency such as Euro/USD to BTC

(Asked by: username_0 on 2014-05-07)

Basically what I'm looking for is a reliable API that allows for the conversion of an imputed currency amount such as USD/Euro amount and a conversion would be made that would convert the amount to BTC.

I want to also point out that I am not looking to convert hard cash for actual bitcoin. I am only looking to determine the current value conversion of a particular USD/Euro at that particular time period.

I am hoping to use this feature on a current website (HTML/PHP/ETC..) that I am working on.

If anyone can point me to a reliable API that can perform such a task please let me know. Also if you happen to have any guides in regards to implementing/using the API that would also be greatly appreciated.

---

EDIT:

I want to also point out that I have gathered a few API URLs from numerous websites which can be viewed at the comment section. Now my question is how do I go about choosing the most efficient API and is their any step to step guides, that guides someone in implementing a particular API?

**Tags:** exchanges, api, php

> **Comments:**
> **username_1**: Which exchange APIs have you looked at so far?  
> **username_0**: I have looked at the following: https://coinbase.com/api/doc/1.0/prices.html https://coinbase.com/api/v1/prices/spot_rate http://bitcoincharts.com/about/markets-api/ https://blockchain.info/api/exchange_rates_api https://btc-e.com/api/documentation https://bitpay.com/ and https://coinbase.com/api/doc/1.0/currencies/exchange_rates.html But I'm guessing that the last one my serve me better?  
> **username_1**: Well that's a pretty comprehensive list, I don't think there's anything to add really. Perhaps you could update your question to state what you would like to know, since finding an API doesn't seem to be the hard part.  
> **username_0**: Ok ill be updating my question. But my question for you is which link do you feel is more reliable in terms of conversions? And any resources that you are aware of that helps and guides first time API users?  

---

## 6 answers

### Answer by username_2 on 2015-12-05. Score: 2

See [bitcoin-prices.js](https://github.com/miohtama/bitcoin-prices) library for JavaScript (front end, no server-side components needed) that uses free [bitcoinaverage.com API](https://bitcoinaverage.com/).


---

### Answer by username_3 on 2016-11-30. Score: 1

Check this API <https://username_3/api/#Market_API>

ticker for current exchange rates
history for market history


---

### Answer by username_4 on 2017-12-27. Score: 1

You can get multiple currencies in a single request with Blockchain.info (`https://blockchain.info/ticker`)


---

### Answer by username_5 on 2015-03-04. Score: 1

<http://www.xe.com/xecurrencydata/> but it will cost you, or some of the free services like: <http://www.coindesk.com/api/> (but you'll have far less functions)


---

### Answer by username_6 on 2015-09-05. Score: 1

All the API's you've mentioned are reliable in the sense that they have very good uptime availability and have excellently calculated rates *for their domains.* You have to know why you need a particular rate. The data comes from independent exchanges and various algorithmic meshes of exchange data. But if you need to make the trade yourself, you want to know the likelihood you'll be able to buy or sell at any given price at the time of the rate quote. For this reason, you should pick an API that is relevant directly to where you exchange your funds.

This may seem nitpicky, but Bitcoin is a relatively small market, so a market price is a lot more difficult to determine with accuracy. Even the international foreign exchange market cannot guarantee a magic price you will settle at because fees and delivery mechanisms vary infinitely.


---

### Answer by username_7 on 2017-12-27. Score: 0

All of the other answers, containing proper API solutions, look good. If you're after a really lo-tech, no-fuss solution, submit an http request to google with the query "1 BTC in USD" (or whatever currency you want to convert to) and then scrape the answer given.

A complete hack compared to a proper API, but that may be easier if you want something quick and dirty.


---

