user9732: I have a bitcoin address. How do I get it's balance and the amount of BTC (preferably in Satoshi) it's ever sent and received? I don't want to use any third-party bitcoin services, I want to do it as directly as possible. How can I do that?

user6388: The standard way to to this is to use software that downloads, parses, and indexes the blockchain. While possible to do create your own software using the bitcoin specification, there are a number of ready-built applications that you can use, such as those listed here: https://bitcoin.org/en/choose-your-wallet. It's going to take a really really long time for the initial download, but once that's done, you'll have access to all the information you're looking for and then some.
In addition, you mention that you would prefer to get the balance in Satoshis? Which ever application you decide to use should give you this option, but just in case that it doesn't, simply take the balance in BTC, and multiply it by 100,000,000.

user13478: If you dont want to use ANY 3rd party service, you will need to parse the entire blobkchain and put it inside a database so you can query whatever information you want.
To do that you have two options: 

code your own parser for blocks/transactions, and here i suggest you using the rcpapi (its all json, nothing crazy) instead of doing it the hard way like this 
use some software which can do it (something like blockexporer or Abe)

Another piece of advice: before you start downloading the blockchain, you need to set this in your bitcoin.conf
# look up historical transactions
txindex=1

Which allows you to get detailed information about "old" transactions, but this will make grow the blockchain size in your disk significantly

9732: <p>I have a bitcoin address. How do I get it's balance and the amount of BTC (preferably in Satoshi) it's ever sent and received? I <strong>don't</strong> want to use any <strong>third-party</strong> bitcoin services, I want to do it as <strong>directly</strong> as possible. How can I do that?</p>
 6388: <p>The standard way to to this is to use software that downloads, parses, and indexes the blockchain. While possible to do create your own software using the <a href="https://en.bitcoin.it/wiki/Protocol_specification" rel="nofollow">bitcoin specification</a>, there are a number of ready-built applications that you can use, such as those listed here: <a href="https://bitcoin.org/en/choose-your-wallet" rel="nofollow">https://bitcoin.org/en/choose-your-wallet</a>. It's going to take a really really long time for the initial download, but once that's done, you'll have access to all the information you're looking for and then some.</p>

<p>In addition, you mention that you would prefer to get the balance in Satoshis? Which ever application you decide to use should give you this option, but just in case that it doesn't, simply take the balance in BTC, and multiply it by 100,000,000.</p>
 13478: <p>If you dont want to use ANY 3rd party service, you will need to parse the entire blobkchain and put it inside a database so you can query whatever information you want.</p>

<p>To do that you have two options: </p>

<ul>
<li>code your own parser for blocks/transactions, and here i suggest you using the rcpapi (its all json, nothing crazy) instead of doing it the hard way like <a href="http://codesuppository.blogspot.com.ar/2014/01/how-to-parse-bitcoin-blockchain.html" rel="nofollow">this</a> </li>
<li>use some software which can do it (something like <a href="https://github.com/lirazsiri/blockexplorer" rel="nofollow">blockexporer</a> or <a href="https://github.com/bitcoin-abe/bitcoin-abe" rel="nofollow">Abe</a>)</li>
</ul>

<p>Another piece of advice: before you start downloading the blockchain, you need to set this in your bitcoin.conf</p>

<pre><code># look up historical transactions
txindex=1
</code></pre>

<p>Which allows you to get detailed information about "old" transactions, but this will make grow the blockchain size in your disk significantly</p>
