If it must be done through the API, you could set up a Data Explorer query and use the methods outlined in How to run Data Explorer queries with the Discourse API
tshenry
(Taylor)
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to get all posts from Discourse (Any API available?) | 1 | 837 | April 15, 2021 | |
| Delete Post from a Topic Using discourse API | 6 | 4440 | October 22, 2018 | |
| Run Data Explorer queries with the Discourse API | 14 | 13509 | May 6, 2025 | |
| Do we have any API or way to get latest post details for a particular Topic in discourse? | 5 | 3674 | June 1, 2017 | |
| How can I delete or undelete topics? | 31 | 15233 | September 10, 2019 |