# Correct way to Get specific posts from a topic (Discourse API)

**URL:** https://meta.discourse.org/t/correct-way-to-get-specific-posts-from-a-topic-discourse-api/245063
**Category:** Development
**Tags:** rest-api
**Created:** [November 10, 2022, 12:15am UTC](https://meta.discourse.org/t/correct-way-to-get-specific-posts-from-a-topic-discourse-api/245063 "2022-11-10T00:15:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vikigenius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vikigenius/32/281237_2.png) [@vikigenius](https://meta.discourse.org/u/vikigenius)
#### Post date: [November 10, 2022, 12:15am UTC](https://meta.discourse.org/t/correct-way-to-get-specific-posts-from-a-topic-discourse-api/245063/1 "2022-11-10T00:15:28Z")

</div>

The API to get all posts given a topic only returns the first 20 posts. To get remaining posts I would like to use the API to get specific posts for a topic

From the API docs [Discourse API Docs](https://docs.discourse.org/#tag/Topics/operation/getSpecificPostsFromTopic)

It says to send a request with Request Body schema: application/json

```plaintext
{
    "post_ids[]": integer
}

```

I don’t understand this request body can someone give an example? Is it supposed to be an array? A single integer?

**EDIT** Also it seems to be a GET request, why is there a Request body?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 10, 2022, 12:04pm UTC](https://meta.discourse.org/t/correct-way-to-get-specific-posts-from-a-topic-discourse-api/245063/2 "2022-11-10T12:04:25Z")

</div>

To see how it’s working, check out [Reverse engineer the Discourse API](https://meta.discourse.org/t/reverse-engineer-the-discourse-api/20576) and see how the front end does it.
