> ## Documentation Index
> Fetch the complete documentation index at: https://docs.socq.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Reddit Answers

> 向 Reddit Answers 提问，获取答案以及答案引用的评论和帖子。

# Reddit Answers

向 Reddit 的 AI 搜索 Reddit Answers 提一个问题，拿到它根据 Reddit 讨论整理出的答案。每个任务返回一条答案：一句话总结、完整的 Markdown 答案、答案引用的评论及链接、答案所依据的帖子（含标题、得分和评论数）、Reddit 为该话题推荐的版块，以及它建议的追问。可以用来了解 Reddit 用户推荐什么，看清哪些讨论串和社区在影响某个产品或品牌的答案，或者把有出处的 Reddit 观点接入调研和 AI 工作流。

```json theme={"dark"}
{
  "query": "what do people say about standing desks for back pain"
}
```

在 query 中写一个问题，写法与在 Reddit Answers 中提问一致。返回一条根据 Reddit 讨论总结的答案，附带引用的评论、所依据的帖子、推荐版块和追问建议。

## 标准结果字段

任务结果使用下方稳定的 SocQ 字段。系统会统一来源特有的字段名和格式，但不会推断或补充来源未提供的数据。如需缩小返回字段集合，MCP 查询使用 `fields`，Typed 工具使用 `_result_fields`，CLI 使用 `--result-fields`。声明字段的值为 `null` 时仍会保留。

| 字段 | 类型 | 可空 | 说明 |
| - | - | - | - |
| `id` | `string` | 是 | Reddit Answers 的对话 ID。 |
| `platform` | `string` | 否 | 结果所属的平台，例如 `instagram` 或 `linkedin`。 |
| `resource` | `string` | 否 | 该结果对应的 SocQ 资源，例如 `videos` 或 `comments`。 |
| `type` | `string` | 否 | 结果项的类别，例如 `video`、`post` 或 `comment`。 |
| `url` | `string` | 是 | 该答案在 Reddit Answers 上的链接。 |
| `published_at` | `string` | 是 | 答案生成的时间，使用 ISO 8601 格式。 |
| `collected_at` | `string` | 否 | SocQ 采集或处理该结果的时间，使用 ISO 8601 格式。 |
| `query` | `string` | 是 | 所提出的问题。 |
| `summary` | `string` | 是 | 答案开头的一句话总结。 |
| `answer` | `string` | 是 | 完整答案，Markdown 格式，包含小标题、要点以及链接到 Reddit 的引用评论。 |
| `citations` | `array<object>` | 是 | 答案中引用的评论和帖子。 |
| `citations.text` | `string` | 是 | 引用的原文。 |
| `citations.url` | `string` | 是 | 被引用评论或帖子的链接。 |
| `citations.subreddit` | `string` | 是 | 被引用内容所在的版块名，不带 r/。 |
| `citations.source_type` | `string` | 是 | 被引用来源的类型：`comment` 或 `post`。 |
| `source_posts` | `array<object>` | 是 | 答案所依据的 Reddit 帖子。 |
| `source_posts.id` | `string` | 是 | Reddit 帖子 ID。 |
| `source_posts.url` | `string` | 是 | 帖子链接。 |
| `source_posts.title` | `string` | 是 | 帖子标题。 |
| `source_posts.text` | `string` | 是 | 帖子正文。 |
| `source_posts.subreddit` | `string` | 是 | 帖子所在的版块名，不带 r/。 |
| `source_posts.author_username` | `string` | 是 | 帖子作者的用户名。 |
| `source_posts.score` | `integer` | 是 | 帖子得分（赞成票减反对票）。 |
| `source_posts.comments_count` | `integer` | 是 | 帖子的评论数。 |
| `source_posts.published_at` | `string` | 是 | 帖子的发布时间，使用 ISO 8601 格式。 |
| `recommended_subreddits` | `array<object>` | 是 | Reddit 针对该问题推荐的版块。 |
| `recommended_subreddits.name` | `string` | 是 | 版块名，不带 r/。 |
| `recommended_subreddits.url` | `string` | 是 | 版块链接。 |
| `recommended_subreddits.title` | `string` | 是 | 版块标题。 |
| `recommended_subreddits.description` | `string` | 是 | 版块的公开简介。 |
| `recommended_subreddits.members_count` | `integer` | 是 | 版块的成员数。 |
| `follow_up_queries` | `array<string>` | 是 | Reddit 在答案后建议的追问。 |

以下示例展示任务完成后的响应格式，具体数据以实际查询结果为准。

## 任务完成响应

```json theme={"dark"}
{
  "code": 200,
  "data": {
    "task_id": "example-reddit-answers",
    "status": "succeeded",
    "public_id": "reddit/answers",
    "result_count": 1,
    "credits_amount": 6,
    "results": {
      "limit": 50,
      "next_cursor": null,
      "has_more": false,
      "schema_id": "reddit-answer",
      "schema_version": "1.0",
      "items": [
        {
          "id": "6f3dc9a1-d47b-49b2-a063-28cc8a0f96ce",
          "platform": "reddit",
          "resource": "answers",
          "type": "answer",
          "url": "https://www.reddit.com/answers/6f3dc9a1-d47b-49b2-a063-28cc8a0f96ce/?q=what+do+people+say+about+standing+desks+for+back+pain",
          "published_at": "2026-11-20T08:10:24Z",
          "collected_at": "2026-11-20T08:10:39Z",
          "query": "what do people say about standing desks for back pain",
          "summary": "People on Reddit generally say changing positions helps more than standing alone, though some report real relief and others find prolonged standing uncomfortable.",
          "answer": "People on Reddit generally say **changing positions helps more than standing alone**, though some report real relief and others find prolonged standing uncomfortable.\n\n### What people say helps\n\n> One of the biggest thing that helped me was not doing either for too long.",
          "citations": [
            {
              "text": "Yes, just switch between sitting and standing every 45ish minutes or so. There is a big difference from being sedentary all day.",
              "url": "https://www.reddit.com/r/StandingDesk/comments/1vy645v/comment/p5udbyx/",
              "subreddit": "StandingDesk",
              "source_type": "comment"
            }
          ],
          "source_posts": [
            {
              "id": "12658mg",
              "url": "https://www.reddit.com/r/backpain/comments/12658mg/do_you_recommend_a_standing_desk/",
              "title": "Do you recommend a standing desk?",
              "text": "I got diagnosed with bulging disc at L4/5 and still recovering.",
              "subreddit": "backpain",
              "author_username": "shootingstars00987",
              "score": 18,
              "comments_count": 27,
              "published_at": "2023-03-30T00:00:10Z"
            }
          ],
          "recommended_subreddits": [
            {
              "name": "StandingDesk",
              "url": "https://www.reddit.com/r/StandingDesk/",
              "title": "Standing Desks",
              "description": "StandingDesk stands (heh) against Reddit corporate takeovers",
              "members_count": 68505
            }
          ],
          "follow_up_queries": [
            "standing desk vs walking pad back pain",
            "how often switch between sitting and standing"
          ]
        }
      ]
    }
  }
}
```


## OpenAPI

````yaml zh/api-manual/agent-api/agent-api.json POST /v1/reddit/answers
openapi: 3.1.0
info:
  title: SocQ Agent API 中文版
  version: v1-c5d5a0c07a78
  description: 根据 SocQ 能力目录生成的异步社交数据 API。
servers:
  - url: https://api.socq.ai
security: []
paths:
  /v1/reddit/answers:
    post:
      tags:
        - reddit
      summary: Reddit Answers
      description: 向 Reddit Answers 提问，获取答案以及答案引用的评论和帖子。
      operationId: socq_reddit_answers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              additionalProperties: false
              properties:
                callback_url:
                  type: string
                  format: uri
                  description: 可选的任务完成回调 URL。
                query:
                  type: string
                  minLength: 1
                  description: 向 Reddit Answers 提出的问题，可以使用任何语言。
                  maxLength: 500
              required:
                - query
              description: >-
                在 query 中写一个问题，写法与在 Reddit Answers 中提问一致。返回一条根据 Reddit
                讨论总结的答案，附带引用的评论、所依据的帖子、推荐版块和追问建议。
      responses:
        '200':
          description: 任务已受理
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentSubmitResponse'
        '422':
          description: Input validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentValidationErrorResponse'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    AgentSubmitResponse:
      type: object
      properties:
        code:
          type: integer
          const: 200
          description: HTTP 业务状态码。
        data:
          type: object
          properties:
            task_id:
              type: string
              description: 任务 ID，用于查询任务状态和结果。
            status:
              type: string
              description: 任务当前状态。
            created_time:
              type:
                - string
                - 'null'
              description: 任务创建时间。
          required:
            - task_id
            - status
    AgentValidationErrorResponse:
      type: object
      properties:
        code:
          type: integer
          const: 422
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
            details:
              type: object
          required:
            - message
            - type
      required:
        - code
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: '使用 `Authorization: Bearer <token>` 请求头进行身份验证。'
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: 也可以通过 `x-api-key` 请求头提供 API Key。

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.