{
"success": true,
"meta": {
"request_id": "req_7b21c84a901e",
"plugin": "reddit",
"endpoint": "search",
"tier": "ULTRA",
"cached": false,
"latency_ms": 722.4,
"timestamp": "2026-10-27T06:40:00.000000+00:00"
},
"data": {
"query": "openai",
"tab": "posts",
"subreddit": null,
"sort": "relevance",
"timeFilter": "all",
"pageSize": 1,
"nextCursor": "t3_1b8k9x2",
"hasMore": true,
"items": [
{
"id": "t3_1b8k9x2",
"postId": "1b8k9x2",
"title": "Next-generation AI agents and real-time community intelligence benchmarks in 2026",
"subreddit": "technology",
"author": "user_a8f2",
"url": "https://www.reddit.com/r/technology/comments/1b8k9x2/nextgeneration_ai_agents_and_realtime/",
"permalink": "https://www.reddit.com/r/technology/comments/1b8k9x2/nextgeneration_ai_agents_and_realtime/",
"score": 2840,
"upvoteRatio": 0.94,
"numComments": 342,
"createdAt": "2026-03-15T13:50:00+00:00",
"selftext": "We evaluated real-time community discussion pipelines for LLM grounding, brand sentiment tracking, and developer trend discovery.",
"postType": "text",
"flair": "Artificial Intelligence",
"isOver18": false,
"isPinned": false,
"mediaUrls": [],
"commentsCount": 0,
"comments": [],
"searchQuery": "openai",
"scrapedAt": "2026-10-27T06:40:00.000000+00:00"
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/14533/reddit+comment+tree+and+sentiment+api/37122/search+reddit+posts?query=python&sort=relevance&time_range=all&limit=10&include_nsfw=false&no_cache=false' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"meta": {
"request_id": "req_8c32d95b012f",
"plugin": "reddit",
"endpoint": "subreddit",
"tier": "ULTRA",
"cached": false,
"latency_ms": 941.2,
"timestamp": "2026-10-27T06:40:00.000000+00:00"
},
"data": {
"subreddit": "technology",
"url": "https://www.reddit.com/r/technology/",
"sort": "hot",
"timeFilter": "all",
"pageSize": 1,
"nextCursor": "t3_1b8k9x2",
"hasMore": true,
"items": [
{
"id": "t3_1b8k9x2",
"postId": "1b8k9x2",
"title": "Next-generation AI agents and real-time community intelligence benchmarks in 2026",
"subreddit": "technology",
"author": "user_a8f2",
"url": "https://www.reddit.com/r/technology/comments/1b8k9x2/nextgeneration_ai_agents_and_realtime/",
"permalink": "https://www.reddit.com/r/technology/comments/1b8k9x2/nextgeneration_ai_agents_and_realtime/",
"score": 2840,
"upvoteRatio": 0.94,
"numComments": 342,
"createdAt": "2026-03-15T13:50:00+00:00",
"selftext": "We evaluated real-time community discussion pipelines for LLM grounding, brand sentiment tracking, and developer trend discovery.",
"postType": "text",
"flair": "Artificial Intelligence",
"isOver18": false,
"isPinned": false,
"mediaUrls": [],
"commentsCount": 0,
"comments": [],
"searchQuery": null,
"scrapedAt": "2026-10-27T06:40:00.000000+00:00"
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/14533/reddit+comment+tree+and+sentiment+api/37123/get+subreddit+feed+posts?subreddit=python&sort=hot&time_range=all&limit=10&include_nsfw=false&no_cache=false' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"meta": {
"request_id": "req_9d43ea6c1230",
"plugin": "reddit",
"endpoint": "post",
"tier": "ULTRA",
"cached": false,
"latency_ms": 1180.5,
"timestamp": "2026-10-27T06:40:00.000000+00:00"
},
"data": {
"id": "t3_1b8k9x2",
"postId": "1b8k9x2",
"title": "Next-generation AI agents and real-time community intelligence benchmarks in 2026",
"subreddit": "technology",
"author": "user_a8f2",
"url": "https://www.reddit.com/r/technology/comments/1b8k9x2/nextgeneration_ai_agents_and_realtime/",
"permalink": "https://www.reddit.com/r/technology/comments/1b8k9x2/nextgeneration_ai_agents_and_realtime/",
"score": 2840,
"upvoteRatio": 0.94,
"numComments": 342,
"createdAt": "2026-03-15T13:50:00+00:00",
"selftext": "We evaluated real-time community discussion pipelines for LLM grounding, brand sentiment tracking, and developer trend discovery.",
"postType": "text",
"flair": "Artificial Intelligence",
"isOver18": false,
"isPinned": false,
"mediaUrls": [],
"commentsCount": 2,
"comments": [
{
"id": "kty8m1a",
"postId": "t3_1b8k9x2",
"parentId": "t3_1b8k9x2",
"subreddit": "technology",
"author": "user_4c9b",
"body": "The real latency win comes from edge caching and avoiding cold-start browser overhead on every API call.",
"score": 412,
"createdAt": "2026-03-15T14:22:10+00:00",
"depth": 0,
"isSubmitter": false,
"permalink": "https://www.reddit.com/r/technology/comments/1b8k9x2/sample_thread/kty8m1a/",
"scrapedAt": "2026-10-27T06:40:00.000000+00:00"
},
{
"id": "kty9b4c",
"postId": "t3_1b8k9x2",
"parentId": "t1_kty8m1a",
"subreddit": "technology",
"author": "user_7d1e",
"body": "Agreed. For RAG pipelines and AI agents, sub-second JSON responses make a huge difference compared to headless browsers.",
"score": 189,
"createdAt": "2026-03-15T14:35:42+00:00",
"depth": 1,
"isSubmitter": false,
"permalink": "https://www.reddit.com/r/technology/comments/1b8k9x2/sample_thread/kty9b4c/",
"scrapedAt": "2026-10-27T06:40:00.000000+00:00"
}
],
"searchQuery": null,
"scrapedAt": "2026-10-27T06:40:00.000000+00:00"
}
}
curl --location --request GET 'https://zylalabs.com/api/14533/reddit+comment+tree+and+sentiment+api/37124/get+post+detail+and+top+comments?post_id=1j9x2a4&include_comments=true&comment_limit=15&no_cache=false' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"meta": {
"request_id": "req_ae54fb7d2341",
"plugin": "reddit",
"endpoint": "comments",
"tier": "ULTRA",
"cached": false,
"latency_ms": 985.1,
"timestamp": "2026-10-27T06:40:00.000000+00:00"
},
"data": {
"postId": "1b8k9x2",
"fullnameId": "t3_1b8k9x2",
"subreddit": "technology",
"postTitle": "Next-generation AI agents and real-time community intelligence benchmarks in 2026",
"permalink": "https://www.reddit.com/r/technology/comments/1b8k9x2/nextgeneration_ai_agents_and_realtime/",
"returnedCount": 2,
"maxCommentsRequested": 20,
"comments": [
{
"id": "kty8m1a",
"postId": "t3_1b8k9x2",
"parentId": "t3_1b8k9x2",
"subreddit": "technology",
"author": "user_4c9b",
"body": "The real latency win comes from edge caching and avoiding cold-start browser overhead on every API call.",
"score": 412,
"createdAt": "2026-03-15T14:22:10+00:00",
"depth": 0,
"isSubmitter": false,
"permalink": "https://www.reddit.com/r/technology/comments/1b8k9x2/sample_thread/kty8m1a/",
"scrapedAt": "2026-10-27T06:40:00.000000+00:00"
},
{
"id": "kty9b4c",
"postId": "t3_1b8k9x2",
"parentId": "t1_kty8m1a",
"subreddit": "technology",
"author": "user_7d1e",
"body": "Agreed. For RAG pipelines and AI agents, sub-second JSON responses make a huge difference compared to headless browsers.",
"score": 189,
"createdAt": "2026-03-15T14:35:42+00:00",
"depth": 1,
"isSubmitter": false,
"permalink": "https://www.reddit.com/r/technology/comments/1b8k9x2/sample_thread/kty9b4c/",
"scrapedAt": "2026-10-27T06:40:00.000000+00:00"
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/14533/reddit+comment+tree+and+sentiment+api/37125/get+post+comment+thread?post_id=1j9x2a4&sort=confidence&limit=25&no_cache=false' --header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"meta": {
"request_id": "req_bf650c8e3452",
"plugin": "reddit",
"endpoint": "user",
"tier": "ULTRA",
"cached": false,
"latency_ms": 1120.8,
"timestamp": "2026-10-27T06:40:00.000000+00:00"
},
"data": {
"username": "user_a8f2",
"profileUrl": "https://www.reddit.com/user/user_a8f2/",
"pageSize": 1,
"nextCursor": "t3_1b8k9x2",
"hasMore": false,
"items": [
{
"id": "t3_1b8k9x2",
"postId": "1b8k9x2",
"title": "Next-generation AI agents and real-time community intelligence benchmarks in 2026",
"subreddit": "technology",
"author": "user_a8f2",
"url": "https://www.reddit.com/r/technology/comments/1b8k9x2/nextgeneration_ai_agents_and_realtime/",
"permalink": "https://www.reddit.com/r/technology/comments/1b8k9x2/nextgeneration_ai_agents_and_realtime/",
"score": 2840,
"upvoteRatio": 0.94,
"numComments": 342,
"createdAt": "2026-03-15T13:50:00+00:00",
"selftext": "We evaluated real-time community discussion pipelines for LLM grounding, brand sentiment tracking, and developer trend discovery.",
"postType": "text",
"flair": "Artificial Intelligence",
"isOver18": false,
"isPinned": false,
"mediaUrls": [],
"commentsCount": 0,
"comments": [],
"searchQuery": null,
"scrapedAt": "2026-10-27T06:40:00.000000+00:00"
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/14533/reddit+comment+tree+and+sentiment+api/37126/get+user+submitted+posts+and+activity?username=user_a8f2&tab=posts&sort=new&limit=10&include_nsfw=false&no_cache=false' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 Reddit评论树和情感 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
检索嵌套的Reddit评论线程,包括父子ID、回复深度、作者ID和评论得分,按照最佳可信度、最热、新发布或争议排序
每个端点从公共Reddit社区返回结构化的JSON数据 搜索Reddit帖子和获取子版块帖子返回带有分数和分页游标的帖子集合 获取帖子详情返回完整的线程元数据以及顶级评论 获取帖子评论线程返回嵌套的评论树 获取用户提交的帖子返回公共用户提交
关键帖子字段包括 `id`、`title`、`subreddit`、`author`、`score`、`upvoteRatio`、`commentCount`、`createdAt`、`permalink`、`bodyText` 和 `mediaUrls` 评论项还包括 `parentId` 和 `depth` 以重建多层次对话树
参数因端点而异,包括 `query`、`subreddit`、`sort`、`time_range`、`limit`、`cursor`、`include_nsfw`、`post_id`、`include_comments`、`comment_limit`、`username`、`tab` 和 `no_cache`
当有额外项目可用时,响应包含一个`nextCursor`字符串和`hasNextPage`布尔值。在下一个请求中将`nextCursor`值传入`cursor`参数以获取下一页
是的。在获取帖子详情的端点上,将`include_comments`设置为`true`并调整`comment_limit`以在一次请求中接收完整的`post`对象和顶层线程的`comments`
每个响应使用一个包含 `success` 布尔值、一个包含 `request_id`、`latency_ms` 和 `cached` 状态的 `meta` 对象,以及一个包含请求的 `items`、`post` 或 `comments` 的 `data` 对象的统一 JSON 信封
常见用例包括AI代理基础和检索增强生成社交聆听品牌情感分析社区趋势跟踪市场调研和开发者生态系统监测
响应默认缓存60秒以最大化速度并保护速率限制 在任何端点上传递`no_cache`设置为`true`以强制进行新的实时上游提取