Reddit Answers
curl --request POST \
--url https://api.socq.ai/v1/reddit/answers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"callback_url": "<string>"
}
'import requests
url = "https://api.socq.ai/v1/reddit/answers"
payload = {
"query": "<string>",
"callback_url": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', callback_url: '<string>'})
};
fetch('https://api.socq.ai/v1/reddit/answers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.socq.ai/v1/reddit/answers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => '<string>',
'callback_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.socq.ai/v1/reddit/answers"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"callback_url\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.socq.ai/v1/reddit/answers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"callback_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.socq.ai/v1/reddit/answers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"<string>\",\n \"callback_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "<string>",
"status": "<string>",
"created_time": "<string>"
}
}{
"code": 422,
"error": {
"message": "<string>",
"type": "<string>",
"details": {}
}
}Reddit
Reddit Answers
向 Reddit Answers 提问,获取答案以及答案引用的评论和帖子。
POST
/
v1
/
reddit
/
answers
Reddit Answers
curl --request POST \
--url https://api.socq.ai/v1/reddit/answers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"callback_url": "<string>"
}
'import requests
url = "https://api.socq.ai/v1/reddit/answers"
payload = {
"query": "<string>",
"callback_url": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', callback_url: '<string>'})
};
fetch('https://api.socq.ai/v1/reddit/answers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.socq.ai/v1/reddit/answers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => '<string>',
'callback_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.socq.ai/v1/reddit/answers"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"callback_url\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.socq.ai/v1/reddit/answers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"callback_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.socq.ai/v1/reddit/answers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"<string>\",\n \"callback_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "<string>",
"status": "<string>",
"created_time": "<string>"
}
}{
"code": 422,
"error": {
"message": "<string>",
"type": "<string>",
"details": {}
}
}Reddit Answers
向 Reddit 的 AI 搜索 Reddit Answers 提一个问题,拿到它根据 Reddit 讨论整理出的答案。每个任务返回一条答案:一句话总结、完整的 Markdown 答案、答案引用的评论及链接、答案所依据的帖子(含标题、得分和评论数)、Reddit 为该话题推荐的版块,以及它建议的追问。可以用来了解 Reddit 用户推荐什么,看清哪些讨论串和社区在影响某个产品或品牌的答案,或者把有出处的 Reddit 观点接入调研和 AI 工作流。{
"query": "what do people say about standing desks for back pain"
}
标准结果字段
任务结果使用下方稳定的 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 在答案后建议的追问。 |
任务完成响应
{
"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"
]
}
]
}
}
}
请求体
application/json

