$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,'https://feedburner.google.com/api/awareness/1.0/GetFeedData?id=7qkrmib4r9rscbplq5qgadiiq4');
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,2);
$content = curl_exec($ch);
$subscribers = get_match('/circulation="(.*)"/isU',$content);
curl_close($ch);
然后,$ subscribers变量将是您的订户计数,用于回显(或其他任何内容)。 您需要将第二行末尾的ID替换为Feed的ID( 找到它 )。 您还需要启用 FeedBurner的感知功能。
翻译自: https://css-tricks.com/snippets/php/get-feedburner-subscriber-count-with-curl/