How to Display FeedBurner RSS Feed Subscriber Count As Text?
How do you display your FeedBurner feed count in plain text in sidebar or index page or Post page of your blog,without using the FeedBurner Feed Count button provided by Feedburner? Feedburner Feed Count usually is a dynamic graphic that always displays your feed’s current circulation, as calculated by FeedBurner. You can customize by Choosing its color scheme and an animated or static appearance.
But what if you want to display the Feedburner feed count in text in a page or side bar? This can be achieved easily. if your site supports PHP this tutorial is for you. If you are using wordpress platform for your blog then you can directly use the code provided here. If you want just quick view of your Feedburner RSS subscriber statistics then you can use the Feedburner feed stats: Globinch Feedburner RSS Feed Statistics Tool . Globinch Feedburner RSS Feed Statistics Tool gives you an easy interface to get all the feedburner RSS feed stats including circulation, reach, downloads and hits of your blog’s feedburner rss feed and also supports different date ranges in the report.
Display FeedBurner Subscriber Count As Text
If you know PHP programming then this is very easy. Otherwise copy and paste the below code in any PHP file where you want the Feedburner RSS subscriber count to appear in Text. In wordpress you can create a new PHP page or you can add this code in any of the template files. Use some CSS styles and will appear similar to the below image.
We can use the Awareness API (AwAPI) to get the Feedburner RSS feed count. To use this API, feedburner id is mandatory. This is a part of your Google Feedburner feed url.For example: http://feeds.feedburner.com/feedaddrr . Here “feedaddrr” is the Feedburner id.
Normally the result from the will be in te form of XML. To get the subscriber count just parse and get the count from xml. See one sample XML below
1 2 3 4 5 6
<?xml version="1.0" encoding="UTF-8"?> <rsp stat="ok"> <feed id="xxxxxxxx" uri="xxxxx"> <entry date="2010-10-08" circulation="1280" hits="1257" reach="1256" /> </feed> </rsp>
Yiu can use the following code to display the feed count in text. As mentioned above the below code uses the feedburner Awareness API (AwAPI).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?php $feedburnerid = "globinch"; $stringVal=""; $url="https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri="; $url= $url. $feedburnerid; $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, $url); $data = curl_exec($ch); curl_close($ch); $xml = new SimpleXMLElement($data); $feedcount = $xml->feed->entry['circulation']; // The above $feedcount value can be displayed any where in the page below the above code using echo. Eg.:echo $feedcount +"RSS Feed Readers Today"; ?>
If you are using wordpress and if you want to display the count in the sidebar, open the “sidebar.php” and copy and paste the above code. use the “echo” mentioned in the above code to display the Feedburner feed count in sidebar.http://www.globinch.com/how-to-display-feedburner-rss-feed-subscriber-count-as-text/GoogleFeedburner RSS Feed,Feedburner RSS Feed count,Feedburner subscriber count,Feedburner subscriber count in textHow do you display your FeedBurner feed count in plain text in sidebar or index page or Post page of your blog,without using the FeedBurner Feed Count button provided by Feedburner? Feedburner Feed Count usually is a dynamic graphic that always displays your feed's current circulation, as calculated by...Binu GeorgeBinu Georgebinugeorgep@gmail.comAdministratorBinu George , the author of Globinch.com, is a technology blogger from India and a software solution architect by profession.Globinch