Generate keys offline, put them in database table, check using an api, then you don't have worry about sweeping them.
Can't be any easier.
I think he wants to check without relying on an api to some third party service.
He want to validate the balances on his own by parsing the blockchain.
All the decent full node implementations have a good API that you can use locally.
API does not imply a third party service.