<p>If you want that cars could be paid by Bitcoin you need some payment gateway. </p>

<p>Otherwise, if you want just to display prices in Bitcoin you can use some blockchain.info API to get the price for it. 
For example, this URL will return you how much is 5000 BTC:  <a href="https://blockchain.info/tobtc?currency=USD&amp;value=5000" rel="nofollow noreferrer">https://blockchain.info/tobtc?currency=USD&amp;value=5000</a></p>

CC BY-SA 3.0
2017-12-10T00:06:15.510Z
yes i want only to display it, so how can do it? thanks so much
Filippo Martin
CC BY-SA 3.0
2017-12-10T00:35:07.970Z
Use some api 
for example, this is how much btc is $5000 https://blockchain.info/tobtc?currency=USD&value=5000
djm.im
CC BY-SA 3.0
2017-12-10T00:40:06.443Z
i not understand :-( i'm using Wordpress, but not know what i need to add and where
Filippo Martin
CC BY-SA 3.0
2017-12-10T00:41:37.557Z
for example this is API from Coindesk, but where i need to paste it? https://www.coindesk.com/api/
Filippo Martin
CC BY-SA 3.0
2017-12-10T00:49:37.870Z
That is more PHP code / Wordpress code related question. You need to put a code snippet that will make an api call with the appropriate price.
djm.im
CC BY-SA 3.0
2017-12-09T23:28:09.437Z
2017-12-09T23:28:09.437Z
djm.im
<p>Some bitcoin exchanges will offer an API to return the current BTC price, so you can pull data from them, divide the item price into btc price, and display the resulting btc price to your customers. </p>

<p>A quick search brings up a <a href="https://www.coindesk.com/api/" rel="nofollow noreferrer">Coinbase API for btc price</a> that would probably work for you. </p>

CC BY-SA 3.0
2017-12-10T00:08:05.833Z
i know i must use API but not know what and where paste codes
Filippo Martin
CC BY-SA 3.0
2017-12-10T03:17:27.153Z
Your question relates more to 'how to work with an API call' than it does 'how the bitcoin network works'. You may find better answers in another forum.
chytrik
CC BY-SA 3.0
2017-12-09T23:06:30.663Z
2017-12-09T23:06:30.663Z
chytrik
<p>Hello i'm developing this website <a href="https://buysellcarwithbitcoin.com/" rel="nofollow noreferrer">https://buysellcarwithbitcoin.com/</a> how can i display the USD price of classified ads also converted in Bitcoin ? thanks!</p>

<api>
How to display USD and Bitcoin price on Classified ads?
Filippo Martin
# How to display USD and Bitcoin price on Classified ads?

(Asked by: username_0 on 2017-12-09)

Hello i'm developing this website <https://buysellcarwithbitcoin.com/> how can i display the USD price of classified ads also converted in Bitcoin ? thanks!

**Tags:** api


---

## 2 answers

### Answer by username_1 on 2017-12-09. Score: 1

If you want that cars could be paid by Bitcoin you need some payment gateway.

Otherwise, if you want just to display prices in Bitcoin you can use some blockchain.info API to get the price for it.
For example, this URL will return you how much is 5000 BTC: <https://blockchain.info/tobtc?currency=USD&value=5000>

> **Comments:**
> **username_0**: yes i want only to display it, so how can do it? thanks so much  
> **username_1**: Use some api  for example, this is how much btc is $5000 https://blockchain.info/tobtc?currency=USD&value=5000  
> **username_0**: i not understand :-( i'm using Wordpress, but not know what i need to add and where  
> **username_0**: for example this is API from Coindesk, but where i need to paste it? https://www.coindesk.com/api/  
> **username_1**: That is more PHP code / Wordpress code related question. You need to put a code snippet that will make an api call with the appropriate price.  

---

### Answer by username_2 on 2017-12-09. Score: 0

Some bitcoin exchanges will offer an API to return the current BTC price, so you can pull data from them, divide the item price into btc price, and display the resulting btc price to your customers.

A quick search brings up a [Coinbase API for btc price](https://www.coindesk.com/api/) that would probably work for you.

> **Comments:**
> **username_0**: i know i must use API but not know what and where paste codes  
> **username_2**: Your question relates more to 'how to work with an API call' than it does 'how the bitcoin network works'. You may find better answers in another forum.  

---

