Bitcoin Forum
April 27, 2024, 02:50:05 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: APIs to know the balance of a bitcoin address  (Read 2721 times)
xcbtrader (OP)
Hero Member
*****
Offline Offline

Activity: 865
Merit: 1006


View Profile
September 02, 2016, 10:12:50 AM
Last edit: September 10, 2016, 09:58:39 AM by xcbtrader
 #1

Good morning everyone.

I'm looking for the different APIs to see the balance of a bitcoin address.

Currently I have checked:


https://blockchain.info/q/addressbalance/
http://btc.blockr.io/api/v1/address/info/
https://blockexplorer.com/api/addr/
https://www.bitgo.com/api/v1/address/

And this:

https://bitcoin.toshi.io/api/v0/addresses/
https://chain.api.btc.com/v3/address/

Added news APIS (9/9/2016):
https://api.blocktrail.com/v1/btc/address/1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T?api_key=MY_APIKEY
https://api.blockcypher.com/v1/btc/main/addrs/1DEP8i3QJCsomS4BSMY2RpU1upv62aGvhD/balance
https://api-r.bitcoinchain.com/v1/address/1Chain4asCYNnLVbvG6pgCLGBrtzh4Lx4b
https://api.kaiko.com/v1/addresses/3Nt1smucEdFks8uYQhyGvXGBuocTcMSmsT
https://chainflyer.bitflyer.jp/v1/address/1LDWeSRJukN7zWXDBpuvB2WGsMxYE7UTnQ
https://insight.bitpay.com/api/addr/1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T/?noTxList=1

Added news APIs (10/9/2016):
https://api.coinprism.com/v1/addresses/1dice97ECuByXAvqXpaYzSaQuPVvrtmz6


To use these APIs do not need any registration.

Does anyone know any other API that is not here?

a greeting

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
neginazin
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile WWW
September 02, 2016, 01:38:01 PM
 #2

thanks for nice post
xcbtrader (OP)
Hero Member
*****
Offline Offline

Activity: 865
Merit: 1006


View Profile
September 02, 2016, 03:15:07 PM
 #3

Another API:

https://api.blocktrail.com/v1/btc/address/1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T?api_key=MY_APIKEY

xcbtrader (OP)
Hero Member
*****
Offline Offline

Activity: 865
Merit: 1006


View Profile
September 03, 2016, 11:34:10 AM
 #4

Another API:

https://api.blockcypher.com/v1/btc/main/addrs/1DEP8i3QJCsomS4BSMY2RpU1upv62aGvhD/balance

More Huh

xcbtrader (OP)
Hero Member
*****
Offline Offline

Activity: 865
Merit: 1006


View Profile
September 04, 2016, 09:04:08 AM
 #5

Another API:

https://api-r.bitcoinchain.com/v1/address/1Chain4asCYNnLVbvG6pgCLGBrtzh4Lx4b

xcbtrader (OP)
Hero Member
*****
Offline Offline

Activity: 865
Merit: 1006


View Profile
September 06, 2016, 07:19:59 AM
 #6

New API Found:

https://api.kaiko.com/v1/addresses/3Nt1smucEdFks8uYQhyGvXGBuocTcMSmsT

Another?

xcbtrader (OP)
Hero Member
*****
Offline Offline

Activity: 865
Merit: 1006


View Profile
September 07, 2016, 05:35:37 AM
 #7

Another:

https://chainflyer.bitflyer.jp/v1/address/1LDWeSRJukN7zWXDBpuvB2WGsMxYE7UTnQ

xcbtrader (OP)
Hero Member
*****
Offline Offline

Activity: 865
Merit: 1006


View Profile
September 07, 2016, 02:15:37 PM
 #8

New API:

https://insight.bitpay.com/api/addr/1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T/?noTxList=1

countryfree
Legendary
*
Offline Offline

Activity: 3052
Merit: 1047

Your country may be your worst enemy


View Profile
September 07, 2016, 06:01:41 PM
 #9

Surprising! I hadn't imagine there could be so many, considering that it's so easy to create a new address, I thought few people would find it useful to watch a given one. Well, I was wrong...

I used to be a citizen and a taxpayer. Those days are long gone.
mobnepal
Legendary
*
Offline Offline

Activity: 1218
Merit: 1006


View Profile
September 07, 2016, 06:47:58 PM
 #10

wow, nice list i haven't searched apis this way. To lower the amount of request to some well known wallet/api services which limit request per second/hour, this could help by requesting balance check with these free api and just using those wallets api to make new address only.
xcbtrader (OP)
Hero Member
*****
Offline Offline

Activity: 865
Merit: 1006


View Profile
September 07, 2016, 10:06:16 PM
 #11

wow, nice list i haven't searched apis this way. To lower the amount of request to some well known wallet/api services which limit request per second/hour, this could help by requesting balance check with these free api and just using those wallets api to make new address only.

Thanks!!!

It is very easy to create new address with code, for example in Python. Don't need a wallet.

Doubler Disburser 232515
Member
**
Offline Offline

Activity: 119
Merit: 10


View Profile
September 07, 2016, 10:13:58 PM
 #12

Thanks for the information, are you planning on reviewing them all?  What are their strengths and weaknesses?  What do you use them all for?
xcbtrader (OP)
Hero Member
*****
Offline Offline

Activity: 865
Merit: 1006


View Profile
September 08, 2016, 05:44:33 AM
 #13

Thanks for the information, are you planning on reviewing them all?  What are their strengths and weaknesses?  What do you use them all for?

The idea of this post is simply a compilation of APIs.
It took me long to find this information, validate, and I think it can be a good contribution to the people of the forum.

Coding Enthusiast
Legendary
*
Offline Offline

Activity: 1039
Merit: 2783


Bitcoin and C♯ Enthusiast


View Profile WWW
September 08, 2016, 06:12:11 AM
 #14

thanks for this, i was looking for more APIs to use in my watch only bitcoin wallet. i am currently only using blockchain.info i guess i will only add blockr.io and maybe blockexplorer that should be enough.

p.s. please add all of them in the first post so we can see them all in one place.

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.19.1)Ann-git
Denovo(0.7.0)Ann-git
Bitcoin.Net(0.26.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(3.2.1)Ann-git
SharpPusher(0.12.0)Ann-git
asad008
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
September 08, 2016, 06:26:32 AM
 #15

thanks nice post
xcbtrader (OP)
Hero Member
*****
Offline Offline

Activity: 865
Merit: 1006


View Profile
September 09, 2016, 05:37:45 AM
 #16

thanks for this, i was looking for more APIs to use in my watch only bitcoin wallet. i am currently only using blockchain.info i guess i will only add blockr.io and maybe blockexplorer that should be enough.

p.s. please add all of them in the first post so we can see them all in one place.

Added!!!!

btc_enigma
Hero Member
*****
Offline Offline

Activity: 688
Merit: 565


View Profile
September 10, 2016, 06:13:43 AM
 #17

Also Blockonomics api

I suggest you have a look a moneywagon project.
Using it you can use bitcoin api, without worrying about backend service.
It will do roundrobin/random selection of service, or also can do paranoid checking to make sure balance is correct
across several services. It also supports most of the existing API services

xcbtrader (OP)
Hero Member
*****
Offline Offline

Activity: 865
Merit: 1006


View Profile
September 10, 2016, 07:51:58 AM
 #18

Also Blockonomics api

I suggest you have a look a moneywagon project.
Using it you can use bitcoin api, without worrying about backend service.
It will do roundrobin/random selection of service, or also can do paranoid checking to make sure balance is correct
across several services. It also supports most of the existing API services

Thanks for this new API, but don't have JSON response...

Coding Enthusiast
Legendary
*
Offline Offline

Activity: 1039
Merit: 2783


Bitcoin and C♯ Enthusiast


View Profile WWW
September 10, 2016, 07:56:41 AM
 #19

Also Blockonomics api

I suggest you have a look a moneywagon project.
Using it you can use bitcoin api, without worrying about backend service.
It will do roundrobin/random selection of service, or also can do paranoid checking to make sure balance is correct
across several services. It also supports most of the existing API services

Thanks for this new API, but don't have JSON response...

what do you call this if not JSON response Smiley
Code:
{"response": [{"confirmed": 189412205, "addr": "1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp", "unconfirmed": 012211 }, {"confirmed": 746599881, "addr": "1dice97ECuByXAvqXpaYzSaQuPVvrtmz6", "unconfirmed": 0}]} 

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.19.1)Ann-git
Denovo(0.7.0)Ann-git
Bitcoin.Net(0.26.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(3.2.1)Ann-git
SharpPusher(0.12.0)Ann-git
xcbtrader (OP)
Hero Member
*****
Offline Offline

Activity: 865
Merit: 1006


View Profile
September 10, 2016, 09:54:45 AM
Last edit: September 10, 2016, 10:21:06 AM by xcbtrader
 #20

Also Blockonomics api

I suggest you have a look a moneywagon project.
Using it you can use bitcoin api, without worrying about backend service.
It will do roundrobin/random selection of service, or also can do paranoid checking to make sure balance is correct
across several services. It also supports most of the existing API services

Thanks for this new API, but don't have JSON response...

what do you call this if not JSON response Smiley
Code:
{"response": [{"confirmed": 189412205, "addr": "1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp", "unconfirmed": 012211 }, {"confirmed": 746599881, "addr": "1dice97ECuByXAvqXpaYzSaQuPVvrtmz6", "unconfirmed": 0}]} 

i Call with python program, no errors in others APIs but, this not work:

Code:
addr = '1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp'

request = 'https://www.blockonomics.co/api/balance/' + addr
response = requests.get(request)
content = response.json()
content = int(content['response']['confirmed'])


i receive this error:

    content = response.json()
  File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 812, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded


Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!