# JSON 源中显示的文章数量是否有限制？

**URL:** <https://meta.discourse.org/t/is-there-a-limit-to-number-of-posts-shown-in-json-feeds/83268>\
**Category:** Support\
**Created:** [2018年三月19日 01:36 UTC](https://meta.discourse.org/t/is-there-a-limit-to-number-of-posts-shown-in-json-feeds/83268 "2018-03-19T01:36:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lightweight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lightweight/32/116381_2.png) [@lightweight](https://meta.discourse.org/u/lightweight)\
**Post date:** [2018年三月19日 01:36 UTC](https://meta.discourse.org/t/is-there-a-limit-to-number-of-posts-shown-in-json-feeds/83268/1 "2018-03-19T01:36:53Z")

</div>

I’ve got a script reviewing topic feeds on our Discourse implementation, but I’ve found that it only returns the first 20 Posts (some of our topics have more than 20 posts)… is that a hardcoded limit? Is there any way to return the json feed in reverse order, with the newest first?

Our script runs every few minutes and would be more likely to see all the posts in a topic if they were provided by the feed with most recent first if there’s a 20 post limit to the topic feed… Is there any way to get a full list of posts in the topic? Example: [https://forums.oeru.org/t/133.json](https://forums.oeru.org/t/133.json) has a `post_count: 29` but only the first 20 (0-19) are shown from /1-/20…

I could use the post\_count to look for further ones, but things get tricky because presumably there could be deleted post (missing ids) and it’d be very inefficient to try to them all in sequence, counting as I go, and discarding any missing IDs from my count…

Is there another mechanism that I’m missing? I have discounted the Post IDs shown in the post\_stream, as the IDs (if I use `/p/postID` or `/p/postID.json`) get redirected to the HTML version of the post which isn’t overly helpful…

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2018年三月19日 09:49 UTC](https://meta.discourse.org/t/is-there-a-limit-to-number-of-posts-shown-in-json-feeds/83268/2 "2018-03-19T09:49:54Z")

</div>

Have you tried going to the 2nd page? [https://forums.oeru.org/t/133.json?page=2](https://forums.oeru.org/t/133.json?page=2) 😉

---

<div class="post-metadata">

**Author:** ![lightweight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lightweight/32/116381_2.png) [@lightweight](https://meta.discourse.org/u/lightweight)\
**Post date:** [2018年三月19日 22:18 UTC](https://meta.discourse.org/t/is-there-a-limit-to-number-of-posts-shown-in-json-feeds/83268/3 "2018-03-19T22:18:30Z")

</div>

Nope - never saw any documentation that suggested the json results were paged 🙂 - thanks for clarifying!

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [2018年三月26日 22:00 UTC](https://meta.discourse.org/t/is-there-a-limit-to-number-of-posts-shown-in-json-feeds/83268/4 "2018-03-26T22:00:08Z")

</div>

This topic was automatically closed after 33 hours. New replies are no longer allowed.
