How to query blockchain.info? I need to query blockchain.info with an address and determine how much is there, ignoring transactions that don't have 3 confirmations.

Can anyone give me a hint how to do this?
Get the block count: 

http://blockchain.info/q/getblockcount


Subtract 3 from that number.

Get the transactions from the address you're looking for: 

http://blockchain.info/address/$bitcoin_address?format=json&amp;limit=50&amp;offset=0


This returns 50 transactions by default, change the 'limit' value to wherever you might need it to be. Setting 'offset' to 5 will allow you to skip the first 5 transactions. Make sure you don't set offset to something greater than the total number of transactions on a particular address, it won't ever return anything. 

Then set up your code to ignore any transaction that's newer than 3 blocks ago.