Reddit Comments API

GET   /api/v1/search?engine=reddit_comments

The Reddit Comments API returns the comments on a post from Reddit as structured JSON, in the order Reddit shows them, with their replies nested. Look a post up by its ID, such as the id of a Reddit Search API result, or by its link, including share links from the Reddit app. Page through its comments with next_page_token, and load the replies Reddit hides below any comment with that comment's replies_next_page_token. NSFW posts are returned only when safe is off.

API Parameters

Post

  • Name
    post_id
    Required
    Optional
    Description

    The ID of the post. Use the id of a Reddit Search API result, for example t3_ckbolc, or the ID in a post link, for example ckbolc.

    Required if url is not provided.

  • Name
    url
    Required
    Optional
    Description

    The link to the post, for example https://www.reddit.com/r/aww/comments/ckbolc/this_is_tiger_he_just_turned_31_we_are_told_he_is/. Links from old.reddit.com and redd.it, and share links from the Reddit app, work as well.

    Required if post_id is not provided.

Sorting

  • Name
    sort_by
    Required
    Optional
    Description

    Sorts the comments. By default, they come in the order Reddit picks for the post, usually best. Options are:

    • best
    • top - highest score
    • new - newest first
    • controversial
    • old - oldest first
    • q_and_a - questions answered by the author first

Filters

  • Name
    safe
    Required
    Optional
    Description

    Controls NSFW posts. active (default) answers an NSFW post with an error, off returns its comments, its later pages and hidden replies included.

Pagination

  • Name
    next_page_token
    Required
    Optional
    Description

    The token for the next page of comments. Use pagination.next_page_token from the previous response, or a comment's replies_next_page_token to get the replies Reddit hides below it. Send it with the same post_id or url, sort_by and safe. A token from an NSFW post works only with safe set to off.

    The first page holds the comments Reddit shows first, with replies up to three levels deep. Each next page holds up to about 100 more comments, two levels deep. Pages get shorter as you go, and Reddit stops after a few hundred to about a thousand top-level comments, depending on the post and the order. Another sort_by reaches other comments.

Engine

  • Name
    engine
    Required
    Required
    Description

    Parameter defines an engine that will be used to retrieve real-time data. It must be set to reddit_comments.

API key

  • Name
    api_key
    Required
    Required
    Description

    The api_key authenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).

Zero Data Retention

  • Name
    zero_retention
    Enterprise Only
    Enterprise Only
    Required
    Optional
    Description

    Set this parameter to true to disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.

API Examples

Comments

Comments

The first page holds the comments Reddit shows first on the post, with replies up to three levels deep.

GET
https://www.searchapi.io/api/v1/search?engine=reddit_comments&post_id=t3_ckbolc
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "reddit_comments",
  "post_id": "t3_ckbolc"
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_EM9arelpd2kFq22NoW0Nw8nB",
    "status": "Success",
    "created_at": "2026-10-28T17:59:13Z",
    "request_time_taken": 2.0,
    "parsing_time_taken": 0.05,
    "total_time_taken": 2.05,
    "request_url": "https://www.reddit.com/comments/ckbolc/",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_EM9arelpd2kFq22NoW0Nw8nB.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_EM9arelpd2kFq22NoW0Nw8nB"
  },
  "search_parameters": {
    "engine": "reddit_comments",
    "post_id": "t3_ckbolc"
  },
  "search_information": {
    "sort_by": "best"
  },
  "comments": [
    {
      "position": 1,
      "id": "t1_evlphxf",
      "author": {
        "username": "j1022",
        "id": "t2_cv5xb",
        "link": "https://www.reddit.com/user/j1022/"
      },
      "text": "So do you feed him anything special or do anything to help extend his life?",
      "link": "https://www.reddit.com/r/aww/comments/ckbolc/comment/evlphxf/",
      "score": 3091,
      "iso_date": "2019-07-31T18:25:48Z",
      "parent_id": "t3_ckbolc",
      "replies": [
        {
          "position": 1,
          "id": "t1_evlpwkz",
          "author": {
            "username": "Aritilli",
            "id": "t2_3vg7332p",
            "link": "https://www.reddit.com/user/Aritilli/"
          },
          "text": "He drinks from the showers",
          "link": "https://www.reddit.com/r/aww/comments/ckbolc/comment/evlpwkz/",
          "score": 5812,
          "iso_date": "2019-07-31T18:28:14Z",
          "is_submitter": true,
          "parent_id": "t1_evlphxf",
          "more_replies": 110,
          "replies_next_page_token": "Y29tbWVudHRyZWU6Y2Y4YTYzNjIsOjoyOmQxOnQxX2V2bHB3a3o="
        },
        "..."
      ],
      "more_replies": 47,
      "replies_next_page_token": "Y29tbWVudHRyZWU6MGY2MGRkNTMsOjoxOmV4OiVeeSdsWg=="
    },
    "..."
  ],
  "pagination": {
    "next_page_token": "Y29tbWVudHRyZWU6MTAyZTU0NWEsOjowOmV4OiVeeFY8dzpRdyFKM1c6MEFlJWVcKU1wMWo9JHF9eDsiIUJ+cyMwZyh4ZCJqLFBxIyI="
  }
}

Sorted Comments

Sorted Comments
GET
https://www.searchapi.io/api/v1/search?engine=reddit_comments&sort_by=top&url=https%3A%2F%2Fwww.reddit.com%2Fr%2FIAmA%2Fcomments%2Fz1c9z%2Fi_am_barack_obama_president_of_the_united_states%2F
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "reddit_comments",
  "url": "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/",
  "sort_by": "top"
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_ZGK9PqJ3jK6hd22MpBj1zdOm",
    "status": "Success",
    "created_at": "2026-10-28T17:59:22Z",
    "request_time_taken": 1.53,
    "parsing_time_taken": 0.06,
    "total_time_taken": 1.59,
    "request_url": "https://www.reddit.com/comments/z1c9z/?sort=top",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_ZGK9PqJ3jK6hd22MpBj1zdOm.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_ZGK9PqJ3jK6hd22MpBj1zdOm"
  },
  "search_parameters": {
    "engine": "reddit_comments",
    "url": "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/",
    "sort_by": "top"
  },
  "search_information": {
    "sort_by": "top"
  },
  "comments": [
    {
      "position": 1,
      "id": "t1_c60o0iw",
      "author": {
        "username": "Biinaryy",
        "id": "t2_76bmi",
        "link": "https://www.reddit.com/user/Biinaryy/"
      },
      "text": "Here is a collection of all the questions and answers:\n\nQuestion: Link\n\n> I am recent law school graduate. Despite graduating from a top school, I find myself unemployed with a large student loan debt burden. While I'm sure my immediate prospects will improve in time, it's difficult to be optimistic about the future knowing that my ability to live a productive life -- to have a fulfilling career, to buy a house, to someday raise a family -- is hampered by my debt and the bleak economic outlook for young people. I know that I'm not alone in feeling this way. Many of us are demoralized. Your 2008 campaign was successful in large part due to the efforts of younger demographics. We worked for you, we campaigned for you, and we turned out in record numbers to vote for you. What can I say to encourage those in similar situations as I am to show up again in November? What hope can you offer us for your second term?\n\nAnswer:\n\n> I understand how tough it is out there for recent grads. You're right - your long term prospects are great, but that doesn't help in the short term. Obviously some of the steps we have taken already help young people at the start of their careers. Because of the health care bill , you can stay on your parent's plan until you're twenty six. Because of our student loan bill, we are lowering the debt burdens that young people have to carry. But the key for your future, and all our futures, is an economy that is growing and creating solid middle class jobs - and that's why the choice in this election is so important. The other party has two ideas for growth - more taxs cuts for the wealthy (paid for by raising tax burdens on the middle class and gutting investments like education) and getting rid of regulations we've put in place to control the excesses on wall street and help consumers. These ideas have been tried, they didnt work, and will make the economy worse. I want to keep promoting advanced manufacturing that will bring jobs back to America, promote all-American energy sources (including wind and solar), keep investing in education and make college more affordable, rebuild our infrastructure, invest in science, and reduce our deficit in a balanced way with prudent spending cuts and higher taxes on folks making more than $250,000/year. I don't promise that this will solve all our immediate economic challenges, but my plans will lay the foundation for long term growth for your generation, and for generations to follow. So don't be discouraged - we didn't get into this fix overnight, and we won't get out overnight, but we are making progress and with your help will make more.\n\nQuestion: Link\n\n> What's the recipe for the White House's beer ?\n\nAnswer:\n\n> It will be out soon! I can tell from first hand experience, it is tasty.\n\nQuestion: Link\n\n> What are you going to do to end the corrupting influence of money in politics during your second term?\n\nAnswer:\n\n> Money has always been a factor in politics, but we are seeing something new in the no-holds barred flow of seven and eight figure checks, most undisclosed, into super-PACs ; they fundamentally threaten to overwhelm the political process over the long run and drown out the voices of ordinary citizens. We need to start with passing the Disclose Act that is already written and been sponsored in Congress - to at least force disclosure of who is giving to who. We should also pass legislation prohibiting the bundling of campaign contributions from lobbyists. Over the longer term, I think we need to seriously consider mobilizing a constitutional amendment process to overturn Citizens United (assuming the Supreme Court doesn't revisit it). Even if the amendment process falls short, it can shine a spotlight of the super-PAC phenomenon and help apply pressure for change.\n\nQuestion: Link\n\n> What was the most difficult decision that you had to make during this term?\n\nAnswer:\n\n> The decision to surge our forces in afghanistan . Any time you send our brave men and women into battle, you know that not everyone will come home safely, and that necessarily weighs heavily on you. The decision did help us blunt the taliban's momentum, and is allowing us to transition to afghan lead - so we will have recovered that surge at the end of this month, and will end the war at the end of 2014. But knowing of the heroes that have fallen is something you never forget.\n\nQuestion: Link\n\n> What is the first thing you'll do on November 7th, win or lose?\n\nAnswer:\n\n> Win or lose, I'll be thanking everybody who is working so hard - especially all the volunteers in field offices all across the country, and the amazing young people in our campaign offices.\n\nQuestion: Link\n\n> How are you going help small businesses in 2013 and 2014? and what if any bills are you going to implement for small businesses, in 2013, and 2014?\n\nAnswer:\n\n> We've really focused on this since I came into office - 18 tax cuts for small business, easier funding from the SBA. Going forward, I want to keep taxes low for the 98 percent of small businesses that have $250,000 or less in income, make it easier for small business to access financing, and expand their opportunities to export. And we will be implementing the Jobs Act bill that I signed that will make it easier for startups to access crowd-funding and reduce their tax burden at the start-up stage.\n\nQuestion: Link\n\n> Who's your favourite Basketball player?\n\nAnswer:\n\n> Jordan - I'm a Bulls guy.\n\nQuestion: Link\n\n> We know how Republicans feel about protecting Internet Freedom. Is Internet Freedom an issue you'd push to add to the Democratic Party's 2012 platform?\n\nAnswer:\n\n> Internet freedom is something I know you all care passionately about; I do too. We will fight hard to make sure that the internet remains the open forum for everybody - from those who are expressing an idea to those to want to start a business. And although there will be occasional disagreements on the details of various legislative proposals, I won't stray from that principle - and it will be reflected in the platform.\n\nQuestion: Link\n\n> Are you considering increasing funds to the space program?\n\nAnswer:\n\n> Making sure we stay at the forefront of space exploration is a big priority for my administration. The passing of Neil Armstrong this week is a reminder of the inspiration and wonder that our space program has provided in the past; the curiosity probe on mars is a reminder of what remains to be discovered. The key is to make sure that we invest in cutting edge research that can take us to the next level - so even as we continue work with the international space station, we are focused on a potential mission to a asteroid as a prelude to a manned Mars flight.\n\nQuestion: Link\n\n> How do you balance family life and hobbies with, well, being the POTUS?\n\nAnswer:\n\n> It's hard - truthfully the main thing other than work is just making sure that I'm spending enough time with michelle and the girls. The big advantage I have is that I live above the store - so I have no commute! So we make sure that when I'm in DC I never miss dinner with them at 6:30 pm - even if I have to go back down to the Oval for work later in the evening. I do work out every morning as well, and try to get a basketball or golf game in on the weekends just to get out of the bubble. Speaking of balance, though, I need to get going so I'm back in DC in time for dinner. But I want to thank everybody at reddit for participating - this is an example of how technology and the internet can empower the sorts of conversations that strengthen our democracy over the long run. AND REMEMBER TO VOTE IN NOVEMBER - if you need to know how to register, go to Gottaregister.com. By the way, if you want to know what I think about this whole reddit experience - NOT BAD!\n\nEdit: Added links.",
      "link": "https://www.reddit.com/r/IAmA/comments/z1c9z/comment/c60o0iw/",
      "score": 5399,
      "iso_date": "2012-08-29T21:44:19Z",
      "edited_iso_date": "2012-08-30T22:43:12Z",
      "parent_id": "t3_z1c9z",
      "replies": [
        {
          "position": 1,
          "id": "t1_c60pmox",
          "author": {
            "username": "delmar15",
            "id": "t2_4wl5u",
            "link": "https://www.reddit.com/user/delmar15/"
          },
          "text": "He said he would do an AMA for 30 min. That looks like 30 min of answering questions.",
          "link": "https://www.reddit.com/r/IAmA/comments/z1c9z/comment/c60pmox/",
          "score": 2574,
          "iso_date": "2012-08-29T23:45:38Z",
          "parent_id": "t1_c60o0iw",
          "replies": [
            {
              "position": 1,
              "id": "t1_c60qa15",
              "author": {
                "username": "4TEHSWARM",
                "id": "t2_6miuy",
                "link": "https://www.reddit.com/user/4TEHSWARM/"
              },
              "text": "I'm actually surprised he was able to answer any questions after breaking Reddit.",
              "link": "https://www.reddit.com/r/IAmA/comments/z1c9z/comment/c60qa15/",
              "score": 2075,
              "iso_date": "2012-08-30T00:37:03Z",
              "parent_id": "t1_c60pmox",
              "more_replies": 32,
              "replies_next_page_token": "Y29tbWVudHRyZWU6MDYyZGMxMTEsOjozOmQxOnQxX2M2MHFhMTU="
            },
            "..."
          ],
          "more_replies": 84,
          "replies_next_page_token": "Y29tbWVudHRyZWU6N2U5ZDhjZWMsOjoyOmV4OiRtJko5Lw=="
        },
        "..."
      ],
      "more_replies": 253,
      "replies_next_page_token": "Y29tbWVudHRyZWU6MThhNTgyMWYsOjoxOmV4OiRtJkZodjokOiNfUA=="
    },
    "..."
  ],
  "pagination": {
    "next_page_token": "Y29tbWVudHRyZWU6YzM3MzNjOWEsOjowOmV4OiRtJjU3RDpBeWEsakc6Ikc0OyNoJWUjPjJGIls8bSM5cSMzcCNSIi5MQA=="
  }
}

Pagination

Pagination

Pass the pagination.next_page_token value from a response as next_page_token, with the same post_id or url and sort_by, to get the next comments. Each next page holds up to about 100 comments, two levels deep.

GET
https://www.searchapi.io/api/v1/search?engine=reddit_comments&next_page_token=Y29tbWVudHRyZWU6MTAyZTU0NWEsOjowOmV4OiVeeFY8dzpRdyFKM1c6MEFlJWVcKU1wMWo9JHF9eDsiIUJ%2BcyMwZyh4ZCJqLFBxIyI%3D&post_id=t3_ckbolc
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "reddit_comments",
  "post_id": "t3_ckbolc",
  "next_page_token": "Y29tbWVudHRyZWU6MTAyZTU0NWEsOjowOmV4OiVeeFY8dzpRdyFKM1c6MEFlJWVcKU1wMWo9JHF9eDsiIUJ+cyMwZyh4ZCJqLFBxIyI="
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_rb28K9xoXv9cGD16pzE1BA7Q",
    "status": "Success",
    "created_at": "2026-10-28T17:59:24Z",
    "request_time_taken": 1.09,
    "parsing_time_taken": 0.15,
    "total_time_taken": 1.24,
    "request_url": "https://www.reddit.com/comments/ckbolc/",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_rb28K9xoXv9cGD16pzE1BA7Q.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_rb28K9xoXv9cGD16pzE1BA7Q"
  },
  "search_parameters": {
    "engine": "reddit_comments",
    "post_id": "t3_ckbolc",
    "next_page_token": "Y29tbWVudHRyZWU6MTAyZTU0NWEsOjowOmV4OiVeeFY8dzpRdyFKM1c6MEFlJWVcKU1wMWo9JHF9eDsiIUJ+cyMwZyh4ZCJqLFBxIyI="
  },
  "comments": [
    {
      "position": 1,
      "id": "t1_evlh76i",
      "author": {
        "username": "Immabok",
        "id": "t2_15b9dj",
        "link": "https://www.reddit.com/user/Immabok/"
      },
      "text": "He could possibly be the oldest cat in the world",
      "link": "https://www.reddit.com/r/aww/comments/ckbolc/comment/evlh76i/",
      "score": 28478,
      "iso_date": "2019-07-31T17:37:44Z",
      "parent_id": "t3_ckbolc",
      "replies": [
        {
          "position": 1,
          "id": "t1_evm13y8",
          "author": {
            "username": "Pet_Disneyfication",
            "id": "t2_wxxbv",
            "link": "https://www.reddit.com/user/Pet_Disneyfication/"
          },
          "text": "It's incredible! This would put him on the list of oldest cats for sure, most of them are around 30\n\nAlso, I'm a novelty account so here's a drawing!",
          "text_links": [
            "https://imgur.com/tgaZoRz",
            "..."
          ],
          "link": "https://www.reddit.com/r/aww/comments/ckbolc/comment/evm13y8/",
          "score": 1927,
          "iso_date": "2019-07-31T19:37:29Z",
          "parent_id": "t1_evlh76i",
          "more_replies": 40,
          "replies_next_page_token": "Y29tbWVudHRyZWU6YjYyNjY2MjQsOjoyOmQxOnQxX2V2bTEzeTg="
        },
        "..."
      ],
      "more_replies": 130,
      "replies_next_page_token": "Y29tbWVudHRyZWU6MTA2NmVmYjUsOjoxOmV4OiVeeHo0QDokcUk6KC8+Kyp1JUYrIlQnUnEl"
    },
    "..."
  ],
  "pagination": {
    "next_page_token": "Y29tbWVudHRyZWU6NjBiNjUzN2UsOjowOmV4OiVeeFY8dzonVzw8SGtJJ1EtV2g8Kj5+KjZLVT1USERkWjwtLS42SVBDSD9Ta2RlIyVaV0NdODpVPCNTWy04byVlXClNcCY/Pzwje19EeCcxaiVJQWg3ImNqIkByRkwjLWB4O3VuKlN+czNRVHoiST0yKDtvIk1UQUwjM1AkTUAiZn4kNjEiKDhybyIyQzJhInI/JH1RKGI5ckknWFYjIW4kLnkiJ1ciZTAoMk4jc0IiaSMmR29NZyI3RiIhLSRYKiglMSNzYj9NI2MmIiwoIj5kKVJnJ1cuJyxjIjl7InYjZT0jRiQmIU4iJywsQG0mQlgjWHJLYndoJDBsLFwnJygoZCQ/RCJodShmJC1HfCNvPTZiXSdpXys1aW15ImxNI3x3QXZDIzdGKFBJcDgnMi8nPnw/Nw=="
  }
}

Replies

Replies

Where Reddit cuts a thread, the comment carries more_replies, the number of replies Reddit hides below it, and a replies_next_page_token. Pass that token as next_page_token, with the same post_id or url and sort_by, to get those replies, nested the same way. Every comment names its parent in parent_id: the comment it replies to, or the post for a top-level comment.

GET
https://www.searchapi.io/api/v1/search?engine=reddit_comments&next_page_token=Y29tbWVudHRyZWU6Y2Y4YTYzNjIsOjoyOmQxOnQxX2V2bHB3a3o%3D&post_id=t3_ckbolc
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "reddit_comments",
  "post_id": "t3_ckbolc",
  "next_page_token": "Y29tbWVudHRyZWU6Y2Y4YTYzNjIsOjoyOmQxOnQxX2V2bHB3a3o="
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_6QeGdKRg9qesl4e0g8mBExyv",
    "status": "Success",
    "created_at": "2026-10-28T17:59:37Z",
    "request_time_taken": 1.4,
    "parsing_time_taken": 0.12,
    "total_time_taken": 1.52,
    "request_url": "https://www.reddit.com/comments/ckbolc/",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_6QeGdKRg9qesl4e0g8mBExyv.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_6QeGdKRg9qesl4e0g8mBExyv"
  },
  "search_parameters": {
    "engine": "reddit_comments",
    "post_id": "t3_ckbolc",
    "next_page_token": "Y29tbWVudHRyZWU6Y2Y4YTYzNjIsOjoyOmQxOnQxX2V2bHB3a3o="
  },
  "comments": [
    {
      "position": 1,
      "id": "t1_evmdrru",
      "author": {
        "username": "LSDfuelledSquirrel",
        "id": "t2_zhv0e",
        "link": "https://www.reddit.com/user/LSDfuelledSquirrel/"
      },
      "text": "Thirsty",
      "text_links": [
        "https://i.imgur.com/pm8GWCE.jpg",
        "..."
      ],
      "link": "https://www.reddit.com/r/aww/comments/ckbolc/comment/evmdrru/",
      "score": 133,
      "iso_date": "2019-07-31T20:57:27Z",
      "parent_id": "t1_evlpwkz",
      "replies": [
        {
          "position": 1,
          "id": "t1_fehjh4z",
          "author": {
            "username": "TheMelonOwl",
            "id": "t2_1p5dosuu",
            "link": "https://www.reddit.com/user/TheMelonOwl/"
          },
          "text": "Thorsty",
          "link": "https://www.reddit.com/r/aww/comments/ckbolc/comment/fehjh4z/",
          "score": 28,
          "iso_date": "2020-01-15T19:49:59Z",
          "parent_id": "t1_evmdrru",
          "more_replies": 43,
          "replies_next_page_token": "Y29tbWVudHRyZWU6NTg4NTMzYzAsOjoyOmQxOnQxX2ZlaGpoNHo="
        },
        "..."
      ]
    },
    "..."
  ]
}