Addicted to Feedburner by John Nunemaker

Example: Get Item Data

Code Sample for Yesterday's Top Ten Items

<?php
$fb 
=& new feedburner('burnthisrss2');    

$result $fb->getItemData();
if (
$fb->isError()) {
    echo 
$fb->getErrorMsg();
} else {
    
$items $result['entries'][1]['items'];
    if (
count($items) > 0) {
        echo 
'<h2>Example Output</h2>';
        echo 
'<table cellspacing="0" style="width:300px;">
                <caption>Top Ten Items Yesterday</caption>
                <thead>
                    <th>Item</th>
                    <th>Hits</th>
                    <th>Clicks</th>
                </thead>
                <tbody>'
;
        for(
$i=1$i<=10$i++) {
            echo 
'<tr>
                    <td><a href="' 
$items[$i]['url'] . '">' $items[$i]['title'] . '</a></td>
                    <td>' 
$items[$i]['itemviews'] . '</td>
                    <td>' 
$items[$i]['clickthroughs'] . '</td>
                </tr>'
;
        }
        echo 
'</tbody>
            </table>'
;
    }            
}
?>

Example Output

Top Ten Items Yesterday
Item Hits Clicks
Into the wild: AdSense for feeds 151 59
On the Finding of Help and the Getting of Answers 146 50
From the Quick Hits Dept.: Transferring Feeds Between Accounts 144 50
Movin' on up 144 50
Google Reader Subcription Stats and FeedBurner 136 48
Hello? Hellooooo? 143 47
Saturday Subscriber Count Drop? 140 46
AdSense Integrated with FeedBurner Site Ads 140 46
Video a GoGo 137 45
The FeedSmith Plugin: newly fortified as part of this delicious breakfast 134 45