Another option would be to write a Data Explorer query that returns the topics you are looking for. You could then run that query via the API: How to run Data Explorer queries with the Discourse API.
3 Likes