<p>The JSON export seems indeed to be broken. A quick workaround is to simply get the graph page and extract the needed data from there:</p>

<pre><code>curl -s https://blockchain.info/charts/hash-rate | grep data: | grep -oE '\[[0-9\.,]+\]'
</code></pre>

<p>That should give you the JSON array. The array contains a daily sample of the hash-rate starting from timestamp</p>

<pre><code>curl -s https://blockchain.info/charts/hash-rate | grep pointStart | grep -oE '[0-9]+'
</code></pre>

CC BY-SA 3.0
2013-01-04T13:18:47.410Z
2013-01-04T13:18:47.410Z
cdecker
<p>I'm trying to get the time series for a specific period from <a href="http://blockchain.info" rel="nofollow">Blockchain</a> but the JSON seems to not be there anymore. Does anyone know if the JSON API is not available anymore or it is a temporary issue?</p>

<p>For example when trying to access <a href="https://blockchain.info/charts/hash-rate&amp;format=json" rel="nofollow">https://blockchain.info/charts/hash-rate&amp;format=json</a> I get an <em>Unknown Exception</em>.</p>

<blockchain><api>
blockchain.info JSON API problem
eu tot eu
# blockchain.info JSON API problem

(Asked by: username_0 on 2012-12-30)

I'm trying to get the time series for a specific period from [Blockchain](http://blockchain.info) but the JSON seems to not be there anymore. Does anyone know if the JSON API is not available anymore or it is a temporary issue?

For example when trying to access <https://blockchain.info/charts/hash-rate&format=json> I get an *Unknown Exception*.

**Tags:** blockchain, api


---

## 1 answers

### Answer by username_1 on 2013-01-04. Score: 1

The JSON export seems indeed to be broken. A quick workaround is to simply get the graph page and extract the needed data from there:
curl -s https://blockchain.info/charts/hash-rate | grep data: | grep -oE '\[[0-9\.,]+\]'

That should give you the JSON array. The array contains a daily sample of the hash-rate starting from timestamp
curl -s https://blockchain.info/charts/hash-rate | grep pointStart | grep -oE '[0-9]+'


---

