{
"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/14534/reddit+ai+grounding+and+rag+data+api/37127/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/14534/reddit+ai+grounding+and+rag+data+api/37128/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/14534/reddit+ai+grounding+and+rag+data+api/37129/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/14534/reddit+ai+grounding+and+rag+data+api/37130/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/14534/reddit+ai+grounding+and+rag+data+api/37131/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 AI基础和RAG数据 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
为LLM代理和RAG管道提供干净、结构化的Reddit社区讨论、排名答案和实时用户洞察,无需浏览器负担
每个端点从公共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`
每个响应使用一个一致的 JSON 信封,包含一个 `success` 布尔值,一个 `meta` 对象,其中包含 `request_id`、`latency_ms` 和 `cached` 状态,以及一个 `data` 对象,持有请求的 `items`、`post` 或 `comments`
常见的用例包括人工智能代理的基础知识和检索增强生成社交聆听品牌情感分析社区趋势跟踪市场研究和开发者生态系统监测
默认情况下,响应会缓存60秒,以最大化速度和保护速率限制。任何端点上传递`no_cache`设置为`true`以强制进行实时的上游提取