Is it posible to get the post stream to return raw?

Hey there!

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.

Regards

Sorry, I was taking a look at the discourse code and found that include_raw parameter could be passed in t/50/posts.json does the job!!!

2 Likes

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?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.