# How to get a list topics with a given tag, by a given user?

**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:** [March 22, 2024, 6:08pm 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

## AI-generated summary

In the Development category regarding the REST API, [fbpbdmin](/t/-/300570/1) inquired about retrieving a list of topics tagged `blog` that were specifically created by `user1`. They noted that while the [Search endpoint](https://docs.discourse.org/#tag/Search) accepts both tags and usernames, it currently returns all posts by `user1` within those tagged topics, including topics created by other users. [Moin](/t/-/300570/2) responded by suggesting the addition of the `in:first` parameter to the query, which filters results to include only topics where `user1` is the original creator.

<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:** [March 22, 2024, 6:08pm 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>

I want to get a list of all topics tagged as `blog` by `user1`

with this search endpoint, ([Discourse API Docs](https://docs.discourse.org/#tag/Search))

- it could take tags and username.
- but it returns posts by user1 from all topics tagged with blog, some topics are created by other users.

seems this is not supported, could someone confirm, thanks…

---

<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:** [March 22, 2024, 6:15pm 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>

You can add `in:first` to get only topics created by 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:** [April 21, 2024, 6:16pm 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>

Closed on April 21, 2024, 6:16pm UTC

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