# API: Getting all posts in a topic

**URL:** <https://meta.discourse.org/t/api-getting-all-posts-in-a-topic/41018>\
**Category:** Development\
**Created:** [March 14, 2016, 2:30pm 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:** 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:** [March 14, 2016, 3:32pm UTC](https://meta.discourse.org/t/api-getting-all-posts-in-a-topic/41018/3 "2016-03-14T15:32:59Z")

</div>

When you GET `/t/blah/TOPIC_ID.json` the output will also contain a `stream` array that has all the id’s for the topic.

You then can call: `/t/blah/TOPIC_ID/posts.json?post_ids[]` and pass in all the ids from the stream array.

---

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