# .json endpoint to receive array of arbitrary posts with a single request

**URL:** <https://meta.discourse.org/t/json-endpoint-to-receive-array-of-arbitrary-posts-with-a-single-request/272127>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [July 19, 2023, 1:59pm UTC](https://meta.discourse.org/t/json-endpoint-to-receive-array-of-arbitrary-posts-with-a-single-request/272127 "2023-07-19T13:59:18Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pipkin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pipkin/32/134643_2.png) [@pipkin](https://meta.discourse.org/u/pipkin)\
**Post date:** [July 19, 2023, 1:59pm UTC](https://meta.discourse.org/t/json-endpoint-to-receive-array-of-arbitrary-posts-with-a-single-request/272127/1 "2023-07-19T13:59:18Z")

</div>

Hi,

Is there an .json endpoint that allows me to request an arbitrary collection of posts by id? I’m talking posts here, not topics.

For example `posts.json?id=2,9,40,388,...` etc etc.

Been looking through the code but couldn’t find it…

(It’s important that the response contains the full post bodies, so not only excerpts)

---

_[View the full topic](https://meta.discourse.org/t/json-endpoint-to-receive-array-of-arbitrary-posts-with-a-single-request/272127)._
