Might need to do something extra to also get any uploaded images / attachments?
Also need to be prepared to add ?page=2 etc if there’s more than 100 comments, eg https://meta.discourse.org/raw/69776?page=8. I think the API is rate limited kinda heavily by default, Available settings for global rate limits and throttling - sysadmin - Discourse Meta so may need some tweaking.