# 是否有最近编辑帖子的API端点

**URL:** https://meta.discourse.org/t/is-there-an-api-endpoint-for-recently-edited-posts/252114
**Category:** Development
**Tags:** rest-api
**Created:** [2023年一月18日 02:48 UTC](https://meta.discourse.org/t/is-there-an-api-endpoint-for-recently-edited-posts/252114 "2023-01-18T02:48:20Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2023年一月23日 02:55 UTC](https://meta.discourse.org/t/is-there-an-api-endpoint-for-recently-edited-posts/252114/2 "2023-01-23T02:55:06Z")

</div>

> [@not-ethan](#):
>
> 是否有办法使用 API 查看最近更新的帖子？

我认为没有。思考 API 最简单的方式是，用户界面中显示的每一个内容都有一个对应的端点。除非你能找到在用户界面中查看最近编辑的帖子的方法，否则不太可能有对应的 API 端点。

根据你的用例，你可以设置一个帖子事件 [Webhook](https://meta.discourse.org/t/configure-webhooks-that-trigger-on-discourse-events-to-integrate-with-external-services/49045) 指向一个外部服务。要查找编辑过的帖子，请检查 Webhook 的 `X-Discourse-Event` 标头。编辑过的帖子将设置该标头为 `post_edited`。

---

_[View the full topic](https://meta.discourse.org/t/is-there-an-api-endpoint-for-recently-edited-posts/252114)._
