Bitcoin Forum

Bitcoin => Project Development => Topic started by: CIYAM on March 03, 2015, 05:21:35 PM



Title: Unable to query blockchain.info for balances (API change?)
Post by: CIYAM on March 03, 2015, 05:21:35 PM
This used to work fine:

http://blockchain.info/q/addressbalance/1ciyam3htJit1feGa26p2wQ4aw6KFTejU?confirmations=1

but now just comes back with nothing.

Has the API changed?


Title: Re: Unable to query blockchain.info for balances (API change?)
Post by: Fargo on March 03, 2015, 07:27:10 PM
Seems to be working fine. Blockchain is rather unreliable, might have just been down for a little.


Title: Re: Unable to query blockchain.info for balances (API change?)
Post by: coinableS on March 04, 2015, 01:56:22 AM
Yes it changed, you have http instead of https. They removed http support in December. All requests now must be https://blockchain.info/etc


Title: Re: Unable to query blockchain.info for balances (API change?)
Post by: CIYAM on March 04, 2015, 02:26:21 AM
Yes it changed, you have http instead of https. They removed http support in December. All requests now must be https://blockchain.info/etc

Doh - I hadn't even realised I wasn't using https. Thanks for that.


Title: Re: Unable to query blockchain.info for balances (API change?)
Post by: EcuaMobi on March 04, 2015, 03:44:05 AM
In my experience blockchain has been unreliable lately.

I'd recommend you to use https://github.com/bitpay/insight-api instead.

Ex:

https://insight.bitpay.com/api/addr/1ciyam3htJit1feGa26p2wQ4aw6KFTejU/balance

open source being a big plus.


Title: Re: Unable to query blockchain.info for balances (API change?)
Post by: CIYAM on March 04, 2015, 03:49:24 AM
In my experience blockchain has been unreliable lately.

I'd recommend you to use https://github.com/bitpay/insight-api instead.

I will look into this - thanks.


https://insight.bitpay.com/api/addr/1ciyam3htJit1feGa26p2wQ4aw6KFTejU/balance

Yes - that works nicely (good to have an alternative).