<p>BTC.com APIs are Web APIs. This means you can use them by making HTTP requests (GET/POST requests).</p>

<p>Like all online APIs, you can access them through whatever program/script you want, provided they are able to make HTTP requests and handle the answers.
Requests/responses are usually encoded using the JSON format.</p>

<p>You can find a good introduction <a href="https://schoolofdata.org/2013/11/18/web-apis-for-non-programmers/" rel="nofollow noreferrer">here</a>.</p>

<p>You can choose your favorite language. However, since data is in JSON format, I would suggest to use either Javascript or Python.
In Python you can use the 'request' package. <a href="https://realpython.com/blog/python/api-integration-in-python/" rel="nofollow noreferrer">Here</a> you can find a quick introduction.</p>

<p>In Javascript you have the 'request' library.
I wrote a generic lib to make Web API requests: <a href="https://github.com/frz-dev/webapi.js/blob/master/webapi.js" rel="nofollow noreferrer">https://github.com/frz-dev/webapi.js/blob/master/webapi.js</a></p>

CC BY-SA 3.0
2017-11-23T14:21:35.410Z
2017-11-23T14:21:35.410Z
FedFranz
<p>I'd like to get some information(BTC's difficulty, hash rate).
I think I can get that from api of BTC.com, and I checked github of btccom, but I can't mount api with python. </p>

<p>How Can I use btccom api(v3)?
maybe for the first time, I need to install something on terminal(mac).
It's like a [pip insall ***].</p>

<p>Than you</p>

<api><hash><difficulty><installation>
How to use API of BTC.com
Mikihisa Fukuta
# How to use API of BTC.com

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

I'd like to get some information(BTC's difficulty, hash rate).
I think I can get that from api of BTC.com, and I checked github of btccom, but I can't mount api with python.

How Can I use btccom api(v3)?
maybe for the first time, I need to install something on terminal(mac).
It's like a [pip insall \*\*\*].

Than you

**Tags:** api, hash, difficulty, installation


---

## 1 answers

### Answer by username_1 on 2017-11-23. Score: 1 | Accepted answer

BTC.com APIs are Web APIs. This means you can use them by making HTTP requests (GET/POST requests).

Like all online APIs, you can access them through whatever program/script you want, provided they are able to make HTTP requests and handle the answers.
Requests/responses are usually encoded using the JSON format.

You can find a good introduction [here](https://schoolofdata.org/2013/11/18/web-apis-for-non-programmers/).

You can choose your favorite language. However, since data is in JSON format, I would suggest to use either Javascript or Python.
In Python you can use the 'request' package. [Here](https://realpython.com/blog/python/api-integration-in-python/) you can find a quick introduction.

In Javascript you have the 'request' library.
I wrote a generic lib to make Web API requests: <https://github.com/frz-dev/webapi.js/blob/master/webapi.js>


---

