Search⌘ K

Read Posts and Comments

Explore how to use Reddit API endpoints to read posts from a subreddit and retrieve comments on those posts. Learn to handle API requests, interpret the responses, and neatly display the content to better interact with subreddit data.

We'll cover the following...

Read subreddits

This type of endpoint is called a listing and is used to navigate content, which gets updated frequently. To read all the posts of a subreddit using the API, use the following endpoint:

Shell
https://oauth.reddit.com/r/redditdev/hot

Here are some important parameters that we'll use ...