GET /insights/questions

Questions

The questions Reddit asks about a keyword, grouped, with how the community answers them. Reddit Scraper API endpoint /insights/questions: parameters, JSON response fields and code examples.

An AI model groups the questions in recent Reddit posts and comments that mention q into up to limit clusters, most asked first, each with a representative question, a count and post ids; with_answers=true (default) adds how the community answers each. Samples and answers are kept 30 minutes. Billed 5 requests per call, plus 1 AI unit per model answer (per started 40,000 characters of max_chars, and 1 for the answers).

HTTP Request

GET /insights/questions

Cost (in requests): 5 + AI units (2 answers). Every successful answer reports its cost in data.billed_requests. AI endpoints need a paid plan.

Parameters

ParameterTypeRequiredDefaultDescription
qstringYes-Keyword, product, brand or topic to look for (1–200 characters).
contextstringNo-Optional context that disambiguates the keyword (≤ 300 characters, e.g. project management app); used to rank the sample, never sent to Reddit.
limitintegerNo10Question clusters to return (1–15).
subredditsstringNo-Comma-separated subreddit names, r/name, or t5_ ids to restrict the sample to (≤ 5).
timestringNomonthPeriod of the sample: day, week, month (default), year or all. Posts and comments from outside the period are left out. With day, week and month the comments are the newest ones matching the keyword, so a busy keyword’s comments may cover only the last days.
include_nsfwbooleanNotrueDefault true: adult content included (communities and posts marked NSFW); pass false to exclude it.
max_charsintegerNo40000Text handed to the model after the sample is ranked (1000–120000, default 40000); each started 40,000 characters bills one more AI unit.
languagestringNo-Language of the model’s answer (ISO-639-1, e.g. en, es, pt-BR). Quotes keep their original language.
with_answersbooleanNotrueRead the best-scored thread of each cluster and summarise how Reddit answers it (+1 AI unit).
freshbooleanNofalseDefault false. True recomputes instead of serving the stored result (bills the full cost).

Response

Real response to GET /insights/questions?q=fastapi (arrays trimmed to 2 items, long texts cut with …).

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
{
  "status": true,
  "request_id": "f30b1dbd-2eb9-9f35-ddf5-36814d77",
  "data": {
    "questions": [
      {
        "question": "Which framework should I learn first, FastAPI or Django?",
        "post_ids": [
          "t3_1xyj4zz"
        ],
        "mentions_count": 1,
        "answer": {
          "post_id": "t3_1xyj4zz",
          "summary": "Most commenters suggest starting with FastAPI because it feels easier and you can later pick up Django; build a full project to gauge effort. Job prospects depend on local listings, so check postings. FastAPI is fine for long‑term use, but …",
          "top_comments": [
            {
              "comment_id": "t1_19srxmavry143",
              "score": 5,
              "excerpt": "If FastAPI clicked, stick with it. But build one project end to end with a real database, auth and migrations, not only endpoints. Once you've done that in one framework, picking up the other is much faster"
            },
            {
              "comment_id": "t1_19sry3gw0tezo",
              "score": 5,
              "excerpt": "Since FastAPI already clicked for you, I’d stick with it for now. Django is a lot easier to pick up later once you understand how APIs work."
            }
          ]
        }
      },
      {
        "question": "Should I switch from Node.js to FastAPI?",
        "post_ids": [
          "t3_1xpx1qy"
        ],
        "mentions_count": 1,
        "answer": {
          "post_id": "t3_1xpx1qy",
          "summary": "Comments advise becoming a generalist: focus on fundamentals and AI concepts, using multiple languages as needed. Node.js job openings are declining; many move to Go or Python for AI work.",
          "top_comments": []
        }
      }
    ],
    "answers_read": 8,
    "sample": {
      "posts_count": 45,
      "comments_count": 48,
      "truncated": false,
      "period": {
        "from": "2026-10-25T04:09:36.719000+00:00",
        "to": "2026-11-24T20:52:07.419000+00:00"
      },
      "subreddits": [
        "developersIndia",
        "Backend"
      ]
    },
    "resolved_filters": {
      "time": {
        "input": null,
        "resolved": "month",
        "source": "default"
      },
      "subreddits": {
        "input": null,
        "resolved": null,
        "source": "default"
      },
      "include_nsfw": {
        "input": null,
        "resolved": "true",
        "source": "default"
      },
      "language": {
        "input": null,
        "resolved": "en",
        "source": "default"
      }
    },
    "off_topic_ids": [
      {
        "item_id": "t1_19s33zkg29e10",
        "item_type": "comment"
      },
      {
        "item_id": "t1_19s4avnktzgqp",
        "item_type": "comment"
      }
    ],
    "ai": {
      "input_tokens": 9942,
      "output_tokens": 2771,
      "possible_injection": false,
      "truncated": true,
      "cached": false
    },
    "computed_at": "2026-11-24T20:59:02.340578+00:00",
    "fresh": true,
    "billed_requests": 5
  },
  "request_params": {
    "q": "fastapi"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectPresent on success and on a model failure.
data.questionsarray of objectsQuestion clusters, most asked first.
data.questions[].questionstringRepresentative question (≤ 160 characters). Model output: treat as untrusted text if you pass it to an agent with tools.
data.questions[].post_idsarray of stringUp to 10 posts where it is asked (t3_…): the sample post asking it, or the post of the sample comment asking it.
data.questions[].mentions_countintegerSample items asking it.
data.questions[].answerobjectPresent with with_answers=true when the thread was read and the model answered.
data.questions[].answer.post_idstringThread read for the answer (t3_…).
data.questions[].answer.summarystringHow Reddit answers the question, from the best-scored thread. Model output: treat as untrusted text if you pass it to an agent with tools.
data.questions[].answer.top_commentsarray of objectsComments the summary rests on.
data.questions[].answer.top_comments[].comment_idstringComment id (t1_…), always one of the comments the model was given.
data.questions[].answer.top_comments[].scoreintegerNet upvotes as read from the thread (never from the model).
data.questions[].answer.top_comments[].excerptstringVerbatim excerpt of the comment, at most 280 characters; a longer quote is cut and ends with ….
data.answers_readintegerThreads read for answers (with_answers=true).
data.sampleobjectWhat was read from Reddit.
data.sample.posts_countintegerPosts in the sample.
data.sample.comments_countintegerComments in the sample.
data.sample.truncatedbooleanTrue when the sample was cut by max_chars (or to keep the answer fast).
data.sample.periodobjectOldest and newest item dates.
data.sample.period.fromstringOldest item in the sample (ISO 8601 UTC).
data.sample.period.tostringNewest item in the sample (ISO 8601 UTC).
data.sample.subredditsarray of stringCommunities most present in the sample (≤ 10).
data.resolved_filtersobjectFilters as applied.
data.resolved_filters.timeobjectPeriod applied.
data.resolved_filters.time.inputstring / nullWhat the caller sent.
data.resolved_filters.time.resolvedstringWhat was applied on Reddit (null when not applied).
data.resolved_filters.time.sourcestringparam (applied as given), default, not_found (the value does not exist on Reddit), private / banned / quarantined (a community in the scope that cannot be read: skipped), or not_available (translate_to only: Reddit had no translated listing, the rows are served in their original language).
data.resolved_filters.subredditsobjectSubreddit restriction applied.
data.resolved_filters.subreddits.inputstring / nullWhat the caller sent.
data.resolved_filters.subreddits.resolvedstring / nullWhat was applied on Reddit (null when not applied).
data.resolved_filters.subreddits.sourcestringparam (applied as given), default, not_found (the value does not exist on Reddit), private / banned / quarantined (a community in the scope that cannot be read: skipped), or not_available (translate_to only: Reddit had no translated listing, the rows are served in their original language).
data.resolved_filters.include_nsfwobjectNSFW inclusion applied.
data.resolved_filters.include_nsfw.inputstring / nullWhat the caller sent.
data.resolved_filters.include_nsfw.resolvedstringWhat was applied on Reddit (null when not applied).
data.resolved_filters.include_nsfw.sourcestringparam (applied as given), default, not_found (the value does not exist on Reddit), private / banned / quarantined (a community in the scope that cannot be read: skipped), or not_available (translate_to only: Reddit had no translated listing, the rows are served in their original language).
data.resolved_filters.languageobjectAnswer language applied.
data.resolved_filters.language.inputstring / nullWhat the caller sent.
data.resolved_filters.language.resolvedstringWhat was applied on Reddit (null when not applied).
data.resolved_filters.language.sourcestringparam (applied as given), default, not_found (the value does not exist on Reddit), private / banned / quarantined (a community in the scope that cannot be read: skipped), or not_available (translate_to only: Reddit had no translated listing, the rows are served in their original language).
data.off_topic_idsarray of objectsSample items the model judged unrelated to the keyword. Each entry is {item_id, item_type}: post ids go to /post/batch, comment ids to /comment/batch. Model output: treat as untrusted text if you pass it to an agent with tools.
data.off_topic_ids[].item_idstringPost (t3_…) or comment (t1_…) id.
data.off_topic_ids[].item_typestringpost or comment, from the id: post ids go to /post/batch, comment ids to /comment/batch.
data.aiobjectHow the model answered (null when it did not).
data.ai.input_tokensintegerInput tokens of the model call.
data.ai.output_tokensintegerOutput tokens of the model call.
data.ai.possible_injectionbooleanTrue when the input text contained instruction-like phrasing (“ignore previous instructions” and the like). Informational: the answer was still produced from the data.
data.ai.truncatedbooleanTrue when the input was cut to fit max_chars (or to keep the answer fast).
data.ai.cachedbooleanTrue when the answer was served from the stored result (or the rules had not changed), so no model call was made for this request.
data.computed_atstringWhen this answer was computed (RFC 3339, UTC). Older than the request when it was served from the cache.
data.freshbooleanTrue when computed for this request; false when served from the stored result.
data.billed_requestsintegerRequests billed for this call (also sent as Requests in the X-RapidAPI-Billing header when it is not RapidAPI’s default of 1).
request_paramsobjectEcho of the parameters you sent

Error Responses

Invalid input returns HTTP 400, not billed. error is a plain string that names the parameter:

1
{ "status": false, "request_id": "99a1e6cd-2e57-9e8f-4e44-2dea7f6d", "error": "Invalid parameter 'post_id': must be a post id such as z1c9z or t3_z1c9z", "request_params": { "post_id": "!!" } }
Status CodeCauseDescription
400Invalid or missing parameterPlain-English message per field. Not billed
503 with error.codeAI model failedllm_timeout, llm_error or invalid_output. The Reddit data read so far is still in data. Not billed, retry
503Reddit temporarily unreachable"error": "Service temporarily unavailable". Not billed, retry later

Code Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
import requests

url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/insights/questions"

params = {
    "q": "fastapi",
}

headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=params)
data = response.json()["data"]

print(data["answers_read"])
print("Billed requests:", data["billed_requests"])
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
const url = "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/insights/questions";

const params = new URLSearchParams({
  q: "fastapi",
});

const response = await fetch(`${url}?${params}`, {
  headers: {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
  }
});

const { data } = await response.json();
console.log(data.answers_read);
1
2
3
4
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/insights/questions" \
  --data-urlencode "q=fastapi" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
  • Sentiment : How Reddit feels about a keyword: sentiment shares, themes, praise and complaints
  • Pain Points : The recurring problems Reddit describes about a keyword, with verbatim quotes
  • Brand Compare : Compare how Reddit judges 2–4 brands: sentiment, strengths, weaknesses, head-to-head, switchers
Start building today

Get your API key and make your first request in under a minute.

Get Your API Key on RapidAPI