I’ve read all of the discussions about using the API to fetch all of the posts for a particular topic using the post_ids from the stream. However, I cannot seem to find anything that would allow me to fetch the most recent set of posts for a topic (i.e. how the website works). Instead, I’m get the oldest 20 posts from the topic. I think the most common use case for the API would be fetching the most recent posts, and then paging page into time.
Also, are there any undocumented parameters for controlling the chunk_size? I was also looking for this in the admin interface.
One potential strategy I see is to use http://<server>/t/<topic_id>/posts.json?post_ids[]=0 to get the stream of IDs, and then implement my own paging system starting at the end of the post stream…