# Latest posts API pagination

**URL:** <https://meta.discourse.org/t/latest-posts-api-pagination/88589>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [May 28, 2018, 11:53am UTC](https://meta.discourse.org/t/latest-posts-api-pagination/88589 "2018-05-28T11:53:57Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [May 30, 2018, 12:49am UTC](https://meta.discourse.org/t/latest-posts-api-pagination/88589/3 "2018-05-30T00:49:24Z")

</div>

You might have to hit `/latest.json?page=2` instead of `/posts.json` and filter out the posts from the result.

[https://meta.discourse.org/latest.json?page=2](https://meta.discourse.org/latest.json?page=2)

EDIT: Ohh you want latest posts, not latest topics. Considering `/posts` by itself doesn’t have a UI, it probably is missing pagination, I’m sure a PR could be created for this. But to get what you want right now you could still parse the `/latest.json` endpoint and parse out the topic\_id and the post number and fetch the post with `/t/<topic_id>/<post_number>`, but yea I can see why pagination on the `/posts` endpoint would be helpful.

---

_[View the full topic](https://meta.discourse.org/t/latest-posts-api-pagination/88589)._
