In a Dev category discussion titled “Get last n new / updated posts using API?”, Samir_Sabri asks for help retrieving the last n posts via API, noting issues with missing post URLs, inability to limit results to n posts, and excessive returned fields. blake clarifies that /latest.json returns topics, not individual posts — for posts, use /posts.json. URLs can be constructed from topic_id or post_id (e.g., https://meta.discourse.org/t/307427 or https://meta.discourse.org/p/1514266). The default page size is 30; reducing it requires specifying topic_ids (impractical without prior knowledge), while increasing it requires paginated requests (e.g., ?page=1). Field restriction isn’t supported by the API — filtering must be done client-side. Lastly, ?ascending=false is redundant since it’s the default. The discussion offers practical workarounds but confirms API limitations for granular control over post retrieval.
But you would have to know what those topic ids are beforehand so not really all that helpful usually. If you want more than 30 you will have to make multiple requests and pass in the page parm.