# 如何获取指定用户和指定标签的主题列表？

**URL:** https://meta.discourse.org/t/how-to-get-a-list-topics-with-a-given-tag-by-a-given-user/300570
**Category:** Development
**Tags:** rest-api
**Created:** [2024 年3 月 22 日 18:08 UTC](https://meta.discourse.org/t/how-to-get-a-list-topics-with-a-given-tag-by-a-given-user/300570 "2024-03-22T18:08:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fbpbdmin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fbpbdmin/32/300893_2.png) [@fbpbdmin](https://meta.discourse.org/u/fbpbdmin)
#### Post date: [2024 年3 月 22 日 18:08 UTC](https://meta.discourse.org/t/how-to-get-a-list-topics-with-a-given-tag-by-a-given-user/300570/1 "2024-03-22T18:08:45Z")

</div>

我想获取所有被标记为`blog`且由`user1`创建的主题列表。

使用此搜索端点 ([Discourse API Docs](https://docs.discourse.org/#tag/Search))

- 它可以接受标签和用户名。
- 但它会返回user1在所有标记为blog的主题中的帖子，其中一些主题是由其他用户创建的。

似乎不支持此功能，有人可以确认一下吗？谢谢…

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2024 年3 月 22 日 18:15 UTC](https://meta.discourse.org/t/how-to-get-a-list-topics-with-a-given-tag-by-a-given-user/300570/2 "2024-03-22T18:15:50Z")

</div>

您可以添加 `in:first` 来仅获取由 user1 创建的主题。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2024 年4 月 21 日 18:16 UTC](https://meta.discourse.org/t/how-to-get-a-list-topics-with-a-given-tag-by-a-given-user/300570/3 "2024-04-21T18:16:09Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
