# How should I get the raw text of a single post

**URL:** <https://meta.discourse.org/t/how-should-i-get-the-raw-text-of-a-single-post/106516>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [January 14, 2019, 1:20pm UTC](https://meta.discourse.org/t/how-should-i-get-the-raw-text-of-a-single-post/106516 "2019-01-14T13:20:55Z")\
**Posts on this page:** 7\
**Page:** 1

## AI-generated summary

The discussion focuses on retrieving the raw text of a single Discourse post via the REST API. [Mohammad_Etemaddar](/t/-/106516/1) reported that the standard endpoint did not work on various instances and asked for the correct method to access the raw text. [blake](/t/-/106516/2) responded by suggesting the addition of `.json` to the end of the post URL, providing a working example. [Mohammad_Etemaddar](/t/-/106516/3) thanked the responder and requested that this method be documented. [blake](/t/-/106516/4) agreed to update the API documentation. [pfaffman](/t/-/106516/6) noted that the information is already available in the community wiki regarding API reverse engineering. Finally, [blake](/t/-/106516/7) confirmed that the API documentation has been updated with the necessary details.

<div class="post-metadata">

**Author:** ![Mohammad\_Etemaddar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mohammad_etemaddar/32/129007_2.png) [@Mohammad\_Etemaddar](https://meta.discourse.org/u/Mohammad_Etemaddar)\
**Post date:** [January 14, 2019, 1:20pm UTC](https://meta.discourse.org/t/how-should-i-get-the-raw-text-of-a-single-post/106516/1 "2019-01-14T13:20:55Z")

</div>

I have the same problem with GET: [https://meta.discourse.org/posts/280744](https://meta.discourse.org/posts/280744) . It doesn’t work on meta.discourse nor on try.discourse nor our owned forum.

How should I get the single post raw text?

---

<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:** [January 14, 2019, 5:28pm UTC](https://meta.discourse.org/t/how-should-i-get-the-raw-text-of-a-single-post/106516/2 "2019-01-14T17:28:23Z")

</div>

> [@Updating topic body via the API](https://meta.discourse.org/t/updating-topic-body-via-the-api/61220/11):
>
> How should I get the single post raw text?

add `.json` to the end of that url.

[https://meta.discourse.org/posts/280744.json](https://meta.discourse.org/posts/280744.json)

---

<div class="post-metadata">

**Author:** ![Mohammad\_Etemaddar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mohammad_etemaddar/32/129007_2.png) [@Mohammad\_Etemaddar](https://meta.discourse.org/u/Mohammad_Etemaddar)\
**Post date:** [January 14, 2019, 6:34pm UTC](https://meta.discourse.org/t/how-should-i-get-the-raw-text-of-a-single-post/106516/3 "2019-01-14T18:34:18Z")

</div>

Thank you, it was not documented. Would you mind add .json to the document?

---

<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:** [January 14, 2019, 6:40pm UTC](https://meta.discourse.org/t/how-should-i-get-the-raw-text-of-a-single-post/106516/4 "2019-01-14T18:40:50Z")

</div>

Yep, I’ll update the api docs.

---

<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:** [January 15, 2019, 12:44am UTC](https://meta.discourse.org/t/how-should-i-get-the-raw-text-of-a-single-post/106516/6 "2019-01-15T00:44:48Z")

</div>

Everything is documented [if you do it this way](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576).

---

<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:** [January 17, 2019, 12:40am UTC](https://meta.discourse.org/t/how-should-i-get-the-raw-text-of-a-single-post/106516/7 "2019-01-17T00:40:45Z")

</div>

> [@blake](#):
>
> Yep, I’ll update the api docs.

[Done](https://docs.discourse.org/#tag/Posts%2Fpaths%2F~1posts~1%7Bid%7D.json%2Fget).

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [January 25, 2019, 2:56pm UTC](https://meta.discourse.org/t/how-should-i-get-the-raw-text-of-a-single-post/106516/8 "2019-01-25T14:56:47Z")

</div>

Closed on January 25, 2019, 2:56pm UTC


