# Get Posts created by User in a particular category and tags

**URL:** <https://meta.discourse.org/t/get-posts-created-by-user-in-a-particular-category-and-tags/262349>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [April 20, 2023, 4:15am UTC](https://meta.discourse.org/t/get-posts-created-by-user-in-a-particular-category-and-tags/262349 "2023-04-20T04:15:49Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

[Noone](/t/-/262349/1) asked how to retrieve posts created by a specific user within a particular category and with specific tags, noting that existing endpoints like `topics/created-by` and `user_actions` do not support filtering by category or tags. [Canapin](/t/-/262349/2) suggested using the Discourse Search API, providing an example query that combines the username with category and tag filters (`%40canapin%20%23support%20%23css`). [Noone](/t/-/262349/3) confirmed that this solution works, admitting they had not considered using the search functionality initially.

<div class="post-metadata">

**Author:** ![Noone](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@Noone](https://meta.discourse.org/u/Noone)\
**Post date:** [April 20, 2023, 4:15am UTC](https://meta.discourse.org/t/get-posts-created-by-user-in-a-particular-category-and-tags/262349/1 "2023-04-20T04:15:49Z")

</div>

How to get posts of users ina particular category and with specific tags currently, there seem to be [https://meta.discourse.org/topics/created-by/jomaxro.json](https://meta.discourse.org/topics/created-by/jomaxro.json) which is giving all posts created by user and [https://meta.discourse.org/user\_actions.json?offset=0&username=jomaxro&filter=1](https://meta.discourse.org/user_actions.json?offset=0&username=jomaxro&filter=1) which is giving all the likes…now how to filter them by category and tags

TIA

---

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [April 20, 2023, 10:51am UTC](https://meta.discourse.org/t/get-posts-created-by-user-in-a-particular-category-and-tags/262349/2 "2023-04-20T10:51:55Z")

</div>

Hello @Noone 🙂

You might be looking for the search query:

[https://docs.discourse.org/#tag/Search/operation/search](https://docs.discourse.org/#tag/Search/operation/search)

My posts on #Support with the #css tags:

[https://meta.discourse.org/search.json?expanded=true&q=%40canapin%20%23support%20%23css](https://meta.discourse.org/search.json?expanded=true&q=%40canapin%20%23support%20%23css)

I think it will return the first 50 results.

---

<div class="post-metadata">

**Author:** ![Noone](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@Noone](https://meta.discourse.org/u/Noone)\
**Post date:** [April 20, 2023, 12:24pm UTC](https://meta.discourse.org/t/get-posts-created-by-user-in-a-particular-category-and-tags/262349/3 "2023-04-20T12:24:26Z")

</div>

Thank you, it should work. :facepalm: didnt think about search

---

<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:** [May 20, 2023, 12:24pm UTC](https://meta.discourse.org/t/get-posts-created-by-user-in-a-particular-category-and-tags/262349/4 "2023-05-20T12:24:40Z")

</div>

Closed on May 20, 2023, 12:24pm UTC

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