Skip to content

reddit.com Subreddit Posts API

Returns one page (about 25) of posts from a subreddit's feed, plus the cursor of the next page.

GEThttps://api.maviapi.com/v1/sites/reddit/list_subreddit_posts5 credits per call

Parameters

NameRequiredExampleDescription
subredditstring in queryOptionalpythonsubreddit name, with or without the r/ prefix, e.g. python or r/AskReddit
sortstring in queryOptionalhothot, new, top, rising or controversial
time_filterstring in queryOptionaldayperiod for sort=top and sort=controversial: hour, day, week, month, year or all
afterstring in queryOptionalNonecursor from a previous call's next_after (or a post id like t3_1y4iysc) to get the page after it

Response fields

subredditstringe.g."python"
sortstringe.g."hot"
returnedintegere.g.24
postsobject[]18 fields
idstringe.g."t3_1y4iysc"
titlestringe.g."I've started treating the output of my little Python scripts as a user interface"
authorstringe.g."Pharaoh_Bellhop8"
subredditstringe.g."Python"
scoreintegere.g.88
upvote_rationumbere.g.0.8793103448275862
comment_countintegere.g.32
award_countintegere.g.0
createdstringe.g."2026-11-24T17:18:02.427000+0000"
post_typestringe.g."text"
flairstringe.g."Discussion"
domainstringe.g."self.Python"
urlstringe.g."https://www.reddit.com/r/Python/comments/1y4iysc/ive_started_treating_the_output_of_my_little/"
permalinkstringe.g."https://www.reddit.com/r/Python/comments/1y4iysc/ive_started_treating_the_output_of_my_little/"
body_previewstringe.g."I inherited a bunch of internal Python scripts at work last year. Most of them were perfectly readable, did their job and had been running for years without any major issues.\n\nThe annoying part was figuring out what they'd actually done.\n\nOne would print \"Done\" whether it processed 400 files or found nothing to process. Another would silently skip invalid records. To understand the result of a successful run I sometimes had to read the source code.\n\nI've since developed a habit of ending even fairly trivial scripts with a small summary of what was found, what changed, what was skipped and why.\n\nIt's probably the smallest change I've made to my coding habits with the biggest practical payoff. Especially when revisiting something I wrote six months ago.\n\nI think we spend a disproportionate amount of time making Python code pleasant for other developers to read compared to making Python programs pleasant for other people to actually run."
imagesstring[]
nsfwbooleane.g.false
spoilerbooleane.g.false
next_afterstringe.g."t3_1xusw5u"

Example request

Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.

cURL
curl 'https://api.maviapi.com/v1/sites/reddit/list_subreddit_posts' \
  -H "Authorization: Bearer $MAVI_KEY"

reddit.com Subreddit Posts API questions

What you get, what it costs and how to call it.

What does the reddit.com Subreddit Posts API return?

Returns one page (about 25) of posts from a subreddit's feed, plus the cursor of the next page. The response has subreddit, sort, returned, posts and next_after.

Which parameters does the reddit.com Subreddit Posts API take?

Every parameter of GET /list_subreddit_posts is optional. You can pass subreddit, sort, time_filter and after.

How much does one reddit.com Subreddit Posts API call cost?

One successful call costs 5 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.

How do I call the reddit.com Subreddit Posts API?

Send an HTTPS GET request to https://api.maviapi.com/v1/sites/reddit/list_subreddit_posts with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.

Is the reddit.com Subreddit Posts API official?

No. It is an independent, hosted API from maviapi for the public data on reddit.com, and it is not made, endorsed or supported by reddit.com. Its parameters and response fields are documented on this page.