keff is trying to retrieve a topic’s post stream with raw content using the Discourse API. Initially, they were unable to get the raw content when calling t/50/posts.json or /t/50.json. However, keff discovered that passing the include_raw parameter in t/50/posts.json solves the issue.
keff now has a follow-up question regarding the post limit returned by /t/:id/posts.json, which seems to be hardcoded at 20, and is inquiring if the per_page property can be used to specify a different limit.
I’m trying to get the topic’s post stream with the raw content. I’ve only been able to get the raw content of a post by calling posts/<post_id>.json. If I try to call t/50/posts.json the posts do not contain the raw property. Neither does just getting the topic /t/50.json
Is there any way of getting a list of posts with their raw content? Or any plugin that would allow me to do this?
The issue is that if I do it one by one the Discourse API says I’ve done the action too much, and must wait for some amount of time before attempting to call it again. This is not ideal.
One question though. Does the /t/:id/posts.json have a limit of posts it will list? It seems it only returns 20, is that hardcoded or can I specify the per_page property?