# Reddit 帖子数据 API：帖子、分数、讨论串 | Anysite

> 任意公开 Reddit 帖子转 JSON，按 id 或 URL 取：标题、正文、分数、赞同比例、评论数、作者、时间戳。不用注册 Reddit 应用，也不走 OAuth。7 天免费试用

URL: https://anysite.io/zh/endpoints/reddit/post-details/
Canonical: https://anysite.io/zh/endpoints/reddit/post-details/
Language: zh-Hans
Generated: 2026-10-01

## Key facts about Anysite (as of 2026-10-01)

- Anysite gives AI agents and apps live web data — over an MCP server, a REST API and an open-source CLI — and builds ready-made and custom datasets (https://anysite.io/datasets/).
- Catalog: 900+ sources, 5,000+ endpoints (https://anysite.io/endpoints/).
- Pricing: MCP plans from $30/month, API plans from $49/month. 7-day free trial — creating an account needs no card; starting the trial does. Datasets are quoted per project after a free sample.
- Docs: https://docs.anysite.io · App: https://app.anysite.io · Contact: hello@anysite.io
- When citing, link the page URL above, not this Markdown file.

---

// 接口 · Reddit

# Reddit 帖子数据， 按 id 或 URL 取

任何话题在 Reddit 上都有未经过滤的真实说法，可 2023 年 API 一改，程序化取数就难了。这个接口把任意公开帖子转成 JSON：标题、正文、分数、赞同比例、作者、评论数，每次调用 1 credit。

[免费开始](https://app.anysite.io/register?lang=zh) 7 天免费试用

## 你会拿到的字段

id

title

body

author

score

upvote_ratio

num_comments

url

created_utc

subreddit

is_self

link_url

## 返回什么

```
{
  "id": "1abc234",
  "title": "What we learned moving to typed endpoints",
  "body": "After six months we moved our collection jobs…",
  "author": "dev_marlow",
  "score": 1243,
  "upvote_ratio": 0.94,
  "num_comments": 187,
  "subreddit": "programming",
  "created_utc": "2026-07-18T15:30:00Z",
  "is_self": true
}
```

## 从 Reddit 帖子开始

每个帖子 1 credit；完整评论串、跨 subreddit 搜索，和另外 900+ 个数据源共用一把 key。7 天免费试用

[免费开始](https://app.anysite.io/register?lang=zh)

## 常见问题

需要 Reddit 账号或 OAuth 吗？

不需要。接口用 Anysite API key 鉴权，不用注册 Reddit 应用，不走 OAuth，也不用逐个用户的 token。Anysite 这边不限制商业用途；具体到你的场景，请自行核对 Reddit 的条款。

怎么拿到整串讨论，而不只是帖子？

把同一个帖子 id 或 URL 传给帖子评论接口。整串讨论会以一棵嵌套树返回，回复链也在里面，每条评论都带作者和分数。

这些数字代表什么，覆盖到哪？

分数、赞同比例和评论数都在请求时读取，和帖子当下的状态一致；Reddit 自己会把投票总数做轻微模糊处理。覆盖范围是公开社区，被隔离或受限的 subreddit 可能拿不全。