Menu

1 / 2

Reading Reddit without an API key: RSS endpoints, a parser, and the limits

DEV Community: java·alice kelly·about 19 hours ago
#sU1dzH0Y
#devtojava#devto#dev#reddit#parser
Reading 0:00
15s threshold

Reddit's login wall is now the default path for a lot of readers. I read public threads for research, and I didn't want another account just to open a link. The official API can do the job, but it means OAuth, an app registration, and a token refresh path before the first request.

The public RSS feeds are still there. No key, no OAuth, Atom XML. I built a small Android client around them (105 KB, no server, no analytics). This post is about the feed format, the parsing problems, and the limits that decide what kind of reader you can build.

The endpoints

Listing: https://www.reddit.com/r/{subreddit}/hot.rss?limit=25 https://www.reddit.com/r/{subreddit}/new.rss?limit=25 https://www.reddit.com/r/{subreddit}/top.rss?limit=25

Thread: https://www.reddit.com/r/{subreddit}/comments/{post_id}/.rss?limit=100

Enter fullscreen mode

Exit fullscreen mode

{subreddit} is the name without r/ . hot , new , and top are the listing sorts.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.