# Retrieving post.raw only works right after creating post

**URL:** <https://meta.discourse.org/t/retrieving-post-raw-only-works-right-after-creating-post/115267>\
**Category:** Development\
**Created:** [April 16, 2019, 11:17pm UTC](https://meta.discourse.org/t/retrieving-post-raw-only-works-right-after-creating-post/115267 "2019-04-16T23:17:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Mathijs\_V](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mathijs_v/32/135133_2.png) [@Mathijs\_V](https://meta.discourse.org/u/Mathijs_V)\
**Post date:** [April 17, 2019, 7:18am UTC](https://meta.discourse.org/t/retrieving-post-raw-only-works-right-after-creating-post/115267/3 "2019-04-17T07:18:51Z")

</div>

Thanks for your reply! Now I can stop wasting time 🙂

> [@sam](#):
>
> we prefer to keep our topic payload smaller

Ahh that makes so much sense!

> [@sam](#):
>
> ask for it on-demand

Could you point me in the right direction to retrieve post data from javascript?  
I had a sort of workaround to get the .json by retrieving the /t/raw/{topicid}/{postid}.json but that was really ugly and there must be a better way.

---

_[View the full topic](https://meta.discourse.org/t/retrieving-post-raw-only-works-right-after-creating-post/115267)._
