Retrieve Feedburner Subscribers count with PHP
Feedburner Awareness API lets us retrieve total subscribers count. Just enable Awarness API in feedburner settings and replace feed URL with your feedburner location.1234567891011121314151617181920
<?php
$FeedUrl = 'http://feeds.feedburner.com/yourfeed'
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://feedburner.google.com/api/awareness/1.0/GetFeedData?uri='.$FeedUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$feedburner = curl_exec($ch);
curl_close($ch);
$feedburnerXML = new SimpleXMLElement($feedburner);
$circulation_count = $feedburnerXML->feed->entry['circulation'];
$hits_count = $feedburnerXML->feed->entry['hits'];
$reach_count = $feedburnerXML->feed->entry['reach'];
echo 'Subscribers : '.$circulation_count;
echo '<br />Hits : '.$hits_count;
echo '<br />Reach : '.$reach_count;
?>