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
What's all the hubbub about PubSubHubbub? 38 45
Enabling social sharing with FeedFlare 18 60
Your stats, right away 16 28
Socializing your feed with Twitter 19 18
"Afternoon, Frank." "Hey howdy, George." 18 18
AdSense for feeds now available directly in Blogger 14 21
AdSense policy clarification on using AdSense for feeds and AdSense for content 20 14
A small yet noteworthy change to our item stats link serving 15 19
Category Filtering beta now available for AdSense for feeds English-language ads 16 16
Additions and Attractions for Our Feeds-by-Email Service 15 17