<p>It seems to me that your actual problem is getting the balances for numerous Bitcoin addresses. As @darosior noted, the service you were looking into does not appear to offer an API. However, e.g. blockchair.com has an API endpoint that allows you to query up to 25,000 addresses at once. Even though blockchair.com also limits queries, you may be able to cover your data needs this way, since it will only take a single query to check numerous addresses.</p>
<p>The <a href="https://blockchair.com/api/docs#link_390" rel="nofollow noreferrer">endpoint</a> is <code>https://api.blockchair.com/{:btc_chain}/addresses/balances?addresses={:comma_separated_list} (GET)</code>.</p>
<p>The endpoint returns only the addresses with balances, so if I query for your above address (that has a balance of 0) and a second (randomly chosen) address:</p>
<p><a href="https://api.blockchair.com/bitcoin/addresses/balances?addresses=1Mj94YLoFudaD4MvfxoUx7nAur5kTeRVFR,bc1q34aq5drpuwy3wgl9lhup9892qp6svr8ldzyy7c" rel="nofollow noreferrer">https://api.blockchair.com/bitcoin/addresses/balances?addresses=1Mj94YLoFudaD4MvfxoUx7nAur5kTeRVFR,bc1q34aq5drpuwy3wgl9lhup9892qp6svr8ldzyy7c</a></p>
<p>the endpoint returns:</p>
<pre><code>{&quot;data&quot;:{&quot;bc1q34aq5drpuwy3wgl9lhup9892qp6svr8ldzyy7c&quot;:7630000},&quot;context&quot;:{&quot;code&quot;:200,&quot;source&quot;:&quot;A&quot;,&quot;results&quot;:1,&quot;state&quot;:640895,&quot;cache&quot;:{&quot;live&quot;:true,&quot;duration&quot;:60,&quot;since&quot;:&quot;2020-07-26 16:28:29&quot;,&quot;until&quot;:&quot;2020-07-26 16:29:29&quot;,&quot;time&quot;:null},&quot;api&quot;:{&quot;version&quot;:&quot;2.0.64&quot;,&quot;last_major_update&quot;:&quot;2020-07-19 00:00:00&quot;,&quot;next_major_update&quot;:null,&quot;documentation&quot;:&quot;https:\/\/blockchair.com\/api\/docs&quot;,&quot;notice&quot;:&quot;Beginning July 19th, 2020 we start enforcing request cost formulas, see the changelog for details&quot;},&quot;time&quot;:0.06320500373840332,&quot;render_time&quot;:0.01229715347290039,&quot;full_time&quot;:0.07550215721130371,&quot;request_cost&quot;:1.003}}
</code></pre>

CC BY-SA 4.0
2020-07-26T16:34:12.370Z
2020-07-26T16:34:12.370Z
Murch
<p>Currently I'm using blockchain.info to get the balance of an address like this: <a href="https://blockchain.info/de/q/addressbalance/1Mj94YLoFudaD4MvfxoUx7nAur5kTeRVFR" rel="nofollow noreferrer">https://blockchain.info/de/q/addressbalance/1Mj94YLoFudaD4MvfxoUx7nAur5kTeRVFR</a></p>
<p>It outputs the bitcoin balance.</p>
<p>Due to blockchain.info having a rate limit, I have to now use BTC RPC Explorer. I'm able to access the GUI: <a href="https://explorer.btc21.org/address/1Mj94YLoFudaD4MvfxoUx7nAur5kTeRVFR" rel="nofollow noreferrer">https://explorer.btc21.org/address/1Mj94YLoFudaD4MvfxoUx7nAur5kTeRVFR</a> and it shows the JSON tab, but I want the raw JSON for my application. How can I get access to this data via a URL?</p>

CC BY-SA 4.0
2020-07-24T17:42:17.083Z
I don't think btc-rpc-explorer currently expose an API. Maybe post an issue on their Github (https://github.com/janoside/btc-rpc-explorer) ?
Antoine Poinsot
CC BY-SA 4.0
2020-07-25T11:09:58.617Z
Have you asked btc21.org?
RedGrittyBrick
CC BY-SA 4.0
2020-07-26T16:18:39.597Z
This feels like an [XY question](https://meta.stackexchange.com/a/66378/232061) to me: you seem to be asking about your attempted solution rather than your actual problem. This question could be improved if you added more information about the broader picture or directly asked about the actual problem, how to get whatever specific information you want to have for the address, instead of asking about how to get it from a specific service.
Murch
<bitcoin-core><json-rpc><blockchain.info><blockexplorer>
How to get access URL to get JSON output from BTC RPC Explorer
Patoshi パトシ
# How to get access URL to get JSON output from BTC RPC Explorer

(Asked by: username_0 on 2020-07-24)

Currently I'm using blockchain.info to get the balance of an address like this: <https://blockchain.info/de/q/addressbalance/1Mj94YLoFudaD4MvfxoUx7nAur5kTeRVFR>

It outputs the bitcoin balance.

Due to blockchain.info having a rate limit, I have to now use BTC RPC Explorer. I'm able to access the GUI: <https://explorer.btc21.org/address/1Mj94YLoFudaD4MvfxoUx7nAur5kTeRVFR> and it shows the JSON tab, but I want the raw JSON for my application. How can I get access to this data via a URL?

**Tags:** bitcoin-core, json-rpc, blockchain.info, blockexplorer

> **Comments:**
> **username_1**: I don't think btc-rpc-explorer currently expose an API. Maybe post an issue on their Github (https://github.com/janoside/btc-rpc-explorer) ?  
> **username_2**: Have you asked btc21.org?  
> **username_3**: This feels like an [XY question](https://meta.stackexchange.com/a/66378/232061) to me: you seem to be asking about your attempted solution rather than your actual problem. This question could be improved if you added more information about the broader picture or directly asked about the actual problem, how to get whatever specific information you want to have for the address, instead of asking about how to get it from a specific service.  

---

## 1 answers

### Answer by username_3 on 2020-07-26. Score: 0 | Accepted answer

It seems to me that your actual problem is getting the balances for numerous Bitcoin addresses. As @darosior noted, the service you were looking into does not appear to offer an API. However, e.g. blockchair.com has an API endpoint that allows you to query up to 25,000 addresses at once. Even though blockchair.com also limits queries, you may be able to cover your data needs this way, since it will only take a single query to check numerous addresses.
The endpoint is https://api.blockchair.com/{:btc_chain}/addresses/balances?addresses={:comma_separated_list} (GET).
The endpoint returns only the addresses with balances, so if I query for your above address (that has a balance of 0) and a second (randomly chosen) address:
https://api.blockchair.com/bitcoin/addresses/balances?addresses=1Mj94YLoFudaD4MvfxoUx7nAur5kTeRVFR,bc1q34aq5drpuwy3wgl9lhup9892qp6svr8ldzyy7c
the endpoint returns:
{"data":{"bc1q34aq5drpuwy3wgl9lhup9892qp6svr8ldzyy7c":7630000},"context":{"code":200,"source":"A","results":1,"state":640895,"cache":{"live":true,"duration":60,"since":"2020-07-26 16:28:29","until":"2020-07-26 16:29:29","time":null},"api":{"version":"2.0.64","last_major_update":"2020-07-19 00:00:00","next_major_update":null,"documentation":"https:\/\/blockchair.com\/api\/docs","notice":"Beginning July 19th, 2020 we start enforcing request cost formulas, see the changelog for details"},"time":0.06320500373840332,"render_time":0.01229715347290039,"full_time":0.07550215721130371,"request_cost":1.003}}


---

