Skip to content

Last updated

Changelog

reddit.com API

HealthyRead-only

Structured data from reddit.com. Generated from reddit.com.

Base URL
https://api.maviapi.com/v1/sites/reddit
8
Endpoints
1 h ago
Last verified
100%
Uptime / 7d
6593ms
p50 latency
GET/list_popular_posts5 credits per call

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.

Bearer auth. Pass your key as Authorization: Bearer <key> on every request.
stringOptionalin query

hot, new, top or rising

stringOptionalin query

period for sort=top: hour, day, week, month, year or all

stringOptionalin query

two-letter country code (e.g. GB, DE, IN) for that country's popular posts; null for everywhere

stringOptionalin query

next_after from a previous call (or a post id like t3_1y4vjxp) to get the page after it

feedstringe.g."popular"
sortstringe.g."hot"
returnedintegere.g.28
postsobject[]18 fields
idstringe.g."t3_1y4gqzi"
titlestringe.g."What's an \"UNWRITTEN RULE\" of society that you accidentally broke and immediately realized how serious people take it ?"
authorstringe.g."prettywhenimmean"
subredditstringe.g."askteddit"
scoreintegere.g.1632
upvote_rationumbere.g.0.9037886340977069
comment_countintegere.g.1718
award_countintegere.g.1
createdstringe.g."2026-11-24T15:52:46.359000+0000"
post_typestringe.g."text"
flairnull
domainstringe.g."self.askteddit"
urlstringe.g."https://www.reddit.com/r/askteddit/comments/1y4gqzi/whats_an_unwritten_rule_of_society_that_you/"
permalinkstringe.g."https://www.reddit.com/r/askteddit/comments/1y4gqzi/whats_an_unwritten_rule_of_society_that_you/"
body_previewstringe.g.""
imagesstring[]
nsfwbooleane.g.false
spoilerbooleane.g.false
next_afterstringe.g."t3_1y4gc8r"
Try itLive
GET
https://api.maviapi.com/v1/sites/reddit/list_popular_posts?sort=hot&time_filter=day
Request
curl "https://api.maviapi.com/v1/sites/reddit/list_popular_posts?sort=hot&time_filter=day" \
-H "Authorization: Bearer $MAVI_KEY"
Example944 B
{
  "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.

How to connect
https://mcp.maviapi.com/mcp

Or 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 import

Paste 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_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.

    Parameters and response fields for GET /list_popular_posts
    Request parameters
    NameType / locationRequiredDescription
    sortstring / queryNohot, new, top or rising
    time_filterstring / queryNoperiod for sort=top: hour, day, week, month, year or all
    countrystring / queryNotwo-letter country code (e.g. GB, DE, IN) for that country's popular posts; null for everywhere
    afterstring / queryNonext_after from a previous call (or a post id like t3_1y4vjxp) to get the page after it
    Response fields
    FieldTypeDescription
    feedstring
    sortstring
    returnedinteger
    postsobject[]
    posts[].idstring
    posts[].titlestring
    posts[].authorstring
    posts[].subredditstring
    posts[].scoreinteger
    posts[].upvote_rationumber
    posts[].comment_countinteger
    posts[].award_countinteger
    posts[].createdstring
    posts[].post_typestring
    posts[].flairnull
    posts[].domainstring
    posts[].urlstring
    posts[].permalinkstring
    posts[].body_previewstring
    posts[].imagesstring[]
    posts[].nsfwboolean
    posts[].spoilerboolean
    next_afterstring
  • Get Post Comments GET /get_post_comments

    Returns 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
    NameType / locationRequiredDescription
    poststring / queryNopost URL (any reddit.com/.../comments/<id>/... link, a comment permalink or redd.it/<id>) or a bare post id like 1xyl6xo
    sortstring / queryNocomment order: confidence (Reddit's "Best"), top, new, old, controversial or qa
    limitinteger / queryNomaximum number of comments to return, 1 to 5000; use a high value to get the whole thread
    Response fields
    FieldTypeDescription
    postobject
    post.idstring
    post.titlestring
    post.authorstring
    post.subredditstring
    post.scoreinteger
    post.upvote_rationumber
    post.comment_countinteger
    post.createdstring
    post.post_typestring
    post.urlstring
    post.permalinkstring
    post.bodystring
    returnedinteger
    completeboolean
    commentsobject[]
    comments[].idstring
    comments[].parent_idstring
    comments[].depthinteger
    comments[].authorstring
    comments[].scoreinteger
    comments[].createdstring
    comments[].bodystring
    comments[].body_htmlstring
    comments[].award_countinteger
    comments[].permalinkstring
    comments[].deletedboolean
  • Search Posts GET /search_posts

    Searches Reddit posts and returns the matching posts, plus a cursor for the next results.

    Parameters and response fields for GET /search_posts
    Request parameters
    NameType / locationRequiredDescription
    querystring / queryNosearch words; Reddit operators such as author:name, flair:name, site:example.com, self:yes and title:word work
    subredditstring / queryNosubreddit name to search within (e.g. python); null searches all of Reddit
    sortstring / queryNorelevance, hot, top, new or comments (most commented)
    time_filterstring / queryNoonly posts from the last hour, day, week, month, year, or all
    limitinteger / queryNonumber of results to return, 1 to 50 (results come in batches of about 7, so larger values take longer)
    cursorstring / queryNonext_cursor from a previous call with the same query, to continue after its results
    Response fields
    FieldTypeDescription
    querystring
    subredditnull
    returnedinteger
    resultsobject[]
    results[].idstring
    results[].titlestring
    results[].authorstring
    results[].subredditstring
    results[].scoreinteger
    results[].comment_countinteger
    results[].createdstring
    results[].permalinkstring
    results[].thumbnailnull
    results[].matching_snippetnull
    results[].nsfwboolean
    results[].spoilerboolean
    next_cursorstring
  • List User Posts GET /list_user_posts

    Returns 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
    NameType / locationRequiredDescription
    usernamestring / queryNoReddit username, with or without the u/ prefix
    sortstring / queryNonew, hot, top or controversial
    time_filterstring / queryNoperiod for sort=top and sort=controversial: hour, day, week, month, year or all
    afterstring / queryNonext_after from a previous call (or a post id like t3_fy0ah5) to get the page after it
    Response fields
    FieldTypeDescription
    usernamestring
    sortstring
    returnedinteger
    postsobject[]
    posts[].idstring
    posts[].titlestring
    posts[].authorstring
    posts[].subredditstring
    posts[].scoreinteger
    posts[].upvote_rationumber
    posts[].comment_countinteger
    posts[].award_countnull
    posts[].createdstring
    posts[].post_typestring
    posts[].flairnull
    posts[].domainstring
    posts[].urlstring
    posts[].permalinkstring
    posts[].body_previewstring
    posts[].imagesstring[]
    posts[].nsfwboolean
    posts[].spoilerboolean
    next_afterstring
  • List Subreddit Posts GET /list_subreddit_posts

    Returns 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
    NameType / locationRequiredDescription
    subredditstring / queryNosubreddit name, with or without the r/ prefix, e.g. python or r/AskReddit
    sortstring / queryNohot, new, top, rising or controversial
    time_filterstring / queryNoperiod for sort=top and sort=controversial: hour, day, week, month, year or all
    afterstring / queryNocursor from a previous call's next_after (or a post id like t3_1y4iysc) to get the page after it
    Response fields
    FieldTypeDescription
    subredditstring
    sortstring
    returnedinteger
    postsobject[]
    posts[].idstring
    posts[].titlestring
    posts[].authorstring
    posts[].subredditstring
    posts[].scoreinteger
    posts[].upvote_rationumber
    posts[].comment_countinteger
    posts[].award_countinteger
    posts[].createdstring
    posts[].post_typestring
    posts[].flairstring
    posts[].domainstring
    posts[].urlstring
    posts[].permalinkstring
    posts[].body_previewstring
    posts[].imagesstring[]
    posts[].nsfwboolean
    posts[].spoilerboolean
    next_afterstring
  • Get Subreddit 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 (or null).

    Parameters and response fields for GET /get_subreddit
    Request parameters
    NameType / locationRequiredDescription
    subredditstring / queryNosubreddit name, with or without the r/ prefix, e.g. python
    Response fields
    FieldTypeDescription
    namestring
    idstring
    urlstring
    descriptionstring
    weekly_visitorsinteger
    weekly_contributionsinteger
    iconstring
    bannerstring
    statusstring
  • List User Comments 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.

    Parameters and response fields for GET /list_user_comments
    Request parameters
    NameType / locationRequiredDescription
    usernamestring / queryNoReddit username, with or without the u/ prefix
    sortstring / queryNonew, hot, top or controversial
    time_filterstring / queryNoperiod for sort=top and sort=controversial: hour, day, week, month, year or all
    afterstring / queryNonext_after from a previous call (or a comment id like t1_os9obnq) to get the page after it
    Response fields
    FieldTypeDescription
    usernamestring
    sortstring
    returnedinteger
    commentsobject[]
    comments[].idstring
    comments[].post_idstring
    comments[].post_titlestring
    comments[].subredditstring
    comments[].authorstring
    comments[].scoreinteger
    comments[].createdstring
    comments[].bodystring
    comments[].body_htmlstring
    comments[].permalinkstring
    comments[].stickiedboolean
    next_afterstring
  • Search Subreddits GET /search_subreddits

    Searches 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
    NameType / locationRequiredDescription
    querystring / queryNosearch words, e.g. python or hiking
    cursorstring / queryNonext_cursor from a previous call with the same query, to continue after its results
    Response fields
    FieldTypeDescription
    querystring
    returnedinteger
    subredditsobject[]
    subreddits[].namestring
    subreddits[].idstring
    subreddits[].urlstring
    subreddits[].descriptionstring
    subreddits[].weekly_visitorsinteger
    subreddits[].weekly_contributionsinteger
    subreddits[].iconstring
    subreddits[].nsfwboolean
    next_cursorstring

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.

ListCSV columns
List Popular PostsGET /list_popular_postsid, 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_commentsid, parent_id, depth, author, score, created, body, body_html, award_count, permalink, deleted
Search PostsGET /search_postsid, title, author, subreddit, score, comment_count, created, permalink, thumbnail, matching_snippet, nsfw, spoiler
List User PostsGET /list_user_postsid, 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_postsid, 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_commentsid, post_id, post_title, subreddit, author, score, created, body, body_html, permalink, stickied
Search SubredditsGET /search_subredditsname, 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
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.

  • 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…