<blockquote>
<p>OP posted:</p>
<blockquote>
<p>I read couple of blogs and responses on hosting server to expose data using JSON-RPC but wanted to confirm if there is a way to query node data that I am not hosting (not connecting via P1P) using JSON-RPC protocol (or any other protocol that allows querying data and not pull everything)</p>
<p>Note: I am talking about mainnet and not testnet</p>
</blockquote>
<p>OP clarified in a comment:</p>
<blockquote>
<p>I want to query Bitcoin node for some specific data like transaction. I do not want to host my own BTC node</p>
</blockquote>
</blockquote>
<p>Yeah, you can query node data that you are not hosting using JSON-RPC.</p>
<p>However, there are many other options you can use:</p>
<ol>
<li><p>Use a node's REST API, Bitcoin Core REST API.</p>
</li>
<li><p>Use a REST API provided by some third party, like for instance any famous Bitcoin data analytics platform, or any famous blocks chain explorer.</p>
</li>
<li><p>Contribute a full node to the network and query it privately.</p>
</li>
</ol>
<p>The third option is actually the easiest to get, [by largely far] the most secure, the most readily available, the least vendor lock in, the cheapest to maintain, and the most beneficial to the Bitcoin ecosystem.</p>

CC BY-SA 4.0
2021-10-20T21:10:15.367Z
If you don't have access to a node's RPC interface, you won't have access to its REST interface either (assuming you're talking about Bitcoin Core).
Pieter Wuille
CC BY-SA 4.0
2021-10-20T20:32:40.030Z
2021-10-20T20:32:40.030Z
Mercedes
<p>I read couple of blogs and responses on hosting server to expose data using JSON-RPC but wanted to confirm if there is a way to query node data that I am not hosting (not connecting via P1P) using JSON-RPC protocol (or any other protocol that allows querying data and not pull everything)</p>
<p>Note: I am talking about mainnet and not testnet</p>

CC BY-SA 4.0
2021-10-08T20:33:42.990Z
The port has to be bound explicitly to the Internet. Why do you want this? What's the problem you need to resolve?
Mercedes
CC BY-SA 4.0
2021-10-15T18:36:01.580Z
I want to query Bitcoin node for some specific data like transaction. I do not want to host my own BTC node
Ankit
<json-rpc><full-node>
Pull Bitcoin node data from external public nodes using JSON-RPC
Ankit
# Pull Bitcoin node data from external public nodes using JSON-RPC

(Asked by: username_0 on 2021-10-08)

I read couple of blogs and responses on hosting server to expose data using JSON-RPC but wanted to confirm if there is a way to query node data that I am not hosting (not connecting via P1P) using JSON-RPC protocol (or any other protocol that allows querying data and not pull everything)

Note: I am talking about mainnet and not testnet

**Tags:** json-rpc, full-node

> **Comments:**
> **username_1**: The port has to be bound explicitly to the Internet. Why do you want this? What's the problem you need to resolve?  
> **username_0**: I want to query Bitcoin node for some specific data like transaction. I do not want to host my own BTC node  

---

## 1 answers

### Answer by username_1 on 2021-10-20. Score: -1

> OP posted:
>
> > I read couple of blogs and responses on hosting server to expose data using JSON-RPC but wanted to confirm if there is a way to query node data that I am not hosting (not connecting via P1P) using JSON-RPC protocol (or any other protocol that allows querying data and not pull everything)
> >
> > Note: I am talking about mainnet and not testnet
>
> OP clarified in a comment:
>
> > I want to query Bitcoin node for some specific data like transaction. I do not want to host my own BTC node

Yeah, you can query node data that you are not hosting using JSON-RPC.

However, there are many other options you can use:

1. Use a node's REST API, Bitcoin Core REST API.
2. Use a REST API provided by some third party, like for instance any famous Bitcoin data analytics platform, or any famous blocks chain explorer.
3. Contribute a full node to the network and query it privately.

The third option is actually the easiest to get, [by largely far] the most secure, the most readily available, the least vendor lock in, the cheapest to maintain, and the most beneficial to the Bitcoin ecosystem.

> **Comments:**
> **username_2**: If you don't have access to a node's RPC interface, you won't have access to its REST interface either (assuming you're talking about Bitcoin Core).  

---

