<p>I couldn't find a Hash-Rate endpoint in OKCoin's API anymore, but I found an endpoint from <a href="https://blockchain.info/q/hashrate" rel="nofollow noreferrer">blockchain.info</a></p>

<p>To get the data programmatically, you can call:</p>

<pre><code>import requests
response = requests.get("https://blockchain.info/q/hashrate")
print(response.json())
</code></pre>

CC BY-SA 4.0
2018-04-03T08:36:22.630Z
2019-09-13T07:22:37.910Z
2019-09-13T07:22:37.910Z
Peter
<p>I'd like to get hash-rate of BTC from OKcoin' API(GET /api/v1/charts/:type)</p>

<p><a href="https://www.bihang.com/about/block_api.html" rel="nofollow noreferrer">here</a> is OKCoin's API web site.</p>

<p>How can I get information from  <a href="https://www.bihang.com/about/block_api.html" rel="nofollow noreferrer">here</a> is OKCoin's API web site.</p>

<p><code>python
gets = requests.get("http://block.okcoin.cn/api/v1/charts/hash-rate.do")
gets.json()
</code>
OUT
{'error_code': 10010, 'result': False}</p>

CC BY-SA 3.0
2018-04-03T08:28:56.427Z
Your links seem to lead to another website than OKCoin's website. Is that intended?
Peter
<api><hash><hashpower>
BTC Hash-Rate API
Mikihisa Fukuta
# BTC Hash-Rate API

(Asked by: username_0 on 2017-11-27)

I'd like to get hash-rate of BTC from OKcoin' API(GET /api/v1/charts/:type)

[here](https://www.bihang.com/about/block_api.html) is OKCoin's API web site.

How can I get information from [here](https://www.bihang.com/about/block_api.html) is OKCoin's API web site.

`python
gets = requests.get("http://block.okcoin.cn/api/v1/charts/hash-rate.do")
gets.json()`
OUT
{'error\_code': 10010, 'result': False}

**Tags:** api, hash, hashpower

> **Comments:**
> **username_1**: Your links seem to lead to another website than OKCoin's website. Is that intended?  

---

## 1 answers

### Answer by username_1 on 2018-04-03. Score: 2

I couldn't find a Hash-Rate endpoint in OKCoin's API anymore, but I found an endpoint from [blockchain.info](https://blockchain.info/q/hashrate)

To get the data programmatically, you can call:

```
import requests
response = requests.get("https://blockchain.info/q/hashrate")
print(response.json())

```


---

