E.g., if I wanted to create a cron script that would grab the latest spot price every hour and store it in a local file or database, what would be the place to "scrape" that information from?

(Actually writing the script is not the problem, in my case.)

  • FYI, I ended up using the API of BitcoinCharts.com to do this. The Mt Gox API may have worked just as well in my case, but for whatever reason, I was having an issue with my (Python) script that attempted to poll mtgox.com -- it would hang upon making the HTTPS request.
    – Chris W.
    Oct 31, 2011 at 14:18

3 Answers 3


You could use the JSON encoded ticker data available from MtGox at: https://mtgox.com/api/0/data/ticker.php

Just use whatever your language's equivalent to cURL or wGet is and parse as appropriate.

  • Unsurprisingly (to anyone familiar with the now-infamous Mt Gox saga), this method will no longer work.
    – Chris W.
    Dec 23, 2017 at 1:15

You could try using www.btcrate.com as well, which supports additional currencies (should you need them).


There are probably dozens of sites that now provide this data, but the CoinDesk API is one option.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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