Last updated
Changelogreddit.com API
HealthyRead-onlyStructured data from reddit.com. Generated from reddit.com.
/list_popular_posts5 credits per callList Popular Posts
Returns a page of posts from Reddit's front page (r/popular, the most popular posts across Reddit), plus the cursor of the next page.
Authorization: Bearer <key> on every request.Parameters
hot, new, top or rising
period for sort=top: hour, day, week, month, year or all
two-letter country code (e.g. GB, DE, IN) for that country's popular posts; null for everywhere
next_after from a previous call (or a post id like t3_1y4vjxp) to get the page after it
Response fields
feede.g."popular"sorte.g."hot"returnede.g.28posts
ide.g."t3_1y4gqzi"titlee.g."What's an \"UNWRITTEN RULE\" of society that you accidentally broke and immediately realized how serious people take it ?"authore.g."prettywhenimmean"subreddite.g."askteddit"scoree.g.1632upvote_ratioe.g.0.9037886340977069comment_counte.g.1718award_counte.g.1createde.g."2026-11-24T15:52:46.359000+0000"post_typee.g."text"flairdomaine.g."self.askteddit"urle.g."https://www.reddit.com/r/askteddit/comments/1y4gqzi/whats_an_unwritten_rule_of_society_that_you/"permalinke.g."https://www.reddit.com/r/askteddit/comments/1y4gqzi/whats_an_unwritten_rule_of_society_that_you/"body_previewe.g.""imagesnsfwe.g.falsespoilere.g.falsenext_aftere.g."t3_1y4gc8r"curl "https://api.maviapi.com/v1/sites/reddit/list_popular_posts?sort=hot&time_filter=day" \-H "Authorization: Bearer $MAVI_KEY"
{
"feed": "popular",
"sort": "hot",
"returned": 28,
"posts": [
{
"id": "t3_1y4gqzi",
"title": "What's an \"UNWRITTEN RULE\" of society that you accidentally broke and immediately realized how serious people take it ?",
"author": "prettywhenimmean",
"subreddit": "askteddit",
"score": 1632,
"upvote_ratio": 0.9037886340977069,
"comment_count": 1718,
"award_count": 1,
"created": "2026-11-24T15:52:46.359000+0000",
"post_type": "text",
"flair": null,
"domain": "self.askteddit",
"url": "https://www.reddit.com/r/askteddit/comments/1y4gqzi/whats_an_unwritten_rule_of_society_that_you/",
"permalink": "https://www.reddit.com/r/askteddit/comments/1y4gqzi/whats_an_unwritten_rule_of_society_that_you/",
"body_preview": "",
"images": [
null
],
"nsfw": false,
"spoiler": false
}
],
"next_after": "t3_1y4gc8r"
}Get all the data, no code
Collect every page of GET /list_popular_posts into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.
Use reddit.com API from Claude, ChatGPT and your coding tools
Add this URL as a custom connector and sign in to maviapi. Nothing to install.
https://mcp.maviapi.com/mcpOr run it locally, with each endpoint of reddit.com API as its own tool:
claude mcp add maviapi -e MAVIAPI_TOOLS=reddit -- npx -y '@maviapi/mcp'Import reddit.com API into Postman and other tools
How to importPaste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.
- OpenAPI 3.1
https://api.maviapi.com/v1/apis/reddit/openapi.json - Postman
https://api.maviapi.com/v1/apis/reddit/postman.json
The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.
Build with the reddit.com API
Choose a starting endpoint
- List Popular Posts
GET /list_popular_postsReturns a page of posts from Reddit's front page (r/popular, the most popular posts across Reddit), plus the cursor of the next page.
Parameters and response fields for GET /list_popular_posts
Request parameters Name Type / location Required Description sort string / query No hot, new, top or rising time_filter string / query No period for sort=top: hour, day, week, month, year or all country string / query No two-letter country code (e.g. GB, DE, IN) for that country's popular posts; null for everywhere after string / query No next_after from a previous call (or a post id like t3_1y4vjxp) to get the page after it Response fields Field Type Description feed string sort string returned integer posts object[] posts[].id string posts[].title string posts[].author string posts[].subreddit string posts[].score integer posts[].upvote_ratio number posts[].comment_count integer posts[].award_count integer posts[].created string posts[].post_type string posts[].flair null posts[].domain string posts[].url string posts[].permalink string posts[].body_preview string posts[].images string[] posts[].nsfw boolean posts[].spoiler boolean next_after string - Get Post Comments
GET /get_post_commentsReturns a Reddit post and the comments and replies of its thread, up to `limit` of them.
Parameters and response fields for GET /get_post_comments
Request parameters Name Type / location Required Description post string / query No post URL (any reddit.com/.../comments/<id>/... link, a comment permalink or redd.it/<id>) or a bare post id like 1xyl6xo sort string / query No comment order: confidence (Reddit's "Best"), top, new, old, controversial or qa limit integer / query No maximum number of comments to return, 1 to 5000; use a high value to get the whole thread Response fields Field Type Description post object post.id string post.title string post.author string post.subreddit string post.score integer post.upvote_ratio number post.comment_count integer post.created string post.post_type string post.url string post.permalink string post.body string returned integer complete boolean comments object[] comments[].id string comments[].parent_id string comments[].depth integer comments[].author string comments[].score integer comments[].created string comments[].body string comments[].body_html string comments[].award_count integer comments[].permalink string comments[].deleted boolean - Search Posts
GET /search_postsSearches Reddit posts and returns the matching posts, plus a cursor for the next results.
Parameters and response fields for GET /search_posts
Request parameters Name Type / location Required Description query string / query No search words; Reddit operators such as author:name, flair:name, site:example.com, self:yes and title:word work subreddit string / query No subreddit name to search within (e.g. python); null searches all of Reddit sort string / query No relevance, hot, top, new or comments (most commented) time_filter string / query No only posts from the last hour, day, week, month, year, or all limit integer / query No number of results to return, 1 to 50 (results come in batches of about 7, so larger values take longer) cursor string / query No next_cursor from a previous call with the same query, to continue after its results Response fields Field Type Description query string subreddit null returned integer results object[] results[].id string results[].title string results[].author string results[].subreddit string results[].score integer results[].comment_count integer results[].created string results[].permalink string results[].thumbnail null results[].matching_snippet null results[].nsfw boolean results[].spoiler boolean next_cursor string - List User Posts
GET /list_user_postsReturns one page (about 25) of the posts a Reddit user submitted, plus the cursor of the next page.
Parameters and response fields for GET /list_user_posts
Request parameters Name Type / location Required Description username string / query No Reddit username, with or without the u/ prefix sort string / query No new, hot, top or controversial time_filter string / query No period for sort=top and sort=controversial: hour, day, week, month, year or all after string / query No next_after from a previous call (or a post id like t3_fy0ah5) to get the page after it Response fields Field Type Description username string sort string returned integer posts object[] posts[].id string posts[].title string posts[].author string posts[].subreddit string posts[].score integer posts[].upvote_ratio number posts[].comment_count integer posts[].award_count null posts[].created string posts[].post_type string posts[].flair null posts[].domain string posts[].url string posts[].permalink string posts[].body_preview string posts[].images string[] posts[].nsfw boolean posts[].spoiler boolean next_after string - List Subreddit Posts
GET /list_subreddit_postsReturns one page (about 25) of posts from a subreddit's feed, plus the cursor of the next page.
Parameters and response fields for GET /list_subreddit_posts
Request parameters Name Type / location Required Description subreddit string / query No subreddit name, with or without the r/ prefix, e.g. python or r/AskReddit sort string / query No hot, new, top, rising or controversial time_filter string / query No period for sort=top and sort=controversial: hour, day, week, month, year or all after string / query No cursor from a previous call's next_after (or a post id like t3_1y4iysc) to get the page after it Response fields Field Type Description subreddit string sort string returned integer posts object[] posts[].id string posts[].title string posts[].author string posts[].subreddit string posts[].score integer posts[].upvote_ratio number posts[].comment_count integer posts[].award_count integer posts[].created string posts[].post_type string posts[].flair string posts[].domain string posts[].url string posts[].permalink string posts[].body_preview string posts[].images string[] posts[].nsfw boolean posts[].spoiler boolean next_after string - Get Subreddit
GET /get_subredditReturns a subreddit's profile: name, id (t5_...), url, description, weekly_visitors, weekly_contributions, icon and banner image URLs and its status message (or null).
Parameters and response fields for GET /get_subreddit
Request parameters Name Type / location Required Description subreddit string / query No subreddit name, with or without the r/ prefix, e.g. python Response fields Field Type Description name string id string url string description string weekly_visitors integer weekly_contributions integer icon string banner string status string - List User Comments
GET /list_user_commentsReturns one page (about 25) of a Reddit user's comments, newest first by default, plus the cursor of the next page.
Parameters and response fields for GET /list_user_comments
Request parameters Name Type / location Required Description username string / query No Reddit username, with or without the u/ prefix sort string / query No new, hot, top or controversial time_filter string / query No period for sort=top and sort=controversial: hour, day, week, month, year or all after string / query No next_after from a previous call (or a comment id like t1_os9obnq) to get the page after it Response fields Field Type Description username string sort string returned integer comments object[] comments[].id string comments[].post_id string comments[].post_title string comments[].subreddit string comments[].author string comments[].score integer comments[].created string comments[].body string comments[].body_html string comments[].permalink string comments[].stickied boolean next_after string - Search Subreddits
GET /search_subredditsSearches Reddit communities by name and topic and returns the matching subreddits, plus a cursor for more.
Parameters and response fields for GET /search_subreddits
Request parameters Name Type / location Required Description query string / query No search words, e.g. python or hiking cursor string / query No next_cursor from a previous call with the same query, to continue after its results Response fields Field Type Description query string returned integer subreddits object[] subreddits[].name string subreddits[].id string subreddits[].url string subreddits[].description string subreddits[].weekly_visitors integer subreddits[].weekly_contributions integer subreddits[].icon string subreddits[].nsfw boolean next_cursor string
Export reddit.com data to CSV
Each list below downloads as a CSV file with one row per record. Collect it into a dataset with "Get all the data, no code" under the console above. The dataset reads the list page by page, and you download it as CSV, JSON or JSONL.
| List | CSV columns |
|---|---|
List Popular PostsGET /list_popular_posts | id, title, author, subreddit, score, upvote_ratio, comment_count, award_count, created, post_type, flair, domain, url, permalink, body_preview, images, nsfw, spoiler |
Get Post CommentsGET /get_post_comments | id, parent_id, depth, author, score, created, body, body_html, award_count, permalink, deleted |
Search PostsGET /search_posts | id, title, author, subreddit, score, comment_count, created, permalink, thumbnail, matching_snippet, nsfw, spoiler |
List User PostsGET /list_user_posts | id, title, author, subreddit, score, upvote_ratio, comment_count, award_count, created, post_type, flair, domain, url, permalink, body_preview, images, nsfw, spoiler |
List Subreddit PostsGET /list_subreddit_posts | id, title, author, subreddit, score, upvote_ratio, comment_count, award_count, created, post_type, flair, domain, url, permalink, body_preview, images, nsfw, spoiler |
List User CommentsGET /list_user_comments | id, post_id, post_title, subreddit, author, score, created, body, body_html, permalink, stickied |
Search SubredditsGET /search_subreddits | name, id, url, description, weekly_visitors, weekly_contributions, icon, nsfw |
A nested value (a list or an object) is written as JSON in one cell. How datasets and exports work
reddit.com API questions
What you get, what it costs and how to call it.
Is there an official reddit.com API?
This reddit.com API is not official. 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. Whether reddit.com offers a developer API of its own is a question for reddit.com. This one is ready to call with a maviapi key, and every endpoint and field it returns is documented on this page.
What data can I get from the reddit.com API?
The reddit.com API has 8 endpoints. Each returns JSON with the parameters and fields documented above:
- GET
/list_popular_posts: Returns a page of posts from Reddit's front page (r/popular, the most popular posts across Reddit), plus the cursor of the next page. - GET
/get_post_comments: Returns a Reddit post and the comments and replies of its thread, up to `limit` of them. - GET
/search_posts: Searches Reddit posts and returns the matching posts, plus a cursor for the next results. - GET
/list_user_posts: Returns one page (about 25) of the posts a Reddit user submitted, plus the cursor of the next page. - GET
/list_subreddit_posts: Returns one page (about 25) of posts from a subreddit's feed, plus the cursor of the next page. - GET
/get_subreddit: Returns a subreddit's profile: name, id (t5_...), url, description, weekly_visitors, weekly_contributions, icon and banner image URLs and its status message… - GET
/list_user_comments: Returns one page (about 25) of a Reddit user's comments, newest first by default, plus the cursor of the next page. - GET
/search_subreddits: Searches Reddit communities by name and topic and returns the matching subreddits, plus a cursor for more.
How much does the reddit.com API cost?
Calls are paid in credits from your maviapi plan, and only successful calls are charged. Every endpoint of this API costs 5 credits per call. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. Failed calls are free. 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 API?
Send an HTTPS request to the endpoint with your API key in the Authorization header. For example, GET /list_popular_posts:
curl 'https://api.maviapi.com/v1/sites/reddit/list_popular_posts' \
-H "Authorization: Bearer $MAVI_KEY"Create a key on your API keys page, or try any endpoint first in the console above with the free test key.
What are the ways to get reddit.com data as JSON?
Each way to get reddit.com data as JSON fits a different need:
- Your own scraper: Full control and no vendor, but the parsing, the blocked requests and the repairs after every change on reddit.com are yours. Better for a one-off pull from a page that rarely changes.
- Apify: A marketplace of Actors you run, where input, output and price are set by each Actor. Better when an Actor already returns what you need, or you want to host your own code. See maviapi vs Apify.
- RapidAPI: A hub of APIs added by many providers, called with one RapidAPI key and priced per API. Better when you already use the hub and one of its APIs covers what you need. Source: RapidAPI docs.
- maviapi: The reddit.com API on this page: 8 documented endpoints, a published response schema and one key for the whole catalog. Better when this data is part of your product and you do not want to maintain a scraper.
What happens when reddit.com changes its layout?
Your code does not change. maviapi keeps the reddit.com API working when reddit.com changes its pages, so you keep calling the same endpoints and get JSON in the shape documented here. See its current health on the status page and what changed in its changelog.
Will an update break my reddit.com API integration?
No. An endpoint you use never changes shape: new fields, optional parameters and endpoints are added beside it, and a change that would break a call ships as a new endpoint. Ignore response fields you do not know, and follow the changelog for what is new.
Related APIs
- Tripadvisor API
Trip-planning data from Tripadvisor: geo search plus attractions, restaurants and hotels by location (geo_id), with…
- Google Maps API
Structured data from maps.google.com.
- Kiwi.com API
Search and compare flights on Kiwi.com, itineraries with live prices, airlines, routes and departure/arrival times…