Is there a way to find if the user has subscribed to a given feed

18 views
Skip to first unread message

Stefan Kyntchev

unread,
Nov 19, 2010, 3:48:03 PM11/19/10
to Friends of the Unofficial Google Reader API
When retrieving posts for a given feed, Reader will serve the feed
regardless if the user has subscribed to the feed or not (as long as
the feed URL is valid). If the user has not subscribed to the feed,
all posts come as "Read" which is understandable. I am wondering if
there is anything in the returned feed XML that will let me
distinguish between a feed that is not subscribed to and the feed was
subscribed to but all posts are actually marked as "Read" by the user.

Stefan

Mihai Parparita

unread,
Nov 19, 2010, 3:49:51 PM11/19/10
to foug...@googlegroups.com

Stefan Kyntchev

unread,
Nov 19, 2010, 4:16:04 PM11/19/10
to Friends of the Unofficial Google Reader API
Thanks Mihai,

I was hoping to accomplish this with one call (get the posts and at
the same time find if it is subscribed) but if this is not possible, I
will make the second call to API you suggested.

Stefan

On Nov 19, 3:49 pm, Mihai Parparita <mih...@google.com> wrote:
> You can use this API endpoint:
>
> http://www.google.com/reader/api/0/subscribed?s=feed/http://googleblo...

Mihai Parparita

unread,
Nov 19, 2010, 4:25:58 PM11/19/10
to foug...@googlegroups.com
You can also look for the user's reading-list tag being present on
items, all subscriptions have that.

Mihai

Stefan Kyntchev

unread,
Nov 19, 2010, 4:33:31 PM11/19/10
to Friends of the Unofficial Google Reader API
Excellent! This is exactly what I was looking for!

Thank you very much Mihai.

Stefan
Reply all
Reply to author
Forward
0 new messages