Navigation
Mobile DocsNavigation
Mobile DocsAccess Reddit data and content
Access Reddit data to retrieve posts and comments from any subreddit. Get post titles, content, authors, scores, comments and more.
Layout: full
Options: Get Posts, Get Comments
Placeholder: Enter subreddit name (without r/)
Layout: full
Condition: action = ["get_posts","get_comments"]
Layout: full
Condition: action = "get_posts"
Options: Hot, New, Top, Rising
Layout: full
Condition: action = "get_posts" AND sort = "top"
Options: Day, Week, Month, Year
Placeholder: 10
Layout: full
Condition: action = "get_posts"
Placeholder: Enter post ID
Layout: full
Condition: action = "get_comments"
Layout: full
Condition: action = "get_comments"
Options: Confidence, Top, New, Controversial
Placeholder: 50
Layout: full
Condition: action = "get_comments"
Required
The action to perform: get_posts or get_comments
Required
The name of the subreddit to fetch data from (without the r/ prefix)
Required
Sort method for posts: "hot", "new", "top", or "rising" (default: "hot")
Optional
Time filter for "top" sorted posts: "hour", "day", "week", "month", "year", or "all" (default: "day")
Optional
Maximum number of posts to return (default: 10, max: 100)
Required
The ID of the Reddit post to fetch comments from
Optional
Sort method for comments: "confidence", "top", "new", "controversial", "old", "random", "qa" (default: "confidence")
Optional
Maximum number of comments to return (default: 50, max: 100)
Primary response type:
{
"subreddit": "string",
"posts": "json",
"post": "json",
"comments": "json"
}