YAM
YAM

Reputation: 1382

Google Reader API not showing all results

I'm using Google reader API to get all available items for any RSS feed. I use it as follows:

http://www.google.com/reader/atom/feed/[RSS FEED LINK]?n=[NUMBER OF ITEMS TO SHOW]&r=o&ot=[UNIX TIME STAMP FOR START DATE]

As I understand, this should return all items starting with the date specified by the time stamp (start date should not be older than one month ago). It works great for some feeds, but in most feeds, it doesn't show all available items (although they are available when using Google Reader).

For Example:

http://www.google.com/reader/atom/feed/http://www.360cities.net/rss/area/Greece.rss?n=1000&r=o&ot=1306959543

this link only shows items starting with 24-07-2011 to current date although it should show items starting with 26-06-2011. If the same link (http://www.360cities.net/rss/area/Greece.rss) is read by Google Reader, it'll show much more results.

Have any solutions?

Upvotes: 1

Views: 1251

Answers (1)

YAM
YAM

Reputation: 1382

Fortunately, I found the solution to my problem after a lot of research:

  • A url in this form returns the most recent N items of the RSS Feed

    http://www.google.com/reader/atom/feed/[RSS]?n=[N]

    [N] = Number of items to be displayed (max: 1000).

    [RSS] = The url for the rss feed.

  • To get the next N older items, another parameter called Continuation String should be used. It can be found inside gr:continuation tag in each results' page. So, To get the N older items, a url in this form should be used:

    http://www.google.com/reader/atom/feed/[RSS]?n=[N]&c=[C]

    [N] = Number of items to be displayed (max: 1000).

    [RSS] = The url for the rss feed.

    [C] = Continuation string

Example:

I hope this would help someone.

Thanks

Upvotes: 4

Related Questions