Get the unread count of a specific feed

14 views
Skip to first unread message

Edwin Khodabakchian

unread,
Aug 30, 2011, 3:16:31 AM8/30/11
to Friends of the Unofficial Google Reader API
Hello,

I am wondering if there is a way to get the unread count of an
individual feed. The use case I am trying to solve is the follow: the
user subscribes to a new feed and I would like to know how many unread
articles there are for that feed - without asking for all the unread
counts.

Thank you!

-Edwin

Mihai Parparita

unread,
Aug 30, 2011, 12:38:00 PM8/30/11
to foug...@googlegroups.com
This is not directly supported, but you can approximate by seeing how many item IDs are unread:

http://www.google.com/reader/api/0/stream/items/ids?s=feed/<feed URL>&n=10000&xt=user/-/state/com.google/read&ot=<now - 30 days>

Mihai

Edwin Khodabakchian

unread,
Aug 30, 2011, 2:30:06 PM8/30/11
to Friends of the Unofficial Google Reader API
Interesting. Will give it a try. Thanks for the quick reply. -Edwin
Reply all
Reply to author
Forward
0 new messages