Regarding Number of Articles from Stream API

62 views
Skip to first unread message

Makarand Joshi

unread,
Feb 25, 2022, 8:08:25 AM2/25/22
to Feedly Cloud
Hi

I am using feedly stream API to pull news from collection of Feeds with following sample request https://cloud.feedly.com/v3/streams/contents?streamId=feed/http://feeds.guardian.co.uk/theguardian/travel/rss

In response to above API call I get only few articles even though on the Feedly website I see many articles published for today. I have read in one of the blogs that I need to pass on "count" query parameter to get more articles in response ? Is that the case here ?


Regards
Makarand Joshi

david

unread,
Feb 28, 2022, 6:39:27 PM2/28/22
to Feedly Cloud
  Hi Makarand,
  I clarified this in the API documentation for streams:

> Un-authenticated calls to this API will not return pagination, and are limited to 50 articles.

  If you want more articles/more pages, you need to pass a token in the authorization header.
  I hope this helps.

David Chatenay
Feedly

Makarand Joshi

unread,
Feb 28, 2022, 11:39:57 PM2/28/22
to Feedly Cloud
Thanks David. I am passing the authorization token in the header. So I suppose it will allow me to fetch more articles with "count" request param. Please advice

david

unread,
Mar 3, 2022, 9:15:00 PM3/3/22
to Feedly Cloud
  Hi,
  Yes, by default the server returns 20 entries. You can use the `count` parameter to request more (see documentation for limits).
  Also don't forget to URL-encode the stream id: some feed ids contains URL-sensitive characters (?, & etc).
  Hope this helps,

David

Makarand Joshi

unread,
Mar 7, 2022, 3:44:24 AM3/7/22
to Feedly Cloud
Thanks David was helpful
Reply all
Reply to author
Forward
0 new messages