Reddit User Comments API

GET   /api/v1/search?engine=reddit_user_comments

The Reddit User Comments API returns the comments a user posted on Reddit as structured JSON, in the order Reddit lists them: new, hot, top or controversial. Each comment comes with its text, score and date, the post it was made on, its subreddit and, for a reply, the user it answers, and next_page_token pages through the rest. Look a user up by their username, such as the author.username of a Reddit Search API result, or by a link to their profile. Reddit returns no comments for users who hide them from their profile, and comments made in NSFW communities and NSFW profiles are left out unless safe is off.

API Parameters

User

  • Name
    username
    Required
    Required
    Description

    The username, for example nasa, or a link to the profile, for example https://www.reddit.com/user/nasa/. Use the author.username of a Reddit Search API result, or look the user up first with the Reddit User API.

Sorting

  • Name
    sort_by
    Required
    Optional
    Description

    Sorts the comments. Options are:

    • new - newest first (default)
    • hot - currently popular
    • top - highest score
    • controversial - most mixed votes

  • Name
    time_period
    Required
    Optional
    Description

    Limits top comments to a time range, and is only accepted with that sort. Reddit's default is any_time. Options are:

    • last_hour
    • last_day
    • last_week
    • last_month
    • last_year
    • any_time

Filters

  • Name
    safe
    Required
    Optional
    Description

    Controls NSFW content. active (default) leaves out comments made in NSFW communities and answers an NSFW profile with an error, off includes them.

Pagination

  • Name
    next_page_token
    Required
    Optional
    Description

    The token for the next page of comments. Use the pagination.next_page_token value from the previous response with the same username, sort_by and time_period. A page holds about 25 comments, as on Reddit, which lists up to about 1,000 comments per sort.

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_user_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
GET
https://www.searchapi.io/api/v1/search?engine=reddit_user_comments&username=nasa
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "reddit_user_comments",
  "username": "nasa"
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_E6M9wDPgb74HMKB1oRnqybBA",
    "status": "Success",
    "created_at": "2026-10-28T22:50:16Z",
    "request_time_taken": 0.92,
    "parsing_time_taken": 0.03,
    "total_time_taken": 0.95,
    "request_url": "https://www.reddit.com/user/nasa/comments/?sort=new",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_E6M9wDPgb74HMKB1oRnqybBA.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_E6M9wDPgb74HMKB1oRnqybBA"
  },
  "search_parameters": {
    "engine": "reddit_user_comments",
    "username": "nasa"
  },
  "comments": [
    {
      "position": 1,
      "id": "t1_19rg0m3xhzy8x",
      "author": {
        "username": "nasa",
        "id": "t2_1dkvvygb",
        "link": "https://www.reddit.com/user/nasa/"
      },
      "text": "In this nebula 3,300 light-years from Earth, the bright star in the middle has strewn out jets of superheated material, creating shockwaves and energizing the gas around them, seen in gold on the left. Protostars forming nearby are creating similar jets, glowing in red on the right.\n\nLearn more about this nebula — including a full-screen, interactive tour — on our Webb site.",
      "text_links": [
        "https://science.nasa.gov/missions/webb/nasas-webb-captures-commotion-from-nebulas-stellar-jets/",
        "..."
      ],
      "link": "https://www.reddit.com/r/nasa/comments/1xbtra0/comment/19rg0m3xhzy8x/",
      "score": 9,
      "iso_date": "2026-10-21T17:36:05Z",
      "post": {
        "id": "t3_1xbtra0",
        "title": "Stellar jets seen by NASA's James Webb Space Telescope",
        "link": "https://www.reddit.com/r/nasa/comments/1xbtra0/stellar_jets_seen_by_nasas_james_webb_space/"
      },
      "subreddit": {
        "name": "nasa",
        "link": "https://www.reddit.com/r/nasa/",
        "icon": "https://styles.redditmedia.com/t5_2qk6m/styles/communityIcon_h6dwqk9gbzf21.png?width=64&frame=1&auto=webp&s=feb8de76867218985735107a55e8d31456a2e77b"
      }
    },
    "..."
  ],
  "pagination": {
    "next_page_token": "dDFfcDF4MXl4aA=="
  }
}

Top Comments of All Time

Top Comments of All Time
GET
https://www.searchapi.io/api/v1/search?engine=reddit_user_comments&sort_by=top&time_period=any_time&username=thisisbillgates
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "reddit_user_comments",
  "username": "thisisbillgates",
  "sort_by": "top",
  "time_period": "any_time"
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_EM9arelpd2kFq2VqoW0Nw8nB",
    "status": "Success",
    "created_at": "2026-10-28T22:50:18Z",
    "request_time_taken": 1.58,
    "parsing_time_taken": 0.03,
    "total_time_taken": 1.61,
    "request_url": "https://www.reddit.com/user/thisisbillgates/comments/?sort=top&t=all",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_EM9arelpd2kFq2VqoW0Nw8nB.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_EM9arelpd2kFq2VqoW0Nw8nB"
  },
  "search_parameters": {
    "engine": "reddit_user_comments",
    "username": "thisisbillgates",
    "sort_by": "top",
    "time_period": "any_time"
  },
  "comments": [
    {
      "position": 1,
      "id": "t1_dux4be8",
      "author": {
        "username": "thisisbillgates",
        "id": "t2_91u3j",
        "link": "https://www.reddit.com/user/thisisbillgates/"
      },
      "text": "I would be glad to pass along your thoughts on this to the right person at Microsoft - they care a lot about getting accessibility right.",
      "link": "https://www.reddit.com/r/IAmA/comments/80ow6w/comment/dux4be8/",
      "score": 37258,
      "iso_date": "2018-02-27T19:08:36Z",
      "is_submitter": true,
      "reply_to": {
        "username": "Ventilatorr",
        "link": "https://www.reddit.com/user/Ventilatorr/"
      },
      "post": {
        "id": "t3_80ow6w",
        "title": "I’m Bill Gates, co-chair of the Bill & Melinda Gates Foundation. Ask Me Anything.",
        "link": "https://www.reddit.com/r/IAmA/comments/80ow6w/im_bill_gates_cochair_of_the_bill_melinda_gates/"
      },
      "subreddit": {
        "name": "IAmA",
        "link": "https://www.reddit.com/r/IAmA/",
        "icon": "https://styles.redditmedia.com/t5_2qzb6/styles/communityIcon_v0zs2b3d7f251.png?width=64&frame=1&auto=webp&s=28ec291f4c3f4776dfe5345f3a5c880493bf4535"
      }
    },
    "..."
  ],
  "pagination": {
    "next_page_token": "dDFfaTk4Nnpmeg=="
  }
}

Pagination

Pagination

Pass the pagination.next_page_token value from a response as next_page_token, with the same username, sort_by and time_period, to get the next page.

GET
https://www.searchapi.io/api/v1/search?engine=reddit_user_comments&next_page_token=dDFfaTk4Nnpmeg%3D%3D&sort_by=top&time_period=any_time&username=thisisbillgates
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "reddit_user_comments",
  "username": "thisisbillgates",
  "sort_by": "top",
  "time_period": "any_time",
  "next_page_token": "dDFfaTk4Nnpmeg=="
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_ZGK9PqJ3jK6hd2KGpBj1zdOm",
    "status": "Success",
    "created_at": "2026-10-28T22:50:20Z",
    "request_time_taken": 1.02,
    "parsing_time_taken": 0.01,
    "total_time_taken": 1.03,
    "request_url": "https://www.reddit.com/user/thisisbillgates/comments/?sort=top&t=all",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_ZGK9PqJ3jK6hd2KGpBj1zdOm.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_ZGK9PqJ3jK6hd2KGpBj1zdOm"
  },
  "search_parameters": {
    "engine": "reddit_user_comments",
    "username": "thisisbillgates",
    "sort_by": "top",
    "time_period": "any_time",
    "next_page_token": "dDFfaTk4Nnpmeg=="
  },
  "comments": [
    {
      "position": 1,
      "id": "t1_dux7gh5",
      "author": {
        "username": "thisisbillgates",
        "id": "t2_91u3j",
        "link": "https://www.reddit.com/user/thisisbillgates/"
      },
      "text": "No.",
      "link": "https://www.reddit.com/r/IAmA/comments/80ow6w/comment/dux7gh5/",
      "score": 12406,
      "iso_date": "2018-02-27T19:54:48Z",
      "is_submitter": true,
      "reply_to": {
        "username": "jutah1983",
        "link": "https://www.reddit.com/user/jutah1983/"
      },
      "post": {
        "id": "t3_80ow6w",
        "title": "I’m Bill Gates, co-chair of the Bill & Melinda Gates Foundation. Ask Me Anything.",
        "link": "https://www.reddit.com/r/IAmA/comments/80ow6w/im_bill_gates_cochair_of_the_bill_melinda_gates/"
      },
      "subreddit": {
        "name": "IAmA",
        "link": "https://www.reddit.com/r/IAmA/",
        "icon": "https://styles.redditmedia.com/t5_2qzb6/styles/communityIcon_v0zs2b3d7f251.png?width=64&frame=1&auto=webp&s=28ec291f4c3f4776dfe5345f3a5c880493bf4535"
      }
    },
    "..."
  ],
  "pagination": {
    "next_page_token": "dDFfZHV4NjkwMQ=="
  }
}