If you want them all at once you could Run Data Explorer queries with the Discourse API
1 like
If you want them all at once you could Run Data Explorer queries with the Discourse API