# API: Getting all posts in a topic

**URL:** <https://meta.discourse.org/t/api-getting-all-posts-in-a-topic/41018>\
**Category:** Development\
**Created:** [2016 年3 月 14 日 14:30 UTC](https://meta.discourse.org/t/api-getting-all-posts-in-a-topic/41018 "2016-03-14T14:30:32Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

作者： ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
发布日期： [2018 年9 月 19 日 18:52 UTC](https://meta.discourse.org/t/api-getting-all-posts-in-a-topic/41018/10 "2018-09-19T18:52:05Z")

</div>

> [@jandres](#):
>
> but if i made the request using my web app using angular, i just get the first 10.

For some reason your angular app is triggering `slow_chunk_size`.

> <https://github.com/discourse/discourse/blob/main/lib/topic_view.rb#L12-L14>

from

> <https://github.com/discourse/discourse/blob/main/app/controllers/application_controller.rb#L104-L106>

So that might be something to look into.

> [@jandres](#):
>
> I just wanted to know if there are any parameter (maybe in the header of request) to set the `chunk_size` in `/t/blah/TOPIC_ID.json` request

There is not a `chunk_size` parameter you can set, but if you pass in `print=true` like `/t/-/{id}.json?print=true` it will set the chunk size to 1000.

---

_[View the full topic](https://meta.discourse.org/t/api-getting-all-posts-in-a-topic/41018)._
