# Get all posts from topic

**URL:** https://meta.discourse.org/t/get-all-posts-from-topic/71056
**Category:** Development
**Tags:** rest-api
**Created:** [September 29, 2017, 4:38pm UTC](https://meta.discourse.org/t/get-all-posts-from-topic/71056 "2017-09-29T16:38:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mathieu](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@Mathieu](https://meta.discourse.org/u/Mathieu)
#### Post date: [September 29, 2017, 4:38pm UTC](https://meta.discourse.org/t/get-all-posts-from-topic/71056/1 "2017-09-29T16:38:27Z")

</div>

Hello there,

I saw [this post](https://meta.discourse.org/t/api-getting-all-posts-in-a-topic/41018/5) which says that if I want to get all posts from a single topic, I need to:

1. Get the topic to get all posts ID ;
2. Make a second request to get all posts with the `?posts_id[]` param.

I really well understand this is a good practice to break up all posts in multiple requests, but when you have 30-40 posts to request, it makes non-sens to use two API requests to get all the data I need.

I do not think so, but is there a way to add a param on the API to say that I want x posts by requests? 20 is maybe a good value, but why not give the availability for users to set 30 or 40 (or 938 maybe…).

Cheers

---

<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: [September 19, 2018, 6:54pm UTC](https://meta.discourse.org/t/get-all-posts-from-topic/71056/2 "2018-09-19T18:54:10Z")

</div>

> [@Mathieu](#):
>
> (or 938 maybe…)

If you pass in `print=true` like `/t/-/{id}.json?print=true` it will set the chunk size to 1000.
