Hacker News new | ask | show | jobs
by polygot 2434 days ago
If you add .json to the end of a Reddit URL, it will return JSON data. For example: https://www.reddit.com/r/ubuntu.json . It also works with comment threads and posts.
6 comments

Wonderful feature also used by Trello https://trello.com/b/rq2mYJNn/public-trello-boards.json
Now that is an ergonomic API.
xml and rss seem to be the same exact output
I have adopted this in other projects and added the functionality there as well; it is a brilliant idea.
Yeah no need to scrape Reddit, their content is accessible via their API.
PRAW is also a great python reddit "scraper" that allows you to pull data via their API very easily.