Trends API

43 views
Skip to first unread message

Mircea Pasoi

unread,
Sep 17, 2010, 9:04:58 PM9/17/10
to Friends of the Unofficial Google Reader API
Is there an API endpoint to get the data displayed in Trends?

I saw the client makes a request to http://google.com/reader/trends
but that returns HTML and probably I won't be able to use OAuth to
access it, since it's not an API endpoint.

Chris C

unread,
Sep 18, 2010, 7:58:53 AM9/18/10
to Friends of the Unofficial Google Reader API
I'd also be interested to know if there's a JSON access to the data.

On Sep 18, 2:04 am, Mircea Pasoi <mircea.pa...@gmail.com> wrote:
> Is there an API endpoint to get the data displayed in Trends?
>
> I saw the client makes a request tohttp://google.com/reader/trends

Mihai Parparita

unread,
Mar 30, 2011, 6:56:41 PM3/30/11
to foug...@googlegroups.com, Chris C, mircea...@gmail.com
This came up again off-list, replying here for the sake of archiving:

There isn't a trends API endpoint. One could be added, but it's not
something that is requested very often, so it's not a high priority.
Note that the kinds of stats that Trends computes can be done using
the lower-level API. All it does is things like:

http://www.google.com/reader/api/0/stream/items/ids?n=10000&s=user/-/state/com.google/read&ot=OLDEST_TIMESTAMP
(to get the IDs of all the items that were read). OLDEST_TIMESTAMP is
now - 30 days (you can go further back, but things will get slower)

http://www.google.com/reader/api/0/stream/items/ids?n=10000&s=feed/http://subscription1&s=feed/http://subscription2/...&ot=OLDEST_TIMESTAMP
(to get the IDs of the items in subscribed feeds)

By interesting the two lists you can compute the percent read for each
feed. You can also do the same with the starred, broadcast, liked,
etc. streams.

The /api/0/stream/items/ids endpoint should be quite fast, since it
doesn't need to look up and return item bodies.

Mihai

Reply all
Reply to author
Forward
0 new messages