Friday, September 29, 2006

Blogger Beta Feeds

The new Blogger Beta has content feeds all over the place

To find out more about content feeds, head over to Feedburner's about rss page

Blogger Beta allows you to use either the Atom 1.0 or RSS 2.0 specifications (in practice, just about every feed reader out there can handle either format so whichever you use is entirely up to you)

There's 4 main types of feeds available: post, comment, per-post comment, and label.

Post Feeds
To access the Post Feeds you can use any of the following:

http://*.blogspot.com/atom.xml
http://*.blogspot.com/rss.xml
http://*.blogspot.com/feeds/posts/TYPE
http://beta.blogger.com/feeds/YOURBLOGID/posts/TYPE


Comment Feeds
To access the Comment Feeds you can use either of the following:
http://*.blogspot.com/feeds/comments/TYPE
http://beta.blogger.com/feeds/YOURBLOGID/comments/TYPE


Per-Post Comment Feeds
To access the Per-Post Comment Feeds you can use either of the following:
http://*.blogspot.com/feeds/THISPOSTID/comments/TYPE
http://beta.blogger.com/feeds/YOURBLOGID/THISPOSTID/comments/TYPE


Label Feeds
The Label Feeds can be accessed with:
http://beta.blogger.com/feeds/YOURBLOGID/posts/TYPE/-/LABEL


Notes:
  • All of the above (except for rss.xml) point to the Atom 1.0 version of the feed. To access the RSS 2.0 feed simply add ?alt=rss to the end
  • YOURBLOGID needs to be replaced with your blog ID, see here for more information
  • THISPOSTID needs to be replaced with the post ID for that specific post. The post ID can be found by clicking on the "Post a Comment" link and looking in your address bar for 'postID='
  • TYPE can be either summary or full
  • LABEL is the name of one of your labels
  • *.blogspot.com should be replaced with the specific subdomain of your blog. For example, mine would be purplemoggy.blogspot.com
  • The atom.xml and rss.xml entries simply redirect to the *.blogspot.com/feed/posts... address
  • The label feeds only seem to be accessible through beta.blogger.com/feeds... for the time being (and not through *.blogspot.com/feeds...)
  • For the label feeds, you can return results that have 2 specific labels by changing the LABEL part into LABEL1/LABEL2
  • By default, the feeds return 25 results. This would be equivalent to adding ?max-results=25 to the end. If you wanted it to return 100 results instead you would add ?max-results=100 to the end
  • By default the feeds return with a start-index of 1. If you want the feed to start with the 5th post, then you would add ?start-index=5 to the end

Fore more information click here, here, and here

Update:
Label Feeds are now also available through
http://*.blogspot.com/feeds/posts/TYPE/-/LABEL

  • TYPE can now also be default, which corresponds to the settings you've applied via your site feed controls

18 comments:

Sonja said...

Very helpful breakdown. Thanks!

Dr. Kayhan said...

Exactly what I was looking for, especially the label-specific feeds. Thank you very much.

Dave said...

This was very helpful; however, I need more than the default 25. Problem is I don't know how to create the command line to make the default feed rss and have a max-result of (say 100).

Either of these work:
http://writingonspec.blogspot.com/feeds/posts/default?alt=rss
http://writingonspec.blogspot.com/feeds/posts/default?max-results=100
but the first displays only 25 in RSS and explorts/imports fine while the second displays all my entries, but not in rss feed, so it does not export/import at all.

I need to have both ?alt=rss and ?max-results=100 on the same line.

Can anybody help?

Much appreciated.

PurpleMoggy said...

The question mark (?) signals that you're gonna begin to feed the url some variables. To add multiple variables you can separate them with the ampersand character (&)

So, in other words, just add:

?alt=rss&max-results=100

to the end

Dave said...

dunno what you're doing up at this hour, but bless you, it worked perfectly.

I'll be sure and pass this info on as I know a lot of folks are trying to do what I am and this makes the process much easier (moving beta blogger to wordpress).

Thanks so very much.

Ronner said...

This has been most helpful. Now I'm wondering if there is any way to have the default comment feed go even higher than 100?

Ron

PurpleMoggy said...

@Ronner

I don't see why not. Just add:

?max-results=999

for example

Alain said...

Focus Visible Section : Hi PurpleMuggy! Thanks for providing this information about Feeds. I have two questions. I’m mostly interested by the Per-Post Comments Feeds. I’m trying to build a simple section on my blog where my primary interactive relations will be visible for the visitors of my blog. I'm expecting that I will soon be blogging in many directions at the same times in response to my visitors' needs and preoccupations but that my own personal concerns will usually focus on just a few particular topics during a specific period of time. Sometimes my primary focus will be with people commenting on specific posts on my own blog but at other times my primary focus will be in relation with posts on other blogs (like with you now ). When my primary focus will be on conversations occurring on other blogs, I would like the Per-Post Comments Feeds links to open in a new window (pop up window). 1) Is it possible to have the Per-Post Comments links open in new windows? Do you know a simple way to do this? For an example in the making of what I’m trying to describe you could look at Techno Focus » Focus Visible. 2) Is it possible to include the Feeds from Non-Blogger blogs on my blog? If it is possible, how do I find the appropriate URL and code information? For example, I would like to include the available Feeds of this Zaadz pod in my Focus Visible Section.
Thanks!

Dimithri Perera said...

I post my blog on a feed-reader site called kottu (http://www.kottu.org)and certain blogger beta sites have a preview of the feed, while others (including mine) just show the post title and the blog address....the admin at kottu claimed it was due to some problem with my feed....can you help me out? all i want to is get a few of my lines diplayed on kottus preview pane...any ideas?

PurpleMoggy said...

@Alain

1) To make any specific link open in a new window just use target="_blank"

<a href="this_is_the_link.html" target="_blank">the_word(s)_you_click</a>

2) The first thing I do when looking for feeds on other sites is to look for the keywords: RSS, Atom, or Feed on the page (these might be text or a clickable button)

You can also look for feed auto-discovery code. For example, on that Zaadz page if you look at the page source you'll notice:

<!-- RSS/ATOM Feed links -->
<link href="http://pods.zaadz.com/diamondapproach/discussions/feeds/pod/18215" rel="alternate" title="Diamond Approach at Zaadz" type="application/rss+xml" />


so http://pods.zaadz.com/diamondapproach/discussions/feeds/pod/18215 is the feed for that page

PurpleMoggy said...

@Dimithri

Without knowing any specific details, my 1st guess would be that you're using your default Atom feed:

http://dragonsofeden.blogspot.com/feeds/posts/default

and some applications don't like playing nice with Atom feeds. You might try making sure that it's reading your RSS feed:

http://dragonsofeden.blogspot.com/feeds/posts/default?alt=rss

Alain said...

Focus Visible Section—New Twist: Hi PurpleMoggy! Sorry for the mistake in your name in my previous comment. Thanks for your information, I sure will make good use of it soon. But for now I’m considering new possibilities. While exploring your original, appealing, convivial and interesting blog, I have stumbled on your post entitled Co.mments. This kind of web service seems to offer just what I’m trying to achieve as a basis for my Focus Visible Section project in the making. I will now center my attention on the exploration of these kinds of free services available on the web to find out which one best suit my needs. I would like to find a service that supports French characters, offers an option to classify and consult the comments by categories and also, allows displaying the latest comments on one’s blog. Regards!

Edge said...

Excellent! that's what I was looking for.
Good job!! :-)

Edge

janeser28 said...

Hello,
I realy love your blog and it is realy helpful like me a beginner.Does is ok for you i realy like you to add to my friendslist so that it would be easier for me to check our more information on doing blog thank you very much

Matías Ávalos said...

Thanks man! was really helpful

Magnus Hotblood said...

Thanks! It helped me a lot to create better Sitemaps for my blog to send them to Google!

By default the feed show only 25 posts, and I would like to Googlr know all the links to posts of my blog. I just needed to create a queries to show an specific set of posts and them submit them as Sitemaps.

anyfreebies@gmail.com said...

Just what I am looking for. But I do have a follow up question... How can I indicate a label that comprises two words? or do I need to change my lables into one word only? Thanks!

Suzanne said...

once again, thank you so much