# API fetch most recent posts for a topic

**URL:** <https://meta.discourse.org/t/api-fetch-most-recent-posts-for-a-topic/72421>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [19.Октябрь.2017 16:05:32 UTC](https://meta.discourse.org/t/api-fetch-most-recent-posts-for-a-topic/72421 "2017-10-19T16:05:32Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Reid\_Van\_Melle](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@Reid\_Van\_Melle](https://meta.discourse.org/u/Reid_Van_Melle)\
**Post date:** [19.Октябрь.2017 16:05:32 UTC](https://meta.discourse.org/t/api-fetch-most-recent-posts-for-a-topic/72421/1 "2017-10-19T16:05:32Z")

</div>

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.

---

_[View the full topic](https://meta.discourse.org/t/api-fetch-most-recent-posts-for-a-topic/72421)._
