# Hoe posts/onderwerpen op te halen op basis van meerdere gebruikersnamen

**URL:** https://meta.discourse.org/t/how-to-fetch-posts-topics-by-multiple-usernames/293575
**Category:** Development
**Tags:** rest-api
**Created:** [31 januari 2024 om 00:49 UTC](https://meta.discourse.org/t/how-to-fetch-posts-topics-by-multiple-usernames/293575 "2024-01-31T00:49:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![j3ang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j3ang/32/251087_2.png) [@j3ang](https://meta.discourse.org/u/j3ang)
#### Post date: [31 januari 2024 om 00:49 UTC](https://meta.discourse.org/t/how-to-fetch-posts-topics-by-multiple-usernames/293575/1 "2024-01-31T00:49:26Z")

</div>

Hi all,

I’m trying to find a way to display posts/topics posted by many users in my app.

I’ve tried discourse api

- user\_actions.json with filter=4,5 =\> but it becomes a problem if the group of user is large.
- search.json =\> I could only search one username at a time

Is there any other suggestions? or should I consider creating a custom plugin for it?

---

<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: [31 januari 2024 om 01:18 UTC](https://meta.discourse.org/t/how-to-fetch-posts-topics-by-multiple-usernames/293575/2 "2024-01-31T01:18:53Z")

</div>

An alternative to using a custom plugin would be to write a [Data Explorer](https://meta.discourse.org/t/32566?silent=true) query that returns the information you’re looking for. You could then make API requests to run the query: [Run Data Explorer queries with the Discourse API](https://meta.discourse.org/t/run-data-explorer-queries-with-the-discourse-api/120063).

---

<div class="post-metadata">

### Author: ![j3ang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j3ang/32/251087_2.png) [@j3ang](https://meta.discourse.org/u/j3ang)
#### Post date: [31 januari 2024 om 04:39 UTC](https://meta.discourse.org/t/how-to-fetch-posts-topics-by-multiple-usernames/293575/3 "2024-01-31T04:39:52Z")

</div>

thanks @simon it worked out well.
