<p>You can query the unspent outputs of an address with this:</p>

<pre><code> http://blockchain.info/unspent?active=$bitcoin_address
</code></pre>

<p>You can get the transaction history for an address with this:</p>

<pre><code> http://blockchain.info/address/$bitcoin_address?format=json
</code></pre>

<p>For more information see <a href="http://blockchain.info/api/blockchain_api" rel="nofollow">http://blockchain.info/api/blockchain_api</a></p>

CC BY-SA 3.0
2014-01-08T20:26:52.743Z
Nice, `?format=json` is useful!
q9f
CC BY-SA 3.0
2013-12-12T22:08:38.863Z
2014-01-08T20:30:59.450Z
2014-01-08T20:30:59.450Z
hsmiths
<p>I have an arbitrary address.  How can I get the current balance of the account through a Web API? ... how do I get it for a local API?</p>

<p>I'm also interested in all transaction history for that address.  Let me know if the API can offer that as well.</p>

CC BY-SA 3.0
2014-01-12T09:16:44.587Z
Anyone with a local API solution to the same question?
qdot
<transactions><development><address><api>
How do I determine the balance of an address I don't own? (WebAPI or local API)
makerofthings7
# How do I determine the balance of an address I don't own? (WebAPI or local API)

(Asked by: username_0 on 2013-12-12)

I have an arbitrary address. How can I get the current balance of the account through a Web API? ... how do I get it for a local API?

I'm also interested in all transaction history for that address. Let me know if the API can offer that as well.

**Tags:** transactions, development, address, api

> **Comments:**
> **username_1**: Anyone with a local API solution to the same question?  

---

## 1 answers

### Answer by username_2 on 2013-12-12. Score: 5

You can query the unspent outputs of an address with this:

```
 http://blockchain.info/unspent?active=$bitcoin_address

```

You can get the transaction history for an address with this:

```
 http://blockchain.info/address/$bitcoin_address?format=json

```

For more information see <http://blockchain.info/api/blockchain_api>

> **Comments:**
> **username_3**: Nice, `?format=json` is useful!  

---

