{"id":3670,"date":"2009-01-22T18:00:30","date_gmt":"2009-01-22T10:00:30","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=3670"},"modified":"2025-04-04T00:40:59","modified_gmt":"2025-04-03T16:40:59","slug":"display-google-feed-subscriber-count-in-text","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/display-google-feed-subscriber-count-in-text\/","title":{"rendered":"Display Google Feed Subscriber Count in Text"},"content":{"rendered":"<p>We previously showed how you can <a href=\"https:\/\/www.hongkiat.com\/blog\/how-to-display-feedburner-subscriber-count-in-text\/\">display Feedburner feed count in raw text<\/a>. However, if you\u2019ve recently migrated your feed from Feedburner  to Google Feed, you\u2019ll noticed those codes will no longer work. Here\u2019s the workarounds, for those who wanted to <strong>display Google Feed subscriber count in text<\/strong> for better styling.<\/p>\n<h2>Previous Code For Feedburner\u2026<\/h2>\n<p>This code will only work if you intend to display <em><strong>Feedburner<\/strong><\/em> feed count in text, but for those who are already on Google Feed, some changes are required.<\/p>\n<pre>\r\n\/\/get cool feedburner count\r\n$whaturl=\"http:\/\/api.feedburner.com\/awareness\/1.0\/GetFeedData?uri=feedburner-id\";\r\n\r\n\/\/Initialize the Curl session\r\n$ch = curl_init();\r\n\r\n\/\/Set curl to return the data instead of printing it to the browser.\r\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n\r\n\/\/Set the URL\r\ncurl_setopt($ch, CURLOPT_URL, $whaturl);\r\n\r\n\/\/Execute the fetch\r\n$data = curl_exec($ch);\r\n\r\n\/\/Close the connection\r\ncurl_close($ch);\r\n$xml = new SimpleXMLElement($data);\r\n$fb = $xml-&gt;feed-&gt;entry['circulation'];\r\n\/\/end get cool feedburner count\r\n<\/pre>\n<h2>The Solution<\/h2>\n<p>Replace line:2 from:<\/p>\n<pre>\r\n\/\/get cool feedburner count\r\n$whaturl=\"http:\/\/api.feedburner.com\/awareness\/1.0\/GetFeedData?uri=feedburner-id\";\r\n<\/pre>\n<p>to the following:<\/p>\n<pre>\r\n\/\/get cool feedburner count\r\n$whaturl=\"https:\/\/feedburner.google.com\/api\/awareness\/1.0\/GetFeedData?uri=feedburner-id\";\r\n<\/pre>\n<h2>The Complete Code<\/h2>\n<p>Here\u2019s the complete set of code to display Google Feed subscriber count in text. Remember to replace <code>feedburner-id<\/code> (line:2) with your <em>real<\/em> feed ID.<\/p>\n<pre>\r\n\/\/get cool feedburner count\r\n$whaturl=\"https:\/\/feedburner.google.com\/api\/awareness\/1.0\/GetFeedData?uri=feedburner-id\";\r\n\r\n\/\/Initialize the Curl session\r\n$ch = curl_init();\r\n\r\n\/\/Set curl to return the data instead of printing it to the browser.\r\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n\r\n\/\/Set the URL\r\ncurl_setopt($ch, CURLOPT_URL, $whaturl);\r\n\r\n\/\/Execute the fetch\r\n$data = curl_exec($ch);\r\n\r\n\/\/Close the connection\r\ncurl_close($ch);\r\n$xml = new SimpleXMLElement($data);\r\n$fb = $xml-&gt;feed-&gt;entry['circulation'];\r\n\/\/end get cool feedburner count\r\n<\/pre>\n<h2>Troubleshoots<\/h2>\n<p>Here are some of the possibilities if the above code don\u2019t work for you:<\/p>\n<ul>\n<li>Double check if you\u2019ve correctly replaced <strong><code>http:\/\/api.feedburner.com\/awareness\/1.0\/GetFeedData?uri=feedburner-id<\/code><\/strong> with <strong><code>https:\/\/feedburner.google.com\/api\/awareness\/1.0\/GetFeedData?uri=feedburner-id<\/code><\/strong><\/li>\n<li>Did you replaced <code>feedburner-id<\/code> with your actual Feed ID?<\/li>\n<li><code>SimpleXMLElement<\/code>s requires PHP5. If nothing shows up, chances are your web host is still on PHP4. You should contact them about the upgrade.<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>We previously showed how you can display Feedburner feed count in raw text. However, if you\u2019ve recently migrated your feed from Feedburner to Google Feed, you\u2019ll noticed those codes will no longer work. Here\u2019s the workarounds, for those who wanted to display Google Feed subscriber count in text for better styling. Previous Code For Feedburner\u2026&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3398],"tags":[37,432],"topic":[4521],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Display Google Feed Subscriber Count in Text - Hongkiat<\/title>\n<meta name=\"description\" content=\"We previously showed how you can display Feedburner feed count in raw text. However, if you&#039;ve recently migrated your feed from Feedburner to Google Feed,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/display-google-feed-subscriber-count-in-text\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Display Google Feed Subscriber Count in Text\" \/>\n<meta property=\"og:description\" content=\"We previously showed how you can display Feedburner feed count in raw text. However, if you&#039;ve recently migrated your feed from Feedburner to Google Feed,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/display-google-feed-subscriber-count-in-text\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2009-01-22T10:00:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-03T16:40:59+00:00\" \/>\n<meta name=\"author\" content=\"Hongkiat Lim\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hongkiat Lim\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/display-google-feed-subscriber-count-in-text\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/display-google-feed-subscriber-count-in-text\\\/\"},\"author\":{\"name\":\"Hongkiat Lim\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e3613a3bf757e4f67770f0b7a339edd0\"},\"headline\":\"Display Google Feed Subscriber Count in Text\",\"datePublished\":\"2009-01-22T10:00:30+00:00\",\"dateModified\":\"2025-04-03T16:40:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/display-google-feed-subscriber-count-in-text\\\/\"},\"wordCount\":183,\"commentCount\":37,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"keywords\":[\"Google\",\"RSS (Rich Site Summary)\"],\"articleSection\":[\"Internet\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/display-google-feed-subscriber-count-in-text\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/display-google-feed-subscriber-count-in-text\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/display-google-feed-subscriber-count-in-text\\\/\",\"name\":\"Display Google Feed Subscriber Count in Text - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"datePublished\":\"2009-01-22T10:00:30+00:00\",\"dateModified\":\"2025-04-03T16:40:59+00:00\",\"description\":\"We previously showed how you can display Feedburner feed count in raw text. However, if you've recently migrated your feed from Feedburner to Google Feed,\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/display-google-feed-subscriber-count-in-text\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/display-google-feed-subscriber-count-in-text\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/display-google-feed-subscriber-count-in-text\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Display Google Feed Subscriber Count in Text\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e3613a3bf757e4f67770f0b7a339edd0\",\"name\":\"Hongkiat Lim\",\"description\":\"Founder and Editor in Chief of Hongkiat.com. Hongkiat is also a designer, developer, entrepreneur, and an active investor in the US stock market.\",\"sameAs\":[\"http:\\\/\\\/www.hongkiat.com\\\/blog\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/hongkiat\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Display Google Feed Subscriber Count in Text - Hongkiat","description":"We previously showed how you can display Feedburner feed count in raw text. However, if you've recently migrated your feed from Feedburner to Google Feed,","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/display-google-feed-subscriber-count-in-text\/","og_locale":"en_US","og_type":"article","og_title":"Display Google Feed Subscriber Count in Text","og_description":"We previously showed how you can display Feedburner feed count in raw text. However, if you've recently migrated your feed from Feedburner to Google Feed,","og_url":"https:\/\/www.hongkiat.com\/blog\/display-google-feed-subscriber-count-in-text\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2009-01-22T10:00:30+00:00","article_modified_time":"2025-04-03T16:40:59+00:00","author":"Hongkiat Lim","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Hongkiat Lim","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/display-google-feed-subscriber-count-in-text\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/display-google-feed-subscriber-count-in-text\/"},"author":{"name":"Hongkiat Lim","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e3613a3bf757e4f67770f0b7a339edd0"},"headline":"Display Google Feed Subscriber Count in Text","datePublished":"2009-01-22T10:00:30+00:00","dateModified":"2025-04-03T16:40:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/display-google-feed-subscriber-count-in-text\/"},"wordCount":183,"commentCount":37,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"keywords":["Google","RSS (Rich Site Summary)"],"articleSection":["Internet"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/display-google-feed-subscriber-count-in-text\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/display-google-feed-subscriber-count-in-text\/","url":"https:\/\/www.hongkiat.com\/blog\/display-google-feed-subscriber-count-in-text\/","name":"Display Google Feed Subscriber Count in Text - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"datePublished":"2009-01-22T10:00:30+00:00","dateModified":"2025-04-03T16:40:59+00:00","description":"We previously showed how you can display Feedburner feed count in raw text. However, if you've recently migrated your feed from Feedburner to Google Feed,","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/display-google-feed-subscriber-count-in-text\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/display-google-feed-subscriber-count-in-text\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/display-google-feed-subscriber-count-in-text\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Display Google Feed Subscriber Count in Text"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e3613a3bf757e4f67770f0b7a339edd0","name":"Hongkiat Lim","description":"Founder and Editor in Chief of Hongkiat.com. Hongkiat is also a designer, developer, entrepreneur, and an active investor in the US stock market.","sameAs":["http:\/\/www.hongkiat.com\/blog"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/hongkiat\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-Xc","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/3670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=3670"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/3670\/revisions"}],"predecessor-version":[{"id":73496,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/3670\/revisions\/73496"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=3670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=3670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=3670"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=3670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}