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


2 Answers 2


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

  • yes i want only to display it, so how can do it? thanks so much Dec 10, 2017 at 0:06
  • Use some api for example, this is how much btc is $5000 blockchain.info/tobtc?currency=USD&value=5000
    – djm.im
    Dec 10, 2017 at 0:35
  • i not understand :-( i'm using Wordpress, but not know what i need to add and where Dec 10, 2017 at 0:40
  • for example this is API from Coindesk, but where i need to paste it? coindesk.com/api Dec 10, 2017 at 0:41
  • 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
    Dec 10, 2017 at 0:49

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 that would probably work for you.

  • i know i must use API but not know what and where paste codes Dec 10, 2017 at 0:08
  • 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
    Dec 10, 2017 at 3:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.