# Stack Exchange 接口参考：9 个接口

> Stack Exchange 全部 9 个长期维护接口的参考清单，以及各自返回什么。完整介绍、示例响应和常见问题在 Stack Exchange 数据源页面。

URL: https://anysite.io/zh/endpoints/stackexchange/
Canonical: https://anysite.io/zh/sources/stackexchange/
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.

---

// 接口 · Stack Exchange

# Stack Exchange 接口参考

9 个长期维护的接口，以及各自返回什么。想看 Stack Exchange 的完整介绍——示例响应、常见问题和使用场景——请去数据源页面。

[关于 Stack Exchange 这个数据源](https://anysite.io/zh/sources/stackexchange/)

/api/stackexchange/questions 按 ID 取问题详情：标题、正文、标签、得分、浏览量、回答数、采纳答案 ID、作者。

/api/stackexchange/questions/search 问题全文搜索：命中的问题带标题、ID、得分、标签、浏览量、作者。

/api/stackexchange/questions/answers 按 ID 取某个问题的回答：回答正文、得分、采纳状态、作者、创建日期。

/api/stackexchange/questions/comments 问题下的评论：评论正文、得分、作者、创建日期。

/api/stackexchange/answers 按 ID 取回答详情：正文、得分、采纳状态、问题 ID、作者。

/api/stackexchange/tags 某个站点的标签列表：标签名、使用次数、仅版主可用标记、同义词标记。

/api/stackexchange/users 按 ID 取用户资料：显示名、声望、徽章数量（金、银、铜）、所在地、个人网站。

/api/stackexchange/users/questions 某个用户提过的问题：标题、ID、得分、回答数、采纳状态、标签。

/api/stackexchange/users/answers 某个用户写过的回答：回答 ID、问题 ID、得分、采纳状态。