xmlrssblogspot

Filtering RSS feed content by category using an API call


I am working on an application that is required to 'categorize' an RSS feed from a blog on blogspot.com. Now as we all know, RSS feeds are recorded in XMLs as 'items', which have many different attributes. One of them is an attribute called 'category'. My problem is that I want the feeds including only items pertaining to the category (as in item.category attribute), say 'xyz'. The default feed URL on blogspot is :

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

Is there any alternate URL (API call) that will allow me to filter this feed according to the category 'xyz' ? Something similar to :

http://blogname.blogspot.com/feeds/posts/default?item.category=xyz&alt=rss

The API mentioned above is certainly incorrect. It is written only to highlight that I am looking for something similar.


Solution

  • Found this answer on Google Help Center:

    There are "label" specific feeds which have the category name in its url.

    Eg posts/articles with label "privacy" will be in this feed:

    Atom 1.0: http://blogname.blogspot.com/feeds/posts/default/-/privacy

    RSS 2.0: http://blogname.blogspot.com/feeds/posts/default/-/privacy?alt=rss