<?php
       $hidekeyifdropped = "https://console.pool.bitcoin.com/srv/api/user?apikey=YOUR_KEY";
       $api_url = $hidekeyifdropped;
       $mining_data = json_decode(file_get_contents($api_url), true); ?>
       
       // From here you could echo any (or all, or some, or together) of the following:
       
       <?php echo $mining_data['bitcoinCashBalance']; ?>
       <?php echo $mining_data['bitcoinBalance']; ?>
       <?php echo $mining_data['bccBlockRewardBonusPercent']; ?>
       <?php echo $mining_data['btcBlockRewardBonusPercent']; ?>
       <?php echo $mining_data['hashrateNowTerahashes']; ?>
       <?php echo $mining_data['hashrateAverage10minTerahashes']; ?>
       <?php echo $mining_data['hashrateAverage1hrTerahashes']; ?>
       <?php echo $mining_data['hashrateAverage24hrsTerahashes']; ?>
       

       //Returns this: