five

Reddit Data

收藏
RapidAPI2026-04-05 更新2026-04-06 收录
下载链接:
https://rapidapi.com/sandeepvvn/api/reddit-data
下载链接
链接失效反馈
官方服务:
资源简介:
Real-time Reddit data without OAuth or approval. Get posts, comments, search results, and user history from any public subreddit as clean JSON. Built for developers locked out by Reddit's 2025 API restrictions.
创建时间:
2026-04-05
原始信息汇总

Reddit Data API 数据集概述

数据集基本信息

  • 数据集名称:Reddit Data
  • 提供平台:RapidAPI
  • 类别:Social
  • API版本:v1 (current)
  • 流行度评分:8.7
  • 服务等级:100%
  • 平均延迟:1140ms
  • 测试通过率:100%

订阅计划与定价

  • BASIC:$0.00 / 月
  • PRO:$9.00 / 月
  • ULTRA:$49.00 / 月
  • MEGA:$149.00 / 月

API 概述

提供实时 Reddit 数据,无需 OAuth 或审批。可获取任何公共子版块的帖子、评论、搜索结果和用户历史记录,并以简洁的 JSON 格式返回。专为受 Reddit 2025 年 API 限制影响而无法访问的开发者构建。

可用端点

  1. 健康检查

    • 方法:GET
    • 端点/v1/health
    • 描述:返回 API 和缓存状态,用于验证连通性。
  2. 获取用户评论历史

    • 方法:GET
    • 端点/v1/u/{username}/comments
  3. 获取用户发帖历史

    • 方法:GET
    • 端点/v1/u/{username}
    • 参数
      • username (必需):Reddit 用户名(不带 u/)。
      • sort:排序方式,可选 hot | new | top (默认:new)。
      • limit:数量限制,1 到 100 (默认:25)。
      • after:用于分页的游标。
  4. 搜索 Reddit

    • 方法:GET
    • 端点/v1/search
    • 参数
      • q (必需):搜索查询词。
      • subreddit:将结果限制在特定子版块(可选)。
      • sort:排序方式,可选 relevance | hot | top | new (默认:relevance)。
      • t:时间范围,可选 hour | day | week | month | year | all
      • limit:数量限制,1 到 100 (默认:25)。
      • after:用于分页的游标。
  5. 获取帖子及评论

    • 方法:GET
    • 端点/v1/r/{subreddit}/comments/{post_id}
    • 参数
      • post_id (必需):Reddit 帖子 ID,例如 1abc2d
      • sort:评论排序方式,可选 best | top | new | controversial (默认:best)。
      • limit:评论数量限制,1 到 500 (默认:100)。
  6. 获取子版块元数据

    • 方法:GET
    • 端点/v1/r/{subreddit}/about
  7. 获取子版块动态

    • 方法:GET
    • 端点/v1/r/{subreddit}
    • 参数
      • subreddit (必需):子版块名称,例如 python, MachineLearning, startups
      • sort:排序方式,可选 hot | new | top | rising (默认:hot)。
      • limit:数量限制,1 到 100 (默认:25)。
      • after:用于分页的游标。
      • t:时间范围,可选 hour | day | week | month | year | all (仅在 sort=top 时使用)。

响应格式

所有响应均为 JSON 格式。

动态 / 搜索 / 用户响应格式

json { "subreddit": "python", "sort": "hot", "after": "t3_abc123", "cached": true, "posts": [ { "id": "1abc2d", "title": "Post title here", "author": "username", "subreddit": "python", "score": 1842, "upvote_ratio": 0.97, "num_comments": 143, "url": "https://example.com", "permalink": "/r/python/comments/1abc2d/", "selftext": "Post body text if self post", "flair": "Discussion", "is_self": true, "nsfw": false, "thumbnail": "https://...", "created_utc": 1712345678.0 } ] }

帖子及评论响应格式

json { "post": { ... }, "comments": [ { "id": "abc123", "author": "username", "body": "Comment text here", "score": 412, "created_utc": 1712345700.0, "depth": 0, "replies": [ { "id": "def456", "author": "username2", "body": "Reply text here", "score": 87, "created_utc": 1712345900.0, "depth": 1, "replies": [] } ] } ] }

错误响应

所有错误均返回 JSON 格式。 json { "error": "Not found", "detail": "Subreddit r/xyz does not exist or is private" }

状态码

  • 401:API 密钥缺失或无效。
  • 404:未找到子版块、帖子或用户。
  • 429:超出速率限制(检查 Retry-After 响应头)。

提供方信息

  • API 创建者:Your Friend
  • 订阅者数量:1
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作