Take the 2-minute tour ×
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It's 100% free, no registration required.

I'm trying to get the time series for a specific period from blockchain.info but the json seems to not be there anymore. Does anyone knows 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. Thanks.

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

This error should be fixed now.

https://blockchain.info/charts/hash-rate?format=json

share|improve this answer
    
the json API is working now. thanks –  eu tot eu Jan 6 '13 at 20:34
add comment

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]+'
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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