GET /answers

Reddit Answers

Reddit's own AI answer to a question, with the posts it cites. Reddit Scraper API endpoint /answers: parameters, JSON response fields and code examples.

Ask Reddit Answers a question in plain language: Reddit’s summary of what redditors say, points grouped under headings with the posts and comments they quote, the cited posts, source communities, images and suggested follow_ups (send one as q with the conversation_id). An answer takes 5-10 seconds and is cached 30 minutes. Billed 1 request per call, +1 per cited post detailed with with_details=true, plus 1 AI unit per model answer (none on a stored answer).

HTTP Request

GET /answers

Cost (in requests): 1 + 1 AI units (new answer); +1 per cited post detailed. Every successful answer reports its cost in data.billed_requests. AI endpoints need a paid plan.

Parameters

ParameterTypeRequiredDefaultDescription
qstringYes-Question to ask Reddit, in plain language (e.g. best electric cars 2026).
conversation_idstringNo-Conversation id from a previous answer, to ask one of its follow_ups in context. Omit to start a new conversation.
with_detailsbooleanNofalseAdds these fields to the first 25 cited posts (left out without it): author, author_id, type, upvote_ratio, flair, body_text, body_media, media, poll, subreddit_type, author_flair, author_type, author_avatar_url, is_author_nsfw, is_brand_affiliate, distinguished, is_locked, is_archived, is_stickied, is_crosspost, crosspost_parent_id, crosspost_parent_subreddit, crossposts_count, shares_count, removed_by, removal_category, thumbnail_width, thumbnail_height, is_spoiler, is_subreddit_nsfw, is_subreddit_quarantined, subreddit_icon_url. Billed: +1 request per cited post detailed.
include_htmlbooleanNofalseAdds body_html (the rendered HTML body) to every post and comment. Default: left out; body_text carries the same text.

Response

Real response to GET /answers?q=best python web framework for beginners (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
{
  "status": true,
  "request_id": "16d85aa8-f00a-6aff-97db-e4340a14",
  "data": {
    "conversation_id": "9cbcffd5-70f1-4872-826c-147fd6f9a086",
    "summary": "The best Python web framework for beginners is Flask because of its minimalist structure and straightforward routing.",
    "follow_ups": [
      "Flask vs Django beginner projects 2026",
      "Is FastAPI good for Python beginners"
    ],
    "subreddits": [
      {
        "name": "Python",
        "subreddit_id": "t5_2qh0y",
        "icon_url": "https://styles.redditmedia.com/t5_2qh0y/styles/communityIcon_lctik80p96tg1.png"
      },
      {
        "name": "webdev",
        "subreddit_id": "t5_2qs0q",
        "icon_url": "https://styles.redditmedia.com/t5_2qs0q/styles/communityIcon_kxcmzy9bt1381.jpg"
      }
    ],
    "bullets": [],
    "sources": [
      {
        "post_id": "t3_1hwlsg6",
        "title": "Which full-stack framework is easiest to learn for web app development?",
        "permalink": "/r/webdev/comments/1hwlsg6/which_fullstack_framework_is_easiest_to_learn_for/",
        "post_url": "https://www.reddit.com/r/webdev/comments/1hwlsg6/which_fullstack_framework_is_easiest_to_learn_for/",
        "url": "https://www.reddit.com/r/webdev/comments/1hwlsg6/which_fullstack_framework_is_easiest_to_learn_for/",
        "domain": "self.webdev",
        "subreddit": "webdev",
        "subreddit_id": "t5_2qs0q",
        "is_author_deleted": false,
        "score": 14,
        "comments_count": 78,
        "is_nsfw": false,
        "thumbnail_url": null
      },
      {
        "post_id": "t3_1uv4xuj",
        "title": "What web framework would you recommend for a beginner like me?",
        "permalink": "/r/learnpython/comments/1uv4xuj/what_web_framework_would_you_recommend_for_a/",
        "post_url": "https://www.reddit.com/r/learnpython/comments/1uv4xuj/what_web_framework_would_you_recommend_for_a/",
        "url": "https://www.reddit.com/r/learnpython/comments/1uv4xuj/what_web_framework_would_you_recommend_for_a/",
        "domain": "self.learnpython",
        "subreddit": "learnpython",
        "subreddit_id": "t5_2r8ot",
        "is_author_deleted": false,
        "score": 6,
        "comments_count": 9,
        "is_nsfw": false,
        "thumbnail_url": null
      }
    ],
    "images": [],
    "answer_text": "The best Python web framework for beginners is Flask because of its minimalist structure and straightforward routing.\n<br> - **Simplified routing and concepts.** Flask provides a gentle learning curve without forcing complex architectural p…",
    "computed_at": "2026-11-24T20:56:07.781370+00:00",
    "fresh": true,
    "billed_requests": 1
  },
  "request_params": {
    "q": "best python web framework for beginners"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique request identifier
dataobjectReddit’s answer.
data.conversation_idstringConversation id; pass it back with a follow_ups question to continue.
data.summarystringThe opening summary sentence(s).
data.follow_upsarray of stringSuggested follow-up questions.
data.subredditsarray of objectsCommunities Reddit drew the answer from.
data.subreddits[].namestringSubreddit name without r/.
data.subreddits[].subreddit_idstringSubreddit id (t5_…).
data.subreddits[].icon_urlstringCommunity icon URL. Left out on /subreddit/rising (without with_details), /subreddit/posting-guide and /subreddit/rule-check.
data.bulletsarrayThe answer’s points with their citations, in order.
data.sourcesarray of objectsCited posts with title, score, comment count and link (full cards with with_details).
data.sources[].post_idstringPost fullname, e.g. t3_z1c9z.
data.sources[].titlestringPost title; null when Reddit shows only its removal placeholder ([ Removed by moderator ]…).
data.sources[].permalinkstringReddit path, e.g. /r/IAmA/comments/z1c9z/i_am_barack_obama/ (Reddit’s relative value; post_url is the same thread as a full link). Either form can be passed back as url.
data.sources[].post_urlstringAbsolute link of the post’s Reddit thread (https://www.reddit.com + permalink), ready to open.
data.sources[].urlstringWhere the post points (Reddit’s own url): the outside page for link posts, the image or video file for media posts (https://i.redd.it/…, https://v.redd.it/…), the original post for crossposts, the thread itself for text posts. The post’s own thread is post_url.
data.sources[].domainstringLink domain (arstechnica.com). For a text post Reddit fills the placeholder self.{subreddit}, which is not a link domain: /domain/posts refuses it; list text posts with /subreddit/posts?post_type=text.
data.sources[].subredditstringSubreddit name without r/.
data.sources[].subreddit_idstringSubreddit id (t5_…).
data.sources[].is_author_deletedbooleanThe author’s account is deleted (the post may remain).
data.sources[].scoreintegerNet upvotes at fetch time.
data.sources[].comments_countintegerComment count reported by Reddit.
data.sources[].is_nsfwbooleanMarked NSFW.
data.sources[].thumbnail_urlstring / nullThumbnail URL.
data.imagesarrayRelated images Reddit attached.
data.answer_textstringReddit’s whole answer as plain text (summary, sections and points).
data.computed_atstringWhen this answer was computed (RFC 3339, UTC). Older than the request when it was served from the cache.
data.freshbooleanTrue when answered for this request; false when served from the 30-minute store.
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
19
import requests

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

params = {
    "q": "best python web framework for beginners",
}

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"]

for item in data["subreddits"]:
    print(item["name"])
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/answers";

const params = new URLSearchParams({
  q: "best python web framework for beginners",
});

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();
data.subreddits.forEach((item) => console.log(item.name));
1
2
3
4
curl -G "https://reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com/answers" \
  --data-urlencode "q=best python web framework for beginners" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: reddit-scraper-api-extractor-ai-the-most-complete.p.rapidapi.com"
Start building today

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

Get Your API Key on RapidAPI