0

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

0

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.

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 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

  • どうもありがとうございます。 I did misunderstanding , but now It makes sense for me. I'm grateful. – Mikihisa Fukuta Nov 24 '17 at 1:01
  • I'm glad it helped you. If you consider the answer as correct, please mark it as accepted. thanksç – FedFranzoni Nov 24 '17 at 15:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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