this post was submitted on 11 Aug 2024
20 points (100.0% liked)

Lemmy Support

4631 readers
21 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Hi Lemmy friends,

Is there any way to have Lemmy's community RSS feeds provide more than 20 <item> tags at a time? Can I add a querystring variable to get the next page or two of data?

Background on what I'm trying to do: I run the Movie, TV and Game trailers community. I'd like to create a simple website / landing page that displays an ongoing roll of the latest/top/hot trailers posted to the community.

I can use the community's RSS feed for this, but the feed only includes a maximum of 20 entries (for an average end-to-end runtime of about one hour). I'd really like to get the next few pages of entries as well.

Thanks!

top 3 comments
sorted by: hot top controversial new old
[–] pe1uca@lemmy.pe1uca.dev 7 points 1 month ago

I don't think RSS is suited for getting more than just the latest entries in a feed.
What you're looking for is handled by the API which includes pagination.

[–] rglullis@communick.news 6 points 1 month ago
[–] nmtake@lemm.ee 4 points 1 month ago

You can get 50 items at most with limit=50. Try

https://lemmy.ml/feeds/c/lemmy_support.xml?sort=New&limit=50