<p>EDIT: These links appear to no longer work</p>

<hr>

<p>You can get it at <a href="http://bitcoincharts.com/about/markets-api/" rel="nofollow noreferrer">Bitcoincharts</a>:</p>

<pre><code>http://bitcoincharts.com/t/trades.csv?symbol=SYMBOL[&amp;start=UNIXTIME][&amp;end=UNIXTIME]
</code></pre>

<p>It returns a CSV file with the format:<code>unixtime,price,amount</code>. </p>

<p>For example, you can use this link to get the MtGox prices since August:</p>

<pre><code>http://bitcoincharts.com/t/trades.csv?symbol=mtgoxUSD&amp;start=1312174800
</code></pre>

CC BY-SA 3.0
2014-10-27T08:58:51.277Z
see my answer to get all trades as one big file
greg121
CC BY-SA 3.0
2011-09-08T09:44:15.300Z
Awsome. I used this link to get data from 2009. http://bitcoincharts.com/t/trades.csv?symbol=mtgoxUSD&start=1252402936
ripper234
CC BY-SA 3.0
2011-09-29T18:00:05.620Z
Well, this turned out absolutely meaningless. Here is the ugly conversation script if anyone's interested: https://gist.github.com/1251429
ripper234
CC BY-SA 3.0
2011-09-08T08:53:18.020Z
2017-07-04T14:58:40.960Z
2017-07-04T14:58:40.960Z
nmat
<p>You can download the whole historical data <strong>(every single trade)</strong> from the various exchanges <strong>as a single .csv file</strong> here:</p>

<p><a href="http://api.bitcoincharts.com/v1/csv/" rel="nofollow">http://api.bitcoincharts.com/v1/csv/</a></p>

CC BY-SA 3.0
2014-10-26T17:06:32.243Z
2014-10-27T08:56:20.307Z
2014-10-27T08:56:20.307Z
greg121
<p>Try <a href="http://www.quandl.com/" rel="nofollow">quandl</a>!
and search for "bitcoin"</p>

<p>for example:
<a href="http://www.quandl.com/BITCOIN-Bitcoin-Charts/MTGOXUSD-Bitcoin-Markets-mtgoxUSD" rel="nofollow">http://www.quandl.com/BITCOIN-Bitcoin-Charts/MTGOXUSD-Bitcoin-Markets-mtgoxUSD</a></p>

CC BY-SA 3.0
2013-09-09T09:53:45.793Z
2013-09-09T09:53:45.793Z
Riccardo Casatta
<p>You might want to try <a href="http://www.cryptodatasets.com/" rel="nofollow noreferrer">http://www.cryptodatasets.com/</a> It has free raw(every trade by trade) data and sampled data from Bitfinex and HitBtc (non from MtGox since its not operating anymore).</p>

<p>P.S. it's my website</p>

CC BY-SA 3.0
2018-01-27T13:15:24.803Z
nice site, why not compress the csv with gzip?
xgdgsc
CC BY-SA 3.0
2017-11-11T00:48:27.287Z
2017-11-11T00:48:27.287Z
MegaHotel
<p>You didn't state what format you are looking for. Investing.com has a decent tool for this. I've used it for calculating long term gains/losses. </p>

<p><a href="https://www.investing.com/currencies/btc-usd-historical-data" rel="nofollow noreferrer">https://www.investing.com/currencies/btc-usd-historical-data</a></p>

<p>EDIT:
Your updated question asked for JSON. 
I would use blockchain.info </p>

<p><code>https://api.blockchain.info/charts/market-price?format=json&amp;timespan=all</code></p>

<p>Other timespan options: </p>

<p><code>&amp;timespan=30days</code><br>
<code>&amp;timespan=60days</code><br>
<code>&amp;timespan=180days</code><br>
<code>&amp;timespan=1year</code><br>
<code>&amp;timespan=2years</code></p>

CC BY-SA 3.0
2017-04-23T20:21:07.927Z
Thank you for your answer. Just updated it with the format.
Carol.Kar
CC BY-SA 3.0
2017-04-24T01:30:40.110Z
Answer updated with JSON example
m1xolyd1an
CC BY-SA 3.0
2018-01-18T23:02:11.727Z
I've merged the question into this one, this answer may require small edits to make it fit in :)
meshcollider
CC BY-SA 3.0
2017-04-23T16:02:01.690Z
2017-04-24T01:30:20.447Z
2017-04-24T01:30:20.447Z
m1xolyd1an
<p>Bitcoincharts recently retricted the download for latest 20000 trades, it basically represents only two days of tick data. </p>

<p>Guys, if you have downloaded it before the restriction, would you mind sharing those past tick data? It would help me a lot.
Thanks!</p>

<p><strong>Update:</strong></p>

<p>As promised, I'm sharing the way how I downloaded all historical trade-by-trade data from MtGox. Firstly, register at BigQuerry cloud database, at this time only download of 16k rows of data is enabled. Secondly go to bitbucket.org/nitrous/bq and download the software which automatize the data download. The whole database took approx one hour to download. Everything is free, no charges. Enjoy!</p>

CC BY-SA 3.0
2013-07-16T08:30:51.643Z
Just realised I post a question as an answer - sorry!
Steef Gregor
CC BY-SA 3.0
2013-07-16T08:40:43.483Z
See Meni's comment above. I have unaccepted the accepted answer, because it's, as you say, no longer correct. I personally don't have historic price data, but perhaps you can post on bitcointalk.org and ask there. (please post here if you find it!)
ripper234
CC BY-SA 3.0
2013-07-16T09:06:37.083Z
Meni has only end-of-day data which is not sufficient. However, I will do as you suggested and ask on bitcointalk. If I find any, surely I will post it here for others!
Steef Gregor
CC BY-SA 3.0
2013-07-25T12:16:35.703Z
As promised, I'm sharing the way how I downloaded all historical trade-by-trade data from MtGox. Firstly, register at BigQuerry cloud database, at this time only download of 16k rows of data is enabled. Secondly go to https://bitbucket.org/nitrous/bq and download the software which automatize the data download. The whole database took approx one hour to download. Everything is free, no charges. Enjoy!
Steef Gregor
CC BY-SA 3.0
2013-07-25T15:05:44.913Z
Thanks! I updated your answer with the content of your comment.
ripper234
CC BY-SA 3.0
2013-07-16T08:30:16.623Z
2013-07-25T15:05:31.117Z
2013-07-25T15:05:31.117Z
Steef Gregor
<p><a href="https://bitcointalk.org/index.php?topic=218980.0" rel="nofollow">This</a> explains how to get a dump of past Mt Gox data and the <a href="https://bitbucket.org/nitrous/mtgox-api/overview" rel="nofollow">Mt Gox API</a> allows current data. Hope this helps!</p>

CC BY-SA 3.0
2018-02-05T13:12:57.807Z
A bit outdated.
MCCCS
CC BY-SA 3.0
2013-07-16T08:43:47.690Z
2013-07-16T08:43:47.690Z
Jordan Majd
<p>Yes, there are websites to do that.</p>

<ul>
<li><p><a href="https://coincap.io" rel="nofollow noreferrer">coincap.io</a></p></li>
<li><p><a href="https://coinmarketcap.com" rel="nofollow noreferrer">coinmarketcap.com</a> (Most used)</p></li>
<li><p><a href="https://bitinfocharts.com" rel="nofollow noreferrer">bitinfocharts.com</a> (Most advanced)</p></li>
</ul>

CC BY-SA 3.0
2018-01-18T22:59:23.483Z
This answer has been moved due to questions being merged, please double check it doesn't need any edits :)
meshcollider
CC BY-SA 3.0
2017-09-22T17:01:57.590Z
2017-09-22T17:01:57.590Z
MCCCS
<p>You can get it from <a href="http://www.coinintraday.com" rel="nofollow noreferrer">http://www.coinintraday.com</a> . It offers many intraday data</p>

CC BY-SA 3.0
2018-02-05T13:08:28.177Z
2018-02-05T13:08:28.177Z
danytrader
<p><a href="http://www.CryptoDataDownload.com" rel="nofollow noreferrer">http://www.CryptoDataDownload.com</a> is newer but has 28+ exchanges, ~550 pairs, 8+ ccy pairs, and daily/hourly/minute timeframes to download via csv format for free</p>

CC BY-SA 3.0
2018-01-18T23:02:47.223Z
Please disclose your affiliation or this will be deleted as spam :)
meshcollider
CC BY-SA 3.0
2018-01-18T19:52:20.327Z
2018-01-18T19:52:20.327Z
cdd
<p>Where can I get a time series of (date, bitcoin price in USD)? BitcoinCharts no longer provide historic data, only the last 20,000 samples.</p>

CC BY-SA 3.0
2018-01-18T23:05:26.490Z
Related: https://bitcoin.stackexchange.com/questions/22989/where-can-i-get-tick-by-tick-historical-btc-price-data
meshcollider
CC BY-SA 3.0
2012-04-16T09:35:13.080Z
Stephen Gornick has a very useful summary of the price history at https://docs.google.com/spreadsheet/ccc?key=0AmcTCtjBoRWUdHJuUE1mUkFxa3A0eHBDQkxZLVVFZmc#gid=0.
Meni Rosenfeld
<exchange-rate><historical-trade-data>
Where can I get historic data series of Bitcoin prices?
ripper234
# Where can I get historic data series of Bitcoin prices?

(Asked by: username_0 on 2011-09-08)

Where can I get a time series of (date, bitcoin price in USD)? BitcoinCharts no longer provide historic data, only the last 20,000 samples.

**Tags:** exchange-rate, historical-trade-data

> **Comments:**
> **username_2**: Stephen Gornick has a very useful summary of the price history at https://docs.google.com/spreadsheet/ccc?key=0AmcTCtjBoRWUdHJuUE1mUkFxa3A0eHBDQkxZLVVFZmc#gid=0.  
> **username_1**: Related: https://bitcoin.stackexchange.com/questions/22989/where-can-i-get-tick-by-tick-historical-btc-price-data  

---

## 10 answers

### Answer by username_3 on 2011-09-08. Score: 16

EDIT: These links appear to no longer work

You can get it at Bitcoincharts:
http://bitcoincharts.com/t/trades.csv?symbol=SYMBOL[&start=UNIXTIME][&end=UNIXTIME]

It returns a CSV file with the format:unixtime,price,amount. 
For example, you can use this link to get the MtGox prices since August:
http://bitcoincharts.com/t/trades.csv?symbol=mtgoxUSD&start=1312174800

> **Comments:**
> **username_0**: Awsome. I used this link to get data from 2009. http://bitcoincharts.com/t/trades.csv?symbol=mtgoxUSD&start=1252402936  
> **username_0**: Well, this turned out absolutely meaningless. Here is the ugly conversation script if anyone's interested: https://gist.github.com/1251429  
> **username_4**: see my answer to get all trades as one big file  

---

### Answer by username_4 on 2014-10-26. Score: 5

You can download the whole historical data **(every single trade)** from the various exchanges **as a single .csv file** here:

<http://api.bitcoincharts.com/v1/csv/>


---

### Answer by username_5 on 2013-09-09. Score: 4

Try [quandl](http://www.quandl.com/)!
and search for "bitcoin"

for example:
<http://www.quandl.com/BITCOIN-Bitcoin-Charts/MTGOXUSD-Bitcoin-Markets-mtgoxUSD>


---

### Answer by username_6 on 2017-11-11. Score: 2

You might want to try <http://www.cryptodatasets.com/> It has free raw(every trade by trade) data and sampled data from Bitfinex and HitBtc (non from MtGox since its not operating anymore).

P.S. it's my website

> **Comments:**
> **username_7**: nice site, why not compress the csv with gzip?  

---

### Answer by username_8 on 2017-04-23. Score: 2

You didn't state what format you are looking for. Investing.com has a decent tool for this. I've used it for calculating long term gains/losses.

<https://www.investing.com/currencies/btc-usd-historical-data>

EDIT:
Your updated question asked for JSON.
I would use blockchain.info

`https://api.blockchain.info/charts/market-price?format=json&timespan=all`

Other timespan options:

`&timespan=30days`  
`&timespan=60days`  
`&timespan=180days`  
`&timespan=1year`  
`&timespan=2years`

> **Comments:**
> **username_9**: Thank you for your answer. Just updated it with the format.  
> **username_8**: Answer updated with JSON example  
> **username_1**: I've merged the question into this one, this answer may require small edits to make it fit in :)  

---

### Answer by username_10 on 2013-07-16. Score: 1

Bitcoincharts recently retricted the download for latest 20000 trades, it basically represents only two days of tick data.

Guys, if you have downloaded it before the restriction, would you mind sharing those past tick data? It would help me a lot.
Thanks!

**Update:**

As promised, I'm sharing the way how I downloaded all historical trade-by-trade data from MtGox. Firstly, register at BigQuerry cloud database, at this time only download of 16k rows of data is enabled. Secondly go to bitbucket.org/nitrous/bq and download the software which automatize the data download. The whole database took approx one hour to download. Everything is free, no charges. Enjoy!

> **Comments:**
> **username_10**: Just realised I post a question as an answer - sorry!  
> **username_0**: See Meni's comment above. I have unaccepted the accepted answer, because it's, as you say, no longer correct. I personally don't have historic price data, but perhaps you can post on bitcointalk.org and ask there. (please post here if you find it!)  
> **username_10**: Meni has only end-of-day data which is not sufficient. However, I will do as you suggested and ask on bitcointalk. If I find any, surely I will post it here for others!  
> **username_10**: As promised, I'm sharing the way how I downloaded all historical trade-by-trade data from MtGox. Firstly, register at BigQuerry cloud database, at this time only download of 16k rows of data is enabled. Secondly go to https://bitbucket.org/nitrous/bq and download the software which automatize the data download. The whole database took approx one hour to download. Everything is free, no charges. Enjoy!  
> **username_0**: Thanks! I updated your answer with the content of your comment.  

---

### Answer by username_11 on 2013-07-16. Score: 1

[This](https://bitcointalk.org/index.php?topic=218980.0) explains how to get a dump of past Mt Gox data and the [Mt Gox API](https://bitbucket.org/nitrous/mtgox-api/overview) allows current data. Hope this helps!

> **Comments:**
> **username_12**: A bit outdated.  

---

### Answer by username_12 on 2017-09-22. Score: 1

Yes, there are websites to do that.

* [coincap.io](https://coincap.io)
* [coinmarketcap.com](https://coinmarketcap.com) (Most used)
* [bitinfocharts.com](https://bitinfocharts.com) (Most advanced)

> **Comments:**
> **username_1**: This answer has been moved due to questions being merged, please double check it doesn't need any edits :)  

---

### Answer by username_13 on 2018-02-05. Score: 0

You can get it from <http://www.coinintraday.com> . It offers many intraday data


---

### Answer by username_14 on 2018-01-18. Score: 0

<http://www.CryptoDataDownload.com> is newer but has 28+ exchanges, ~550 pairs, 8+ ccy pairs, and daily/hourly/minute timeframes to download via csv format for free

> **Comments:**
> **username_1**: Please disclose your affiliation or this will be deleted as spam :)  

---

