Feedburner Awareness API + PHP:
Example:
Currently, there are 31 subscribers to
my FeedBurner feed
.
Code:
<?php # get the current number of subscribers to your feed via the feedburner awareness api # http://www.feedburner.com/fb/a/api/awareness # cached_fopen_url() -- see http://www.php.net/manual/tw/function.fopen.php#49478 require_once '/nfsn/content/oncemore/htdocs/mod/cached.inc'; # the uri of your feedburner feed $uri = "http://feeds.feedburner.com/OnceMore"; $handle = cached_fopen_url("http://api.feedburner.com/awareness/1.0/GetFeedData?uri=$uri", "rb"); $content = ''; // here you receive content of page while(!feof($handle)) { $content .= fread($handle,4096); } fclose($handle); $content = ereg_replace('.*circulation=\"([0-9]*)\".*', "\\1", $content); echo $content; ?>