# 最新投稿APIのページネーション

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

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2018 年 6 月 2 日午前 2:05 UTC](https://meta.discourse.org/t/latest-posts-api-pagination/88589/6 "2018-06-02T02:05:15Z")

</div>

> [@blake](#):
>
> Part of the issue which doesn’t make total sense to me is that we are limiting the sql query to 50 results, but then we do more filtering on it after the initial sql query which is why you will not always get 50 results.

as the API designer: it works this way to make things easier on the Discourse server; if the server had to do a bunch of work to always fill up 50 posts anything using the API might start being a perf problem.

Basically it forces the consumers to be “good neighbors”, in a weird sense of the term.

---

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