<?php
    //get cool feedburner count
    $whaturl="http://api.feedburner.com/awareness/1.0/GetFeedData?uri=your feedburner id";
    //Initialize the Curl session
    $ch = curl_init();
    //Set curl to return the data instead of printing it to the browser.
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    //Set the URL
    curl_setopt($ch, CURLOPT_URL, $whaturl);
    //Execute the fetch
    $data = curl_exec($ch);
    //Close the connection
    curl_close($ch);
    $xml = new SimpleXMLElement($data);
    $fb = $xml->feed->entry['circulation'];
    echo $fb;
    //end get cool feedburner count
?>将“your feedburner id”替换为你的实际 FeedBurner ID。此外,请确保在你的 FeedBurner 设置中,针对你正在提取的特定订阅源,已开启“Awareness API”。
您好,
这不再起作用了。自从 FeedBurner 成为 Google 的一部分后,URL 就变了。
此请求将使用新的 URL“https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=”起作用。
注意:你需要通过订阅源设置中的“公开 > 订阅人数”激活此服务。
你可以在 jQuery 或 JavaScript 中实现吗?谢谢!