Reddit Comment Search API

GET   /api/v1/search?engine=reddit_comment_search

The Reddit Comment Search API searches comments on Reddit across all of Reddit or within one subreddit, and returns them as structured JSON: each comment's text, the links and image in it, its author, score and date, plus the post it was made on and its subreddit. Each page holds up to 10 comments, the ones Reddit shows on one page of its results. For the post and its top comments, pass a comment's post.id to the Reddit Post API. Searching posts instead? Use the Reddit Search API.

API Parameters

Search Query

  • Name
    q
    Required
    Required
    Description

    The terms you want to search Reddit comments for, up to 512 characters.

Filters

  • Name
    subreddit
    Required
    Optional
    Description

    Restricts the search to one subreddit, given by its name, for example rails.

  • Name
    safe
    Required
    Optional
    Description

    Controls comments on NSFW posts. active (default) leaves them out, off includes them.

Sorting

  • Name
    sort_by
    Required
    Optional
    Description

    Sorts the comments. Options are:

    • relevance - most relevant first (default)
    • top - highest score
    • new - newest first

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 q, subreddit, sort_by and safe. A page can hold no comments to return. Its response then has an error and still holds the next page's token. Reddit stops after 25 pages.

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_comment_search.

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_comment_search&q=home+espresso+machine
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "reddit_comment_search",
  "q": "home espresso machine"
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_rewD1O8geEZul2WRgRQ6lvxX",
    "status": "Success",
    "created_at": "2026-10-28T18:45:20Z",
    "request_time_taken": 1.32,
    "parsing_time_taken": 0.02,
    "total_time_taken": 1.35,
    "request_url": "https://www.reddit.com/search/?q=home+espresso+machine&type=comments",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_rewD1O8geEZul2WRgRQ6lvxX.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_rewD1O8geEZul2WRgRQ6lvxX"
  },
  "search_parameters": {
    "engine": "reddit_comment_search",
    "q": "home espresso machine"
  },
  "comments": [
    {
      "position": 1,
      "id": "t1_phrpw3w",
      "author": {
        "username": "RepulsiveDiver7109",
        "link": "https://www.reddit.com/user/RepulsiveDiver7109/"
      },
      "text": "I love tea and prefer it over coffee but I drink way more coffee than I do tea. Tea is only for at home or other people’s homes. Tea tastes weird when you have it in cafes. I think it’s because they tend to use the hot water from the espresso machine, which has been boiling the same water for ages. I will drink a bad cup of coffee. I won’t drink a bad cup of tea.",
      "link": "https://www.reddit.com/r/CasualUK/comments/1xa84as/quick_review_of_english_cuisine/phrpw3w/",
      "score": 201,
      "iso_date": "2026-10-19T20:36:00Z",
      "post": {
        "id": "t3_1xa84as",
        "title": "Quick review of English cuisine",
        "link": "https://www.reddit.com/r/CasualUK/comments/1xa84as/quick_review_of_english_cuisine/",
        "score": 417,
        "comments": 74,
        "iso_date": "2026-10-19T20:29:08Z"
      },
      "subreddit": {
        "name": "CasualUK",
        "id": "t5_3j2jr",
        "link": "https://www.reddit.com/r/CasualUK/",
        "icon": "https://styles.redditmedia.com/t5_3j2jr/styles/communityIcon_6vucgynho4u91.jpg?width=64&frame=1&auto=webp&s=ce45788a70a98996638e9b46a95f3b1a63839927"
      }
    },
    "..."
  ],
  "pagination": {
    "next_page_token": "eyJjYW5kaWRhdGVzX3JldHVybmVkIjoie1wic2VjdGlvbl8xX3BpcGVsaW5lXzBfZ2xvYmFsX21vZGlmaWVyc1wiOlwiMVwiLFwic2VjdGlvbl8xX3BpcGVsaW5lXzFfbG9jYWxfbW9kaWZpZXJzXCI6XCIxXCIsXCJzZWN0aW9uXzJfcGlwZWxpbmVfMV9jb21tZW50X3NlYXJjaFwiOlwiOFwifSIsImV4cGVyaWVuY2Vfc2VsZWN0aW9uIjoiY29tbWVudCIsImV4cGVyaWVuY2VfdmVyc2lvbiI6ImRlZmF1bHQiLCJzZWN0aW9uXzJfcGlwZWxpbmVfMV9jb21tZW50X3NlYXJjaCI6IjEwIn0="
  }
}

Comments in a Subreddit

Comments in a Subreddit
GET
https://www.searchapi.io/api/v1/search?engine=reddit_comment_search&q=hotwire&sort_by=new&subreddit=rails
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "reddit_comment_search",
  "q": "hotwire",
  "subreddit": "rails",
  "sort_by": "new"
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_qdKeRrXoaEwuX9VEo0Pl1Ymz",
    "status": "Success",
    "created_at": "2026-10-28T18:45:20Z",
    "request_time_taken": 0.79,
    "parsing_time_taken": 0.02,
    "total_time_taken": 0.81,
    "request_url": "https://www.reddit.com/r/rails/search/?q=hotwire&type=comments&sort=new",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_qdKeRrXoaEwuX9VEo0Pl1Ymz.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_qdKeRrXoaEwuX9VEo0Pl1Ymz"
  },
  "search_parameters": {
    "engine": "reddit_comment_search",
    "q": "hotwire",
    "subreddit": "rails",
    "sort_by": "new"
  },
  "comments": [
    {
      "position": 1,
      "id": "t1_19rs8pik2mig5",
      "author": {
        "username": "AndrewNggg",
        "link": "https://www.reddit.com/user/AndrewNggg/"
      },
      "text": "I’ve just been following the various NextJS content on YT, this guy who used NextJS, in a monorepo with React Native\n\nHis app is called “BeatGig” and he runs it as a solo developer, and he got like 10 million in sales or smth\n\nTech wise I think he built some open source tooling to make it possible, and I tell u from experience but without personally trying these libraries, that once NextJS updates major version many things will break\n\nAnyways it’s overall nothing as elegant as Hotwire Native\n\nOn a side note I must say the Hotwire and Hotwire native docs are so sparse I am always worried to use it in any major project (I am sure other developers also feel the same)\n\nThen as for RedwoodJS that was their goal, opinionated all in one JS tooling, backend, frontend, mobile, ORM everything.. but then one day they stop mentioning mobile",
      "link": "https://www.reddit.com/r/rails/comments/1xck2g0/i_built_my_app_with_hotwire_because_react_felt/19rs8pik2mig5/",
      "score": 1,
      "iso_date": "2026-10-28T14:03:05Z",
      "reply_to": {
        "id": "t1_19rs73qoerz6r"
      },
      "post": {
        "id": "t3_1xck2g0",
        "title": "I built my app with Hotwire because React felt like too much work. Now I saw Herb. Do we still need React?",
        "link": "https://www.reddit.com/r/rails/comments/1xck2g0/i_built_my_app_with_hotwire_because_react_felt/",
        "score": 53,
        "comments": 63,
        "iso_date": "2026-10-22T14:26:38Z"
      },
      "subreddit": {
        "name": "rails",
        "id": "t5_2qhjn",
        "link": "https://www.reddit.com/r/rails/",
        "icon": "https://styles.redditmedia.com/t5_2qhjn/styles/communityIcon_1m29bruhgym11.jpg?width=64&frame=1&auto=webp&s=82c6eb3122db6490bb8cfd8d633cb42a956b5718"
      }
    },
    "..."
  ],
  "pagination": {
    "next_page_token": "eyJjYW5kaWRhdGVzX3JldHVybmVkIjoie1wic2VjdGlvbl8xX3BpcGVsaW5lXzBfZ2xvYmFsX21vZGlmaWVyc1wiOlwiMVwiLFwic2VjdGlvbl8xX3BpcGVsaW5lXzFfbG9jYWxfbW9kaWZpZXJzXCI6XCIxXCIsXCJzZWN0aW9uXzJfcGlwZWxpbmVfMF9zY29wZV9zd2l0Y2hlclwiOlwiMFwiLFwic2VjdGlvbl8yX3BpcGVsaW5lXzFfY29tbWVudF9zZWFyY2hcIjpcIjEwXCJ9IiwiZXhwZXJpZW5jZV9zZWxlY3Rpb24iOiJjb21tZW50IiwiZXhwZXJpZW5jZV92ZXJzaW9uIjoiZGVmYXVsdCIsInNlY3Rpb25fMl9waXBlbGluZV8xX2NvbW1lbnRfc2VhcmNoIjoiMTAifQ=="
  }
}

Pagination

Pagination
GET
https://www.searchapi.io/api/v1/search?engine=reddit_comment_search&next_page_token=eyJjYW5kaWRhdGVzX3JldHVybmVkIjoie1wic2VjdGlvbl8xX3BpcGVsaW5lXzBfZ2xvYmFsX21vZGlmaWVyc1wiOlwiMVwiLFwic2VjdGlvbl8xX3BpcGVsaW5lXzFfbG9jYWxfbW9kaWZpZXJzXCI6XCIxXCIsXCJzZWN0aW9uXzJfcGlwZWxpbmVfMV9jb21tZW50X3NlYXJjaFwiOlwiOFwifSIsImV4cGVyaWVuY2Vfc2VsZWN0aW9uIjoiY29tbWVudCIsImV4cGVyaWVuY2VfdmVyc2lvbiI6ImRlZmF1bHQiLCJzZWN0aW9uXzJfcGlwZWxpbmVfMV9jb21tZW50X3NlYXJjaCI6IjEwIn0%3D&q=home+espresso+machine
Request
import requests

url = "https://www.searchapi.io/api/v1/search"
params = {
  "engine": "reddit_comment_search",
  "q": "home espresso machine",
  "next_page_token": "eyJjYW5kaWRhdGVzX3JldHVybmVkIjoie1wic2VjdGlvbl8xX3BpcGVsaW5lXzBfZ2xvYmFsX21vZGlmaWVyc1wiOlwiMVwiLFwic2VjdGlvbl8xX3BpcGVsaW5lXzFfbG9jYWxfbW9kaWZpZXJzXCI6XCIxXCIsXCJzZWN0aW9uXzJfcGlwZWxpbmVfMV9jb21tZW50X3NlYXJjaFwiOlwiOFwifSIsImV4cGVyaWVuY2Vfc2VsZWN0aW9uIjoiY29tbWVudCIsImV4cGVyaWVuY2VfdmVyc2lvbiI6ImRlZmF1bHQiLCJzZWN0aW9uXzJfcGlwZWxpbmVfMV9jb21tZW50X3NlYXJjaCI6IjEwIn0="
}

response = requests.get(url, params=params)
print(response.text)
Response
{
  "search_metadata": {
    "id": "search_6KXlErN3Ej2f5lZ9pYvP850b",
    "status": "Success",
    "created_at": "2026-10-28T18:45:22Z",
    "request_time_taken": 1.03,
    "parsing_time_taken": 0.02,
    "total_time_taken": 1.04,
    "request_url": "https://www.reddit.com/search/?q=home+espresso+machine&type=comments",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_6KXlErN3Ej2f5lZ9pYvP850b.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_6KXlErN3Ej2f5lZ9pYvP850b"
  },
  "search_parameters": {
    "engine": "reddit_comment_search",
    "q": "home espresso machine",
    "next_page_token": "eyJjYW5kaWRhdGVzX3JldHVybmVkIjoie1wic2VjdGlvbl8xX3BpcGVsaW5lXzBfZ2xvYmFsX21vZGlmaWVyc1wiOlwiMVwiLFwic2VjdGlvbl8xX3BpcGVsaW5lXzFfbG9jYWxfbW9kaWZpZXJzXCI6XCIxXCIsXCJzZWN0aW9uXzJfcGlwZWxpbmVfMV9jb21tZW50X3NlYXJjaFwiOlwiOFwifSIsImV4cGVyaWVuY2Vfc2VsZWN0aW9uIjoiY29tbWVudCIsImV4cGVyaWVuY2VfdmVyc2lvbiI6ImRlZmF1bHQiLCJzZWN0aW9uXzJfcGlwZWxpbmVfMV9jb21tZW50X3NlYXJjaCI6IjEwIn0="
  },
  "comments": [
    {
      "position": 1,
      "id": "t1_peafl91",
      "author": {
        "username": "FelisCantabrigiensis",
        "link": "https://www.reddit.com/user/FelisCantabrigiensis/"
      },
      "text": "You had a desk, of your own. You could put some of your own stuff on it and leave it there, though a lot of the space was occupied by the computer and the monitor because they were far bigger than today (just check out the size of a 17\" or 19\" CRT monitor). Hot-desking was only for really bad jobs like battery-farm customer service.\n\nYou didn't have motorised desks (which are pretty common today, at least in tech workplaces) and chairs were not usually as good as good chairs these days. Tea was teabags and coffee was instant coffee most of the time, unless you had a nice office and then it had an espresso machine.\n\nMore senior managers had their own offices, and other people had offices in rooms with some, or a few, desks in them - relentless open-plan wasn't so common yet. Air-conditioning was weaker, you could get really hot sometimes.\n\nPretty much everyone came to the office - being able to work at home wasn't that common, because mobile phones weren't that common in the 1990s (much more common by the 2000s). Home internet was slow, or non-existent in the 1990s, and portable computers weren't that common (expensive and underpowered, a lot of people used a desktop). There was a lot more paperwork, and a lot more phone calls to talk things over with people or going to meet them in-person.\n\nSome people were nice, some people weren't. Petty tyrants were as common, or more, than they are now.",
      "link": "https://www.reddit.com/r/AskUK/comments/1wzce7t/what_were_british_offices_like_in_the_90s_early/peafl91/",
      "score": 75,
      "iso_date": "2026-10-06T19:59:57Z",
      "post": {
        "id": "t3_1wzce7t",
        "title": "What were British offices like in the 90s / early 00s?",
        "link": "https://www.reddit.com/r/AskUK/comments/1wzce7t/what_were_british_offices_like_in_the_90s_early/",
        "score": 155,
        "comments": 346,
        "iso_date": "2026-10-06T19:51:08Z"
      },
      "subreddit": {
        "name": "AskUK",
        "id": "t5_2t4s3",
        "link": "https://www.reddit.com/r/AskUK/",
        "icon": "https://styles.redditmedia.com/t5_2t4s3/styles/communityIcon_93jegqjdwdr41.png?width=64&frame=1&auto=webp&s=d740be885a407dad641c4eacad43f9e072c46b07"
      }
    },
    "..."
  ],
  "pagination": {
    "next_page_token": "eyJjYW5kaWRhdGVzX3JldHVybmVkIjoie1wic2VjdGlvbl8xX3BpcGVsaW5lXzBfZ2xvYmFsX21vZGlmaWVyc1wiOlwiMlwiLFwic2VjdGlvbl8xX3BpcGVsaW5lXzFfbG9jYWxfbW9kaWZpZXJzXCI6XCIyXCIsXCJzZWN0aW9uXzJfcGlwZWxpbmVfMV9jb21tZW50X3NlYXJjaFwiOlwiMTdcIn0iLCJleHBlcmllbmNlX3NlbGVjdGlvbiI6ImNvbW1lbnQiLCJleHBlcmllbmNlX3ZlcnNpb24iOiJkZWZhdWx0Iiwic2VjdGlvbl8yX3BpcGVsaW5lXzFfY29tbWVudF9zZWFyY2giOiIyMCJ9"
  }
}