Over a year ago I actually started importing the blockchain and doing just that, but it requires the full blockchain imported into MySQL or your preferred database.
Interested in doing this too. Found this to import blockchain into MongoDB:
https://github.com/thelinuxkid/bitcoinqueryHi , this can be better to check the balance and you won't have to use an api that may ask
for captcha a time to time . But I would like to know for what will this be useful
I think you can just add your private keys to a wallet like Multi bit and get it ordered
by balance and we are done !
Bitcoin Boy .