Saturday, April 3, 2010

How to get a List of All Blog Posts on Blogger

Blogger offers several feeds for blog posts by default:

1. http://blogname.blogspot.com/atom.xml - the old address for Blogger's ATOM feed
2. http://blogname.blogspot.com/rss.xml - the address for Blogger's RSS feed
3. http://blogname.blogspot.com/feeds/posts/default - the full feed
4. http://blogname.blogspot.com/feeds/posts/summary - the summary feed

My requirement was to publish a complete list of all my blog posts on a "Site Table of Contents" (or a site directory) page. The problem is that the default full feed (http://blogname.blogspot.com/feeds/posts/default) does not really return a feed of all the posts. It usually returns only a handful of recent posts.

The trick that I found to get the complete list of posts was to append "?max-results=1000" (you can change the number '1000' to any number of your choice) at the end of the feed address. Your complete feed address would look like this:

http://blogname.blogspot.com/feeds/posts/default?max-results=1000

With the above feed address, you should be able to get a feed of all the blog posts. It worked very well for me. Let me know whether it worked for you.