You can scan the blockchain manually, using NBitcoin library (https://github.com/MetacoSA/NBitcoin). You'll need a bitcoind running on your server.
Or you can simply trust some of the "big players", that are providing statistics information (as mentioned above).
Ease or reliability - that is the question, that you should ask as a developer.